@fireproof/vendor 1.0.1 → 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.1",
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
@@ -1,235 +0,0 @@
1
- {
2
- "name": "@ipld/car",
3
- "version": "5.3.3",
4
- "description": "Content Addressable aRchive format reader and writer",
5
- "author": "Rod <rod@vagg.org> (http://r.va.gg/)",
6
- "license": "Apache-2.0 OR MIT",
7
- "homepage": "https://github.com/ipld/js-car#readme",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/ipld/js-car.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/ipld/js-car/issues"
14
- },
15
- "keywords": [
16
- "car",
17
- "ipfs",
18
- "ipld",
19
- "multiformats"
20
- ],
21
- "engines": {
22
- "node": ">=16.0.0",
23
- "npm": ">=7.0.0"
24
- },
25
- "type": "module",
26
- "types": "./dist/src/index.d.ts",
27
- "typesVersions": {
28
- "*": {
29
- "*": [
30
- "*",
31
- "dist/*",
32
- "dist/src/*",
33
- "dist/src/*/index"
34
- ],
35
- "src/*": [
36
- "*",
37
- "dist/*",
38
- "dist/src/*",
39
- "dist/src/*/index"
40
- ]
41
- }
42
- },
43
- "files": [
44
- "src",
45
- "dist",
46
- "!dist/test",
47
- "!**/*.tsbuildinfo"
48
- ],
49
- "exports": {
50
- ".": {
51
- "types": "./dist/src/index.d.ts",
52
- "import": "./src/index.js",
53
- "browser": "./src/index-browser.js"
54
- },
55
- "./buffer-writer": {
56
- "types": "./dist/src/buffer-writer.d.ts",
57
- "import": "./src/buffer-writer.js"
58
- },
59
- "./decoder": {
60
- "types": "./dist/src/decoder.d.ts",
61
- "import": "./src/decoder.js"
62
- },
63
- "./indexed-reader": {
64
- "types": "./dist/src/indexed-reader.d.ts",
65
- "browser": "./src/indexed-reader-browser.js",
66
- "import": "./src/indexed-reader.js"
67
- },
68
- "./indexer": {
69
- "types": "./dist/src/indexer.d.ts",
70
- "import": "./src/indexer.js"
71
- },
72
- "./iterator": {
73
- "types": "./dist/src/iterator.d.ts",
74
- "import": "./src/iterator.js"
75
- },
76
- "./reader": {
77
- "types": "./dist/src/reader.d.ts",
78
- "browser": "./src/reader-browser.js",
79
- "import": "./src/reader.js"
80
- },
81
- "./buffer-reader": {
82
- "types": "./dist/src/buffer-reader-browser.d.ts",
83
- "browser": "./src/buffer-reader-browser.js",
84
- "import": "./src/buffer-reader.js"
85
- },
86
- "./writer": {
87
- "types": "./dist/src/writer.d.ts",
88
- "browser": "./src/writer-browser.js",
89
- "import": "./src/writer.js"
90
- }
91
- },
92
- "eslintConfig": {
93
- "extends": "ipfs",
94
- "parserOptions": {
95
- "sourceType": "module"
96
- }
97
- },
98
- "release": {
99
- "branches": [
100
- "master"
101
- ],
102
- "plugins": [
103
- [
104
- "@semantic-release/commit-analyzer",
105
- {
106
- "preset": "conventionalcommits",
107
- "releaseRules": [
108
- {
109
- "breaking": true,
110
- "release": "major"
111
- },
112
- {
113
- "revert": true,
114
- "release": "patch"
115
- },
116
- {
117
- "type": "feat",
118
- "release": "minor"
119
- },
120
- {
121
- "type": "fix",
122
- "release": "patch"
123
- },
124
- {
125
- "type": "docs",
126
- "release": "patch"
127
- },
128
- {
129
- "type": "test",
130
- "release": "patch"
131
- },
132
- {
133
- "type": "deps",
134
- "release": "patch"
135
- },
136
- {
137
- "scope": "no-release",
138
- "release": false
139
- }
140
- ]
141
- }
142
- ],
143
- [
144
- "@semantic-release/release-notes-generator",
145
- {
146
- "preset": "conventionalcommits",
147
- "presetConfig": {
148
- "types": [
149
- {
150
- "type": "feat",
151
- "section": "Features"
152
- },
153
- {
154
- "type": "fix",
155
- "section": "Bug Fixes"
156
- },
157
- {
158
- "type": "chore",
159
- "section": "Trivial Changes"
160
- },
161
- {
162
- "type": "docs",
163
- "section": "Documentation"
164
- },
165
- {
166
- "type": "deps",
167
- "section": "Dependencies"
168
- },
169
- {
170
- "type": "test",
171
- "section": "Tests"
172
- }
173
- ]
174
- }
175
- }
176
- ],
177
- "@semantic-release/changelog",
178
- "@semantic-release/npm",
179
- "@semantic-release/github",
180
- "@semantic-release/git"
181
- ]
182
- },
183
- "scripts": {
184
- "clean": "aegir clean",
185
- "lint": "aegir lint",
186
- "build": "aegir build",
187
- "build:validator": "npx @ipld/schema to-js src/header.ipldsch > src/header-validator.js",
188
- "release": "aegir release",
189
- "test": "npm run lint && aegir test && npm run test:examples",
190
- "test:node": "aegir test -t node --cov",
191
- "test:chrome": "aegir test -t browser --cov",
192
- "test:chrome-webworker": "aegir test -t webworker",
193
- "test:firefox": "aegir test -t browser -- --browser firefox",
194
- "test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
195
- "test:electron-main": "aegir test -t electron-main",
196
- "test:examples": "npm run test --prefix examples/",
197
- "dep-check": "aegir dep-check",
198
- "coverage": "c8 --reporter=html --reporter=text mocha test/test-*.js && npx st -d coverage -p 8888",
199
- "docs": "jsdoc4readme --readme --description-only src/reader*.js src/indexed-reader.js src/iterator.js src/indexer.js src/writer*.js src/buffer-writer.js src/decoder.js src/buffer-reader*.js"
200
- },
201
- "dependencies": {
202
- "@ipld/dag-cbor": "^9.0.7",
203
- "cborg": "^4.0.5",
204
- "multiformats": "^13.0.0",
205
- "varint": "^6.0.0"
206
- },
207
- "devDependencies": {
208
- "@ipld/dag-pb": "^4.0.7",
209
- "@ipld/garbage": "^6.0.5",
210
- "@types/varint": "^6.0.3",
211
- "aegir": "^45.0.1",
212
- "jsdoc4readme": "^1.4.0"
213
- },
214
- "browser": {
215
- "./src/index.js": "./src/index-browser.js",
216
- "./src/index-reader.js": "./src/index-reader-browser.js",
217
- "./src/reader.js": "./src/reader-browser.js",
218
- "./src/buffer-reader.js": "./src/buffer-reader-browser.js",
219
- "./src/writer.js": "./src/writer-browser.js",
220
- "fs": false,
221
- "util": false,
222
- "stream": false
223
- },
224
- "directories": {
225
- "test": "test"
226
- },
227
- "standard": {
228
- "ignore": [
229
- "dist"
230
- ]
231
- },
232
- "eslintIgnore": [
233
- "src/header-validator.js"
234
- ]
235
- }
@@ -1,171 +0,0 @@
1
- {
2
- "name": "@ipld/dag-cbor",
3
- "version": "9.2.2",
4
- "description": "JS implementation of DAG-CBOR",
5
- "author": "Rod <rod@vagg.org> (http://r.va.gg/)",
6
- "license": "Apache-2.0 OR MIT",
7
- "homepage": "https://github.com/ipld/js-dag-cbor#readme",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/ipld/js-dag-cbor.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/ipld/js-dag-cbor/issues"
14
- },
15
- "keywords": [
16
- "ipfs",
17
- "ipld",
18
- "multiformats"
19
- ],
20
- "engines": {
21
- "node": ">=16.0.0",
22
- "npm": ">=7.0.0"
23
- },
24
- "type": "module",
25
- "types": "./dist/src/index.d.ts",
26
- "typesVersions": {
27
- "*": {
28
- "*": [
29
- "*",
30
- "dist/*",
31
- "dist/src/*",
32
- "dist/src/*/index"
33
- ],
34
- "src/*": [
35
- "*",
36
- "dist/*",
37
- "dist/src/*",
38
- "dist/src/*/index"
39
- ]
40
- }
41
- },
42
- "files": [
43
- "src",
44
- "dist",
45
- "!dist/test",
46
- "!**/*.tsbuildinfo"
47
- ],
48
- "exports": {
49
- ".": {
50
- "types": "./dist/src/index.d.ts",
51
- "import": "./src/index.js"
52
- }
53
- },
54
- "eslintConfig": {
55
- "extends": "ipfs",
56
- "parserOptions": {
57
- "sourceType": "module"
58
- },
59
- "ignorePatterns": [
60
- "test/ts-use"
61
- ]
62
- },
63
- "release": {
64
- "branches": [
65
- "master"
66
- ],
67
- "plugins": [
68
- [
69
- "@semantic-release/commit-analyzer",
70
- {
71
- "preset": "conventionalcommits",
72
- "releaseRules": [
73
- {
74
- "breaking": true,
75
- "release": "major"
76
- },
77
- {
78
- "revert": true,
79
- "release": "patch"
80
- },
81
- {
82
- "type": "feat",
83
- "release": "minor"
84
- },
85
- {
86
- "type": "fix",
87
- "release": "patch"
88
- },
89
- {
90
- "type": "docs",
91
- "release": "patch"
92
- },
93
- {
94
- "type": "test",
95
- "release": "patch"
96
- },
97
- {
98
- "type": "deps",
99
- "release": "patch"
100
- },
101
- {
102
- "scope": "no-release",
103
- "release": false
104
- }
105
- ]
106
- }
107
- ],
108
- [
109
- "@semantic-release/release-notes-generator",
110
- {
111
- "preset": "conventionalcommits",
112
- "presetConfig": {
113
- "types": [
114
- {
115
- "type": "feat",
116
- "section": "Features"
117
- },
118
- {
119
- "type": "fix",
120
- "section": "Bug Fixes"
121
- },
122
- {
123
- "type": "chore",
124
- "section": "Trivial Changes"
125
- },
126
- {
127
- "type": "docs",
128
- "section": "Documentation"
129
- },
130
- {
131
- "type": "deps",
132
- "section": "Dependencies"
133
- },
134
- {
135
- "type": "test",
136
- "section": "Tests"
137
- }
138
- ]
139
- }
140
- }
141
- ],
142
- "@semantic-release/changelog",
143
- "@semantic-release/npm",
144
- "@semantic-release/github",
145
- "@semantic-release/git"
146
- ]
147
- },
148
- "scripts": {
149
- "clean": "aegir clean",
150
- "lint": "aegir lint",
151
- "build": "aegir build",
152
- "release": "aegir release",
153
- "test": "npm run lint && aegir test",
154
- "test:ts": "npm run test --prefix test/ts-use",
155
- "test:node": "aegir test -t node --cov",
156
- "test:chrome": "aegir test -t browser --cov",
157
- "test:chrome-webworker": "aegir test -t webworker",
158
- "test:firefox": "aegir test -t browser -- --browser firefox",
159
- "test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
160
- "test:electron-main": "aegir test -t electron-main",
161
- "dep-check": "aegir dep-check"
162
- },
163
- "dependencies": {
164
- "cborg": "^4.0.0",
165
- "multiformats": "^13.1.0"
166
- },
167
- "devDependencies": {
168
- "@ipld/garbage": "^6.0.0",
169
- "aegir": "^45.0.1"
170
- }
171
- }