Skip to content

Commit

Permalink
chore: ensure /taglib /length are standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
mabels committed Dec 6, 2024
1 parent 46b6aaf commit e686f4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cborg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions lib/length.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion taglib.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit e686f4d

Please sign in to comment.