cbor-x 1.3.0 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/decode.d.ts +2 -0
- package/decode.js +1167 -1160
- package/dist/index.js +1041 -1034
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +15 -14
- package/dist/node-index.js +93 -0
- package/dist/node.cjs +1095 -1086
- package/dist/test.js +675 -1251
- package/index.d.ts +3 -2
- package/node-index.js +10 -8
- package/package.json +77 -79
package/decode.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface Options {
|
|
|
20
20
|
maxSharedStructures?: number
|
|
21
21
|
maxOwnStructures?: number
|
|
22
22
|
useSelfDescribedHeader?: boolean
|
|
23
|
+
keyMap?: {}
|
|
23
24
|
shouldShareStructure?: (keys: string[]) => boolean
|
|
24
25
|
getStructures?(): {}[]
|
|
25
26
|
saveStructures?(structures: {}[]): boolean | void
|
|
@@ -39,6 +40,7 @@ export class Decoder {
|
|
|
39
40
|
export function decode(messagePack: Buffer | Uint8Array): any
|
|
40
41
|
export function decodeMultiple(messagePack: Buffer | Uint8Array, forEach?: (value: any) => any): [] | void
|
|
41
42
|
export function addExtension(extension: Extension): void
|
|
43
|
+
export function clearSource(): void
|
|
42
44
|
export function roundFloat32(float32Number: number): number
|
|
43
45
|
export let isNativeAccelerationEnabled: boolean
|
|
44
46
|
|