@fireproof/vendor 1.0.2 → 1.0.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/package.json +1 -1
- package/src/cborg/cborg/bin.js +1 -1
- package/src/cborg/cborg/decode.js +1 -1
- package/src/cborg/cborg/diagnostic.js +1 -1
- package/src/cborg/cborg/diagnostic_test.js +1 -1
- package/src/cborg/cborg/encode.js +1 -1
- package/src/cborg/cborg/index.js +1 -1
- package/src/cborg/cborg/length.js +1 -1
- package/src/cborg/interface.ts +1 -1
- package/src/cborg/json/decode.js +1 -1
- package/src/cborg/json/encode.js +1 -1
- package/src/cborg/taglib.js +1 -1
- package/src/cborg/test/common.js +1 -1
- package/src/cborg/test/test-0uint.js +1 -1
- package/src/cborg/test/test-1negint.js +1 -1
- package/src/cborg/test/test-2bytes.js +1 -1
- package/src/cborg/test/test-3string.js +1 -1
- package/src/cborg/test/test-4array.js +1 -1
- package/src/cborg/test/test-5map.js +1 -1
- package/src/cborg/test/test-6tag.js +1 -1
- package/src/cborg/test/test-7float.js +1 -1
- package/src/cborg/test/test-bl.js +1 -1
- package/src/cborg/test/test-cbor-vectors.js +1 -1
- package/src/cborg/test/test-decode-errors.js +1 -1
- package/src/cborg/test/test-length.js +1 -1
- package/src/cborg/test/test-partial.js +1 -1
- package/src/cborg/utils/bl.js +1 -1
package/package.json
CHANGED
package/src/cborg/cborg/bin.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import process from 'process'
|
|
4
4
|
import { decode, encode } from "@fireproof/vendor/cborg"
|
|
5
5
|
import { tokensToDiagnostic, fromDiag } from './diagnostic.js'
|
|
6
|
-
import { fromHex as _fromHex, toHex } from
|
|
6
|
+
import { fromHex as _fromHex, toHex } from "@fireproof/vendor/cborg/utils"
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @param {number} code
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tokeniser } from './decode.js'
|
|
2
|
-
import { uintBoundaries, toHex, fromHex, Type } from
|
|
2
|
+
import { uintBoundaries, toHex, fromHex, Type } from "@fireproof/vendor/cborg/utils"
|
|
3
3
|
|
|
4
4
|
const utf8Encoder = new TextEncoder()
|
|
5
5
|
const utf8Decoder = new TextDecoder()
|
package/src/cborg/cborg/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { encode } from './encode.js'
|
|
2
2
|
import { decode, decodeFirst, Tokeniser, tokensToObject } from './decode.js'
|
|
3
|
-
import { Token, Type } from
|
|
3
|
+
import { Token, Type } from "@fireproof/vendor/cborg/utils"
|
|
4
4
|
|
|
5
5
|
// is this needed for the json module and other independ encoders
|
|
6
6
|
export { encodeCustom } from './encode.js'
|
package/src/cborg/interface.ts
CHANGED
package/src/cborg/json/decode.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// never reference the file directly to ensure the
|
|
2
2
|
// indepency of the json module
|
|
3
3
|
import { decode as _decode, decodeFirst as _decodeFirst } from "@fireproof/vendor/cborg"
|
|
4
|
-
import { Token, Type, decodeCodePointsArray } from
|
|
4
|
+
import { Token, Type, decodeCodePointsArray } from "@fireproof/vendor/cborg/utils"
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @typedef {import('../interface').DecodeOptions} DecodeOptions
|
package/src/cborg/json/encode.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// never reference the file directly to ensure the
|
|
2
2
|
// indepency of the json module
|
|
3
3
|
import { encodeCustom } from "@fireproof/vendor/cborg"
|
|
4
|
-
import { Type, asU8A, fromString } from
|
|
4
|
+
import { Type, asU8A, fromString } from "@fireproof/vendor/cborg/utils"
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @typedef {import('../interface').EncodeOptions} EncodeOptions
|
package/src/cborg/taglib.js
CHANGED
package/src/cborg/test/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as chai from 'chai'
|
|
4
4
|
|
|
5
5
|
import { decode, encode } from "@fireproof/vendor/cborg"
|
|
6
|
-
import { fromHex, toHex, Token, Type } from
|
|
6
|
+
import { fromHex, toHex, Token, Type } from "@fireproof/vendor/cborg/utils"
|
|
7
7
|
import { dateDecoder, dateEncoder } from './common.js'
|
|
8
8
|
|
|
9
9
|
const { assert } = chai
|
|
@@ -4,7 +4,7 @@ import * as chai from 'chai'
|
|
|
4
4
|
|
|
5
5
|
import { decode, encode } from "@fireproof/vendor/cborg"
|
|
6
6
|
import * as taglib from "@fireproof/vendor/cborg/taglib"
|
|
7
|
-
import { fromHex, toHex } from
|
|
7
|
+
import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
|
|
8
8
|
// fixtures from https://github.com/cbor/test-vectors
|
|
9
9
|
import { fixtures } from './appendix_a.js'
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as chai from 'chai'
|
|
4
4
|
import { garbage } from 'ipld-garbage'
|
|
5
|
-
import { uintBoundaries } from
|
|
5
|
+
import { uintBoundaries } from "@fireproof/vendor/cborg/utils"
|
|
6
6
|
import { encode } from "@fireproof/vendor/cborg"
|
|
7
7
|
import { encodedLength } from "@fireproof/vendor/cborg/length"
|
|
8
8
|
import { dateEncoder } from './common.js'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as chai from 'chai'
|
|
4
4
|
import { garbage } from 'ipld-garbage'
|
|
5
|
-
import { uintBoundaries } from
|
|
5
|
+
import { uintBoundaries } from "@fireproof/vendor/cborg/utils"
|
|
6
6
|
import { encode, decodeFirst } from "@fireproof/vendor/cborg"
|
|
7
7
|
import { dateDecoder, dateEncoder } from './common.js'
|
|
8
8
|
|
package/src/cborg/utils/bl.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
// TODO: ipjs doesn't support this, only for test files: https://github.com/mikeal/ipjs/blob/master/src/package/testFile.js#L39
|
|
19
|
-
import { alloc, concat, slice } from
|
|
19
|
+
import { alloc, concat, slice } from "@fireproof/vendor/cborg/utils"
|
|
20
20
|
|
|
21
21
|
// the ts-ignores in this file are almost all for the `Uint8Array|number[]` duality that exists
|
|
22
22
|
// for perf reasons. Consider better approaches to this or removing it entirely, it is quite
|