@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/vendor",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "vendor patch repo to support esm",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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 'cborg/utils'
6
+ import { fromHex as _fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  /**
9
9
  * @param {number} code
@@ -1,4 +1,4 @@
1
- import { jump, quick, Type } from 'cborg/utils'
1
+ import { jump, quick, Type } from "@fireproof/vendor/cborg/utils"
2
2
 
3
3
  /**
4
4
  * @typedef {import('cborg/utils').Token} Token
@@ -1,5 +1,5 @@
1
1
  import { Tokeniser } from './decode.js'
2
- import { uintBoundaries, toHex, fromHex, Type } from 'cborg/utils'
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()
@@ -1,5 +1,5 @@
1
1
  import { tokensToDiagnostic } from './diagnostic.js'
2
- import { fromHex } from 'cborg/utils'
2
+ import { fromHex } from "@fireproof/vendor/cborg/utils"
3
3
 
4
4
  const inp = `
5
5
  a7
@@ -11,7 +11,7 @@ import {
11
11
  encodeMap,
12
12
  encodeTag,
13
13
  encodeFloat
14
- } from 'cborg/utils'
14
+ } from "@fireproof/vendor/cborg/utils"
15
15
 
16
16
  /**
17
17
  * @typedef {import('../interface').EncodeOptions} EncodeOptions
@@ -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 'cborg/utils'
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'
@@ -1,5 +1,5 @@
1
1
  import { makeCborEncoders, objectToTokens } from './encode.js'
2
- import { quickEncodeToken } from 'cborg/utils'
2
+ import { quickEncodeToken } from "@fireproof/vendor/cborg/utils"
3
3
 
4
4
  /**
5
5
  * @typedef {import('../interface').EncodeOptions} EncodeOptions
@@ -1,4 +1,4 @@
1
- import type { Token, Bl } from 'cborg/utils'
1
+ import type { Token, Bl } from "@fireproof/vendor/cborg/utils"
2
2
 
3
3
  export type TokenOrNestedTokens = Token | Token[] | TokenOrNestedTokens[]
4
4
 
@@ -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 'cborg/utils'
4
+ import { Token, Type, decodeCodePointsArray } from "@fireproof/vendor/cborg/utils"
5
5
 
6
6
  /**
7
7
  * @typedef {import('../interface').DecodeOptions} DecodeOptions
@@ -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 'cborg/utils'
4
+ import { Type, asU8A, fromString } from "@fireproof/vendor/cborg/utils"
5
5
 
6
6
  /**
7
7
  * @typedef {import('../interface').EncodeOptions} EncodeOptions
@@ -1,6 +1,6 @@
1
1
  // never reference the file directly to ensure the
2
2
  // indepency of the json module
3
- import { Token, Type } from 'cborg/utils'
3
+ import { Token, Type } from "@fireproof/vendor/cborg/utils"
4
4
 
5
5
  /*
6
6
  A collection of some standard CBOR tags.
@@ -1,4 +1,4 @@
1
- import { Token, Type } from 'cborg/utils'
1
+ import { Token, Type } from "@fireproof/vendor/cborg/utils"
2
2
 
3
3
  export function dateDecoder (obj) {
4
4
  if (typeof obj !== 'string') {
@@ -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 } from 'cborg/utils'
6
+ import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -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 } from 'cborg/utils'
6
+ import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -3,7 +3,7 @@
3
3
  import * as chai from 'chai'
4
4
 
5
5
  import { decode, encode } from "@fireproof/vendor/cborg"
6
- import { useBuffer, fromHex, toHex } from 'cborg/utils'
6
+ import { useBuffer, fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -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 } from 'cborg/utils'
6
+ import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -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 } from 'cborg/utils'
6
+ import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -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 } from 'cborg/utils'
6
+ import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -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 'cborg/utils'
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
@@ -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 } from 'cborg/utils'
6
+ import { fromHex, toHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -1,7 +1,7 @@
1
1
  /* eslint-env mocha */
2
2
 
3
3
  import * as chai from 'chai'
4
- import { Bl } from 'cborg/utils'
4
+ import { Bl } from "@fireproof/vendor/cborg/utils"
5
5
 
6
6
  const { assert } = chai
7
7
 
@@ -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 'cborg/utils'
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
 
@@ -3,7 +3,7 @@
3
3
  import * as chai from 'chai'
4
4
 
5
5
  import { decode } from "@fireproof/vendor/cborg"
6
- import { fromHex } from 'cborg/utils'
6
+ import { fromHex } from "@fireproof/vendor/cborg/utils"
7
7
 
8
8
  const { assert } = chai
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as chai from 'chai'
4
4
  import { garbage } from 'ipld-garbage'
5
- import { uintBoundaries } from 'cborg/utils'
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 'cborg/utils'
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
 
@@ -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 'cborg/utils'
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