cborg 2.0.0 → 2.0.2
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/package.json +3 -3
- package/types/lib/4array.d.ts +1 -1
- package/types/lib/5map.d.ts +1 -1
- package/types/lib/6tag.d.ts +1 -1
- package/types/lib/7float.d.ts +1 -1
- package/types/lib/token.d.ts +13 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cborg",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Fast CBOR with a focus on strictness",
|
|
5
5
|
"main": "./cjs/cborg.js",
|
|
6
6
|
"bin": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"author": "Rod <rod@vagg.org> (http://r.va.gg/)",
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"c8": "^
|
|
35
|
+
"c8": "^8.0.0",
|
|
36
36
|
"chai": "^4.3.4",
|
|
37
37
|
"ipjs": "^5.2.0",
|
|
38
38
|
"ipld-garbage": "^5.0.0",
|
|
39
39
|
"mocha": "^10.0.0",
|
|
40
40
|
"polendina": "~3.2.1",
|
|
41
41
|
"standard": "^17.0.0",
|
|
42
|
-
"typescript": "~5.
|
|
42
|
+
"typescript": "~5.1.5"
|
|
43
43
|
},
|
|
44
44
|
"exports": {
|
|
45
45
|
".": {
|
package/types/lib/4array.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function decodeArrayIndefinite(data: Uint8Array, pos: number, _minor: num
|
|
|
52
52
|
*/
|
|
53
53
|
export function encodeArray(buf: Bl, token: Token): void;
|
|
54
54
|
export namespace encodeArray {
|
|
55
|
-
|
|
55
|
+
let compareTokens: (tok1: Token, tok2: Token) => number;
|
|
56
56
|
/**
|
|
57
57
|
* @param {Token} token
|
|
58
58
|
* @returns {number}
|
package/types/lib/5map.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export function decodeMapIndefinite(data: Uint8Array, pos: number, _minor: numbe
|
|
|
52
52
|
*/
|
|
53
53
|
export function encodeMap(buf: Bl, token: Token): void;
|
|
54
54
|
export namespace encodeMap {
|
|
55
|
-
|
|
55
|
+
let compareTokens: (tok1: Token, tok2: Token) => number;
|
|
56
56
|
/**
|
|
57
57
|
* @param {Token} token
|
|
58
58
|
* @returns {number}
|
package/types/lib/6tag.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export function decodeTag64(data: Uint8Array, pos: number, _minor: number, optio
|
|
|
48
48
|
*/
|
|
49
49
|
export function encodeTag(buf: Bl, token: Token): void;
|
|
50
50
|
export namespace encodeTag {
|
|
51
|
-
|
|
51
|
+
let compareTokens: (tok1: Token, tok2: Token) => number;
|
|
52
52
|
/**
|
|
53
53
|
* @param {Token} token
|
|
54
54
|
* @returns {number}
|
package/types/lib/7float.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export namespace encodeFloat {
|
|
|
51
51
|
* @returns {number}
|
|
52
52
|
*/
|
|
53
53
|
function encodedSize(token: Token, options: import("../interface").EncodeOptions): number;
|
|
54
|
-
|
|
54
|
+
let compareTokens: (tok1: Token, tok2: Token) => number;
|
|
55
55
|
}
|
|
56
56
|
export type Bl = import('./bl.js').Bl;
|
|
57
57
|
export type DecodeOptions = import('../interface').DecodeOptions;
|
package/types/lib/token.d.ts
CHANGED
|
@@ -17,22 +17,22 @@ export class Type {
|
|
|
17
17
|
compare(typ: Type): number;
|
|
18
18
|
}
|
|
19
19
|
export namespace Type {
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
|
|
20
|
+
export let uint: Type;
|
|
21
|
+
export let negint: Type;
|
|
22
|
+
export let bytes: Type;
|
|
23
|
+
export let string: Type;
|
|
24
|
+
export let array: Type;
|
|
25
|
+
export let map: Type;
|
|
26
|
+
export let tag: Type;
|
|
27
|
+
export let float: Type;
|
|
28
|
+
let _false: Type;
|
|
29
29
|
export { _false as false };
|
|
30
|
-
|
|
30
|
+
let _true: Type;
|
|
31
31
|
export { _true as true };
|
|
32
|
-
|
|
32
|
+
let _null: Type;
|
|
33
33
|
export { _null as null };
|
|
34
|
-
export
|
|
35
|
-
|
|
34
|
+
export let undefined: Type;
|
|
35
|
+
let _break: Type;
|
|
36
36
|
export { _break as break };
|
|
37
37
|
}
|
|
38
38
|
export class Token {
|