diff --git a/cborg.js b/cborg.js index f5a305a..ba43c5f 100644 --- a/cborg.js +++ b/cborg.js @@ -6,6 +6,8 @@ import { Token, Type } from './lib/token.js' export { encodeCustom } from './lib/encode.js' export { encodeErrPrefix, decodeErrPrefix } from './lib/common.js' export { asU8A, fromString, decodeCodePointsArray } from './lib/byte-utils.js' +export { quickEncodeToken } from './lib/jump.js' +export { makeCborEncoders, objectToTokens } from './lib/encode.js' /** * Export the types that were present in the original manual cborg.d.ts diff --git a/lib/length.js b/lib/length.js index 0b1bc00..3c490e0 100644 --- a/lib/length.js +++ b/lib/length.js @@ -1,5 +1,6 @@ -import { makeCborEncoders, objectToTokens } from './encode.js' -import { quickEncodeToken } from './jump.js' +// never reference the file directly to ensure the +// indepency of the json module +import { makeCborEncoders, objectToTokens, quickEncodeToken } from 'cborg' /** * @typedef {import('../interface').EncodeOptions} EncodeOptions diff --git a/taglib.js b/taglib.js index 6b3cdd2..790c83d 100644 --- a/taglib.js +++ b/taglib.js @@ -1,4 +1,6 @@ -import { Token, Type } from './cborg.js' +// never reference the file directly to ensure the +// indepency of the json module +import { Token, Type } from 'cborg' /* A collection of some standard CBOR tags.