Skip to content

Commit

Permalink
chore: use upstream types for compact-encoding (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn authored Sep 9, 2024
1 parent 9e78a72 commit 8f643fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"devDependencies": {
"@bufbuild/buf": "^1.26.1",
"@json-schema-tools/dereferencer": "^1.6.3",
"@types/compact-encoding": "^2.15.0",
"@types/json-schema": "^7.0.12",
"ajv": "^8.12.0",
"c8": "^8.0.1",
Expand Down
3 changes: 1 addition & 2 deletions src/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import {
convertTranslation,
convertTrack,
} from './lib/decode-conversions.js'
// @ts-ignore
import * as cenc from 'compact-encoding'
import cenc from 'compact-encoding'
import { DATA_TYPE_ID_BYTES, SCHEMA_VERSION_BYTES } from './constants.js'
import {
ExhaustivenessError,
Expand Down
3 changes: 1 addition & 2 deletions src/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import {
type ValidSchemaDef,
} from './types.js'
import { currentSchemaVersions, dataTypeIds } from './config.js'
// @ts-ignore
import * as cenc from 'compact-encoding'
import cenc from 'compact-encoding'
import { DATA_TYPE_ID_BYTES } from './constants.js'
import { Encode } from './proto/index.js'
import {
Expand Down

0 comments on commit 8f643fc

Please sign in to comment.