@fireproof/vendor 0.0.0-smoke → 0.0.2-dev-test

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.
Files changed (489) hide show
  1. package/merge-package.ts +207 -0
  2. package/p-limit/index.d.ts +81 -0
  3. package/p-limit/index.js +104 -0
  4. package/p-limit/index.test-d.ts +19 -0
  5. package/p-limit/license +9 -0
  6. package/p-limit/package.json +59 -0
  7. package/p-limit/readme.md +128 -0
  8. package/p-limit/test.js +241 -0
  9. package/package.json +12 -9
  10. package/to-esm-transform.ts +42 -0
  11. package/patched/@ipld/dag-json/.github/dependabot.yml +0 -11
  12. package/patched/@ipld/dag-json/.github/workflows/js-test-and-release.yml +0 -28
  13. package/patched/@ipld/dag-json/CHANGELOG.md +0 -202
  14. package/patched/@ipld/dag-json/LICENSE +0 -4
  15. package/patched/@ipld/dag-json/LICENSE-APACHE +0 -5
  16. package/patched/@ipld/dag-json/LICENSE-MIT +0 -19
  17. package/patched/@ipld/dag-json/README.md +0 -58
  18. package/patched/@ipld/dag-json/ipld-dag-json-10.2.3.tgz +0 -0
  19. package/patched/@ipld/dag-json/package.json +0 -173
  20. package/patched/@ipld/dag-json/src/index.js +0 -291
  21. package/patched/@ipld/dag-json/test/test-basics.spec.js +0 -290
  22. package/patched/@ipld/dag-json/test/ts-use/package.json +0 -11
  23. package/patched/@ipld/dag-json/test/ts-use/src/main.ts +0 -54
  24. package/patched/@ipld/dag-json/test/ts-use/tsconfig.json +0 -9
  25. package/patched/@ipld/dag-json/tsconfig.json +0 -14
  26. package/patched/cborg/.github/dependabot.yml +0 -16
  27. package/patched/cborg/.github/workflows/test-and-release.yml +0 -52
  28. package/patched/cborg/CHANGELOG.md +0 -513
  29. package/patched/cborg/LICENSE +0 -13
  30. package/patched/cborg/README.md +0 -515
  31. package/patched/cborg/bench/bench.js +0 -117
  32. package/patched/cborg/bench/json.js +0 -124
  33. package/patched/cborg/bench/package.json +0 -8
  34. package/patched/cborg/cborg-4.2.7.tgz +0 -0
  35. package/patched/cborg/cborg.js +0 -31
  36. package/patched/cborg/example-bytestrings.js +0 -180
  37. package/patched/cborg/example-json.js +0 -6
  38. package/patched/cborg/example.js +0 -5
  39. package/patched/cborg/interface.ts +0 -56
  40. package/patched/cborg/lib/0uint.js +0 -227
  41. package/patched/cborg/lib/1negint.js +0 -111
  42. package/patched/cborg/lib/2bytes.js +0 -133
  43. package/patched/cborg/lib/3string.js +0 -90
  44. package/patched/cborg/lib/4array.js +0 -113
  45. package/patched/cborg/lib/5map.js +0 -113
  46. package/patched/cborg/lib/6tag.js +0 -80
  47. package/patched/cborg/lib/7float.js +0 -308
  48. package/patched/cborg/lib/bin.js +0 -189
  49. package/patched/cborg/lib/bl.js +0 -124
  50. package/patched/cborg/lib/byte-utils.js +0 -417
  51. package/patched/cborg/lib/common.js +0 -27
  52. package/patched/cborg/lib/decode.js +0 -209
  53. package/patched/cborg/lib/diagnostic.js +0 -156
  54. package/patched/cborg/lib/diagnostic_test.js +0 -117
  55. package/patched/cborg/lib/encode.js +0 -464
  56. package/patched/cborg/lib/is.js +0 -106
  57. package/patched/cborg/lib/json/decode.js +0 -462
  58. package/patched/cborg/lib/json/encode.js +0 -299
  59. package/patched/cborg/lib/json/json.js +0 -4
  60. package/patched/cborg/lib/jump.js +0 -209
  61. package/patched/cborg/lib/length.js +0 -61
  62. package/patched/cborg/lib/token.js +0 -76
  63. package/patched/cborg/package.json +0 -169
  64. package/patched/cborg/pnpm-lock.yaml +0 -6096
  65. package/patched/cborg/taglib.js +0 -73
  66. package/patched/cborg/test/appendix_a.js +0 -647
  67. package/patched/cborg/test/common.js +0 -18
  68. package/patched/cborg/test/node-test-bin.js +0 -402
  69. package/patched/cborg/test/noop-bin-test.js +0 -3
  70. package/patched/cborg/test/test-0uint.js +0 -103
  71. package/patched/cborg/test/test-1negint.js +0 -96
  72. package/patched/cborg/test/test-2bytes.js +0 -198
  73. package/patched/cborg/test/test-3string.js +0 -136
  74. package/patched/cborg/test/test-4array.js +0 -93
  75. package/patched/cborg/test/test-5map.js +0 -284
  76. package/patched/cborg/test/test-6tag.js +0 -85
  77. package/patched/cborg/test/test-7float.js +0 -131
  78. package/patched/cborg/test/test-bl.js +0 -37
  79. package/patched/cborg/test/test-cbor-vectors.js +0 -107
  80. package/patched/cborg/test/test-decode-errors.js +0 -65
  81. package/patched/cborg/test/test-fuzz.js +0 -42
  82. package/patched/cborg/test/test-json.js +0 -219
  83. package/patched/cborg/test/test-length.js +0 -65
  84. package/patched/cborg/test/test-partial.js +0 -111
  85. package/patched/cborg/tsconfig.json +0 -45
  86. package/patched/cborg/types/cborg.d.ts +0 -28
  87. package/patched/cborg/types/cborg.d.ts.map +0 -1
  88. package/patched/cborg/types/example.d.ts +0 -2
  89. package/patched/cborg/types/example.d.ts.map +0 -1
  90. package/patched/cborg/types/interface.d.ts +0 -47
  91. package/patched/cborg/types/interface.d.ts.map +0 -1
  92. package/patched/cborg/types/lib/0uint.d.ts +0 -100
  93. package/patched/cborg/types/lib/0uint.d.ts.map +0 -1
  94. package/patched/cborg/types/lib/1negint.d.ts +0 -58
  95. package/patched/cborg/types/lib/1negint.d.ts.map +0 -1
  96. package/patched/cborg/types/lib/2bytes.d.ts +0 -68
  97. package/patched/cborg/types/lib/2bytes.d.ts.map +0 -1
  98. package/patched/cborg/types/lib/3string.d.ts +0 -46
  99. package/patched/cborg/types/lib/3string.d.ts.map +0 -1
  100. package/patched/cborg/types/lib/4array.d.ts +0 -65
  101. package/patched/cborg/types/lib/4array.d.ts.map +0 -1
  102. package/patched/cborg/types/lib/5map.d.ts +0 -65
  103. package/patched/cborg/types/lib/5map.d.ts.map +0 -1
  104. package/patched/cborg/types/lib/6tag.d.ts +0 -61
  105. package/patched/cborg/types/lib/6tag.d.ts.map +0 -1
  106. package/patched/cborg/types/lib/7float.d.ts +0 -60
  107. package/patched/cborg/types/lib/7float.d.ts.map +0 -1
  108. package/patched/cborg/types/lib/bin.d.ts +0 -4
  109. package/patched/cborg/types/lib/bin.d.ts.map +0 -1
  110. package/patched/cborg/types/lib/bl.d.ts +0 -26
  111. package/patched/cborg/types/lib/bl.d.ts.map +0 -1
  112. package/patched/cborg/types/lib/byte-utils.d.ts +0 -53
  113. package/patched/cborg/types/lib/byte-utils.d.ts.map +0 -1
  114. package/patched/cborg/types/lib/common.d.ts +0 -10
  115. package/patched/cborg/types/lib/common.d.ts.map +0 -1
  116. package/patched/cborg/types/lib/decode.d.ts +0 -41
  117. package/patched/cborg/types/lib/decode.d.ts.map +0 -1
  118. package/patched/cborg/types/lib/diagnostic.d.ts +0 -12
  119. package/patched/cborg/types/lib/diagnostic.d.ts.map +0 -1
  120. package/patched/cborg/types/lib/diagnostic_test.d.ts +0 -2
  121. package/patched/cborg/types/lib/diagnostic_test.d.ts.map +0 -1
  122. package/patched/cborg/types/lib/encode.d.ts +0 -50
  123. package/patched/cborg/types/lib/encode.d.ts.map +0 -1
  124. package/patched/cborg/types/lib/is.d.ts +0 -6
  125. package/patched/cborg/types/lib/is.d.ts.map +0 -1
  126. package/patched/cborg/types/lib/json/decode.d.ts +0 -67
  127. package/patched/cborg/types/lib/json/decode.d.ts.map +0 -1
  128. package/patched/cborg/types/lib/json/encode.d.ts +0 -11
  129. package/patched/cborg/types/lib/json/encode.d.ts.map +0 -1
  130. package/patched/cborg/types/lib/json/forward-cborg.d.ts +0 -6
  131. package/patched/cborg/types/lib/json/forward-cborg.d.ts.map +0 -1
  132. package/patched/cborg/types/lib/json/json.d.ts +0 -6
  133. package/patched/cborg/types/lib/json/json.d.ts.map +0 -1
  134. package/patched/cborg/types/lib/jump.d.ts +0 -12
  135. package/patched/cborg/types/lib/jump.d.ts.map +0 -1
  136. package/patched/cborg/types/lib/length.d.ts +0 -27
  137. package/patched/cborg/types/lib/length.d.ts.map +0 -1
  138. package/patched/cborg/types/lib/token.d.ts +0 -59
  139. package/patched/cborg/types/lib/token.d.ts.map +0 -1
  140. package/patched/cborg/types/taglib.d.ts +0 -18
  141. package/patched/cborg/types/taglib.d.ts.map +0 -1
  142. package/patched/cborg/types/tsconfig.tsbuildinfo +0 -1
  143. package/src/@ipld/car/car/LICENSE +0 -4
  144. package/src/@ipld/car/car/README.md +0 -1078
  145. package/src/@ipld/car/car/dist/index.min.js +0 -5
  146. package/src/@ipld/car/car/dist/src/api.d.ts +0 -72
  147. package/src/@ipld/car/car/dist/src/api.d.ts.map +0 -1
  148. package/src/@ipld/car/car/dist/src/buffer-decoder.d.ts +0 -67
  149. package/src/@ipld/car/car/dist/src/buffer-decoder.d.ts.map +0 -1
  150. package/src/@ipld/car/car/dist/src/buffer-reader-browser.d.ts +0 -116
  151. package/src/@ipld/car/car/dist/src/buffer-reader-browser.d.ts.map +0 -1
  152. package/src/@ipld/car/car/dist/src/buffer-reader.d.ts +0 -31
  153. package/src/@ipld/car/car/dist/src/buffer-reader.d.ts.map +0 -1
  154. package/src/@ipld/car/car/dist/src/buffer-writer.d.ts +0 -86
  155. package/src/@ipld/car/car/dist/src/buffer-writer.d.ts.map +0 -1
  156. package/src/@ipld/car/car/dist/src/coding.d.ts +0 -49
  157. package/src/@ipld/car/car/dist/src/coding.d.ts.map +0 -1
  158. package/src/@ipld/car/car/dist/src/decoder-common.d.ts +0 -43
  159. package/src/@ipld/car/car/dist/src/decoder-common.d.ts.map +0 -1
  160. package/src/@ipld/car/car/dist/src/decoder.d.ts +0 -87
  161. package/src/@ipld/car/car/dist/src/decoder.d.ts.map +0 -1
  162. package/src/@ipld/car/car/dist/src/encoder.d.ts +0 -17
  163. package/src/@ipld/car/car/dist/src/encoder.d.ts.map +0 -1
  164. package/src/@ipld/car/car/dist/src/header-validator.d.ts +0 -5
  165. package/src/@ipld/car/car/dist/src/header-validator.d.ts.map +0 -1
  166. package/src/@ipld/car/car/dist/src/index-browser.d.ts +0 -10
  167. package/src/@ipld/car/car/dist/src/index-browser.d.ts.map +0 -1
  168. package/src/@ipld/car/car/dist/src/index.d.ts +0 -11
  169. package/src/@ipld/car/car/dist/src/index.d.ts.map +0 -1
  170. package/src/@ipld/car/car/dist/src/indexed-reader-browser.d.ts +0 -5
  171. package/src/@ipld/car/car/dist/src/indexed-reader-browser.d.ts.map +0 -1
  172. package/src/@ipld/car/car/dist/src/indexed-reader.d.ts +0 -152
  173. package/src/@ipld/car/car/dist/src/indexed-reader.d.ts.map +0 -1
  174. package/src/@ipld/car/car/dist/src/indexer.d.ts +0 -95
  175. package/src/@ipld/car/car/dist/src/indexer.d.ts.map +0 -1
  176. package/src/@ipld/car/car/dist/src/iterator-channel.d.ts +0 -7
  177. package/src/@ipld/car/car/dist/src/iterator-channel.d.ts.map +0 -1
  178. package/src/@ipld/car/car/dist/src/iterator.d.ts +0 -174
  179. package/src/@ipld/car/car/dist/src/iterator.d.ts.map +0 -1
  180. package/src/@ipld/car/car/dist/src/reader-browser.d.ts +0 -151
  181. package/src/@ipld/car/car/dist/src/reader-browser.d.ts.map +0 -1
  182. package/src/@ipld/car/car/dist/src/reader.d.ts +0 -35
  183. package/src/@ipld/car/car/dist/src/reader.d.ts.map +0 -1
  184. package/src/@ipld/car/car/dist/src/writer-browser.d.ts +0 -155
  185. package/src/@ipld/car/car/dist/src/writer-browser.d.ts.map +0 -1
  186. package/src/@ipld/car/car/dist/src/writer.d.ts +0 -45
  187. package/src/@ipld/car/car/dist/src/writer.d.ts.map +0 -1
  188. package/src/@ipld/car/car/node_modules/.bin/cborg +0 -17
  189. package/src/@ipld/car/car/package.json +0 -235
  190. package/src/@ipld/car/car/src/api.ts +0 -90
  191. package/src/@ipld/car/car/src/buffer-decoder.js +0 -213
  192. package/src/@ipld/car/car/src/buffer-reader-browser.js +0 -144
  193. package/src/@ipld/car/car/src/buffer-reader.js +0 -51
  194. package/src/@ipld/car/car/src/buffer-writer.js +0 -286
  195. package/src/@ipld/car/car/src/coding.ts +0 -68
  196. package/src/@ipld/car/car/src/decoder-common.js +0 -82
  197. package/src/@ipld/car/car/src/decoder.js +0 -347
  198. package/src/@ipld/car/car/src/encoder.js +0 -76
  199. package/src/@ipld/car/car/src/header-validator.js +0 -214
  200. package/src/@ipld/car/car/src/header.ipldsch +0 -18
  201. package/src/@ipld/car/car/src/index-browser.js +0 -18
  202. package/src/@ipld/car/car/src/index.js +0 -21
  203. package/src/@ipld/car/car/src/indexed-reader-browser.js +0 -7
  204. package/src/@ipld/car/car/src/indexed-reader.js +0 -211
  205. package/src/@ipld/car/car/src/indexer.js +0 -130
  206. package/src/@ipld/car/car/src/iterator-channel.js +0 -91
  207. package/src/@ipld/car/car/src/iterator.js +0 -267
  208. package/src/@ipld/car/car/src/reader-browser.js +0 -194
  209. package/src/@ipld/car/car/src/reader.js +0 -56
  210. package/src/@ipld/car/car/src/writer-browser.js +0 -250
  211. package/src/@ipld/car/car/src/writer.js +0 -84
  212. package/src/@ipld/dag-cbor/dag-cbor/LICENSE +0 -4
  213. package/src/@ipld/dag-cbor/dag-cbor/README.md +0 -80
  214. package/src/@ipld/dag-cbor/dag-cbor/dist/index.min.js +0 -3
  215. package/src/@ipld/dag-cbor/dag-cbor/dist/src/index.d.ts +0 -67
  216. package/src/@ipld/dag-cbor/dag-cbor/dist/src/index.d.ts.map +0 -1
  217. package/src/@ipld/dag-cbor/dag-cbor/node_modules/.bin/cborg +0 -17
  218. package/src/@ipld/dag-cbor/dag-cbor/package.json +0 -171
  219. package/src/@ipld/dag-cbor/dag-cbor/src/index.js +0 -147
  220. package/src/@ipld/dag-json/dag-json/LICENSE +0 -4
  221. package/src/@ipld/dag-json/dag-json/README.md +0 -58
  222. package/src/@ipld/dag-json/dag-json/dist/index.min.js +0 -3
  223. package/src/@ipld/dag-json/dag-json/dist/src/index.d.ts +0 -12
  224. package/src/@ipld/dag-json/dag-json/dist/src/index.d.ts.map +0 -1
  225. package/src/@ipld/dag-json/dag-json/node_modules/.bin/cborg +0 -17
  226. package/src/@ipld/dag-json/dag-json/package.json +0 -173
  227. package/src/@ipld/dag-json/dag-json/src/index.js +0 -291
  228. package/src/@web3-storage/pail/pail/LICENSE.md +0 -232
  229. package/src/@web3-storage/pail/pail/README.md +0 -84
  230. package/src/@web3-storage/pail/pail/cli.js +0 -218
  231. package/src/@web3-storage/pail/pail/dist/src/api.d.ts +0 -59
  232. package/src/@web3-storage/pail/pail/dist/src/api.d.ts.map +0 -1
  233. package/src/@web3-storage/pail/pail/dist/src/batch/api.d.ts +0 -31
  234. package/src/@web3-storage/pail/pail/dist/src/batch/api.d.ts.map +0 -1
  235. package/src/@web3-storage/pail/pail/dist/src/batch/index.d.ts +0 -75
  236. package/src/@web3-storage/pail/pail/dist/src/batch/index.d.ts.map +0 -1
  237. package/src/@web3-storage/pail/pail/dist/src/batch/shard.d.ts +0 -3
  238. package/src/@web3-storage/pail/pail/dist/src/batch/shard.d.ts.map +0 -1
  239. package/src/@web3-storage/pail/pail/dist/src/block.d.ts +0 -35
  240. package/src/@web3-storage/pail/pail/dist/src/block.d.ts.map +0 -1
  241. package/src/@web3-storage/pail/pail/dist/src/clock/api.d.ts +0 -10
  242. package/src/@web3-storage/pail/pail/dist/src/clock/api.d.ts.map +0 -1
  243. package/src/@web3-storage/pail/pail/dist/src/clock/index.d.ts +0 -48
  244. package/src/@web3-storage/pail/pail/dist/src/clock/index.d.ts.map +0 -1
  245. package/src/@web3-storage/pail/pail/dist/src/crdt/api.d.ts +0 -26
  246. package/src/@web3-storage/pail/pail/dist/src/crdt/api.d.ts.map +0 -1
  247. package/src/@web3-storage/pail/pail/dist/src/crdt/batch/api.d.ts +0 -11
  248. package/src/@web3-storage/pail/pail/dist/src/crdt/batch/api.d.ts.map +0 -1
  249. package/src/@web3-storage/pail/pail/dist/src/crdt/batch/index.d.ts +0 -5
  250. package/src/@web3-storage/pail/pail/dist/src/crdt/batch/index.d.ts.map +0 -1
  251. package/src/@web3-storage/pail/pail/dist/src/crdt/index.d.ts +0 -9
  252. package/src/@web3-storage/pail/pail/dist/src/crdt/index.d.ts.map +0 -1
  253. package/src/@web3-storage/pail/pail/dist/src/diff.d.ts +0 -13
  254. package/src/@web3-storage/pail/pail/dist/src/diff.d.ts.map +0 -1
  255. package/src/@web3-storage/pail/pail/dist/src/index.d.ts +0 -10
  256. package/src/@web3-storage/pail/pail/dist/src/index.d.ts.map +0 -1
  257. package/src/@web3-storage/pail/pail/dist/src/merge.d.ts +0 -5
  258. package/src/@web3-storage/pail/pail/dist/src/merge.d.ts.map +0 -1
  259. package/src/@web3-storage/pail/pail/dist/src/shard.d.ts +0 -43
  260. package/src/@web3-storage/pail/pail/dist/src/shard.d.ts.map +0 -1
  261. package/src/@web3-storage/pail/pail/dist/tsconfig.tsbuildinfo +0 -1
  262. package/src/@web3-storage/pail/pail/node_modules/.bin/pail +0 -17
  263. package/src/@web3-storage/pail/pail/package.json +0 -173
  264. package/src/@web3-storage/pail/pail/src/api.js +0 -1
  265. package/src/@web3-storage/pail/pail/src/api.ts +0 -90
  266. package/src/@web3-storage/pail/pail/src/batch/api.js +0 -1
  267. package/src/@web3-storage/pail/pail/src/batch/api.ts +0 -59
  268. package/src/@web3-storage/pail/pail/src/batch/index.js +0 -258
  269. package/src/@web3-storage/pail/pail/src/batch/shard.js +0 -13
  270. package/src/@web3-storage/pail/pail/src/block.js +0 -75
  271. package/src/@web3-storage/pail/pail/src/clock/api.js +0 -1
  272. package/src/@web3-storage/pail/pail/src/clock/api.ts +0 -12
  273. package/src/@web3-storage/pail/pail/src/clock/index.js +0 -182
  274. package/src/@web3-storage/pail/pail/src/crdt/api.js +0 -1
  275. package/src/@web3-storage/pail/pail/src/crdt/api.ts +0 -33
  276. package/src/@web3-storage/pail/pail/src/crdt/batch/api.js +0 -1
  277. package/src/@web3-storage/pail/pail/src/crdt/batch/api.ts +0 -30
  278. package/src/@web3-storage/pail/pail/src/crdt/batch/index.js +0 -155
  279. package/src/@web3-storage/pail/pail/src/crdt/index.js +0 -354
  280. package/src/@web3-storage/pail/pail/src/diff.js +0 -151
  281. package/src/@web3-storage/pail/pail/src/index.js +0 -406
  282. package/src/@web3-storage/pail/pail/src/merge.js +0 -43
  283. package/src/@web3-storage/pail/pail/src/shard.js +0 -180
  284. package/src/cborg/cborg/.github/dependabot.yml +0 -16
  285. package/src/cborg/cborg/.github/workflows/test-and-release.yml +0 -52
  286. package/src/cborg/cborg/CHANGELOG.md +0 -513
  287. package/src/cborg/cborg/LICENSE +0 -13
  288. package/src/cborg/cborg/README.md +0 -515
  289. package/src/cborg/cborg/bench/bench.js +0 -117
  290. package/src/cborg/cborg/bench/json.js +0 -124
  291. package/src/cborg/cborg/bench/package.json +0 -8
  292. package/src/cborg/cborg/cborg.js +0 -31
  293. package/src/cborg/cborg/example-bytestrings.js +0 -180
  294. package/src/cborg/cborg/example-json.js +0 -6
  295. package/src/cborg/cborg/example.js +0 -5
  296. package/src/cborg/cborg/interface.ts +0 -56
  297. package/src/cborg/cborg/lib/0uint.js +0 -227
  298. package/src/cborg/cborg/lib/1negint.js +0 -111
  299. package/src/cborg/cborg/lib/2bytes.js +0 -133
  300. package/src/cborg/cborg/lib/3string.js +0 -90
  301. package/src/cborg/cborg/lib/4array.js +0 -113
  302. package/src/cborg/cborg/lib/5map.js +0 -113
  303. package/src/cborg/cborg/lib/6tag.js +0 -80
  304. package/src/cborg/cborg/lib/7float.js +0 -308
  305. package/src/cborg/cborg/lib/bin.js +0 -189
  306. package/src/cborg/cborg/lib/bl.js +0 -124
  307. package/src/cborg/cborg/lib/byte-utils.js +0 -417
  308. package/src/cborg/cborg/lib/common.js +0 -27
  309. package/src/cborg/cborg/lib/decode.js +0 -209
  310. package/src/cborg/cborg/lib/diagnostic.js +0 -156
  311. package/src/cborg/cborg/lib/diagnostic_test.js +0 -117
  312. package/src/cborg/cborg/lib/encode.js +0 -464
  313. package/src/cborg/cborg/lib/is.js +0 -106
  314. package/src/cborg/cborg/lib/json/decode.js +0 -462
  315. package/src/cborg/cborg/lib/json/encode.js +0 -299
  316. package/src/cborg/cborg/lib/json/json.js +0 -4
  317. package/src/cborg/cborg/lib/jump.js +0 -209
  318. package/src/cborg/cborg/lib/length.js +0 -61
  319. package/src/cborg/cborg/lib/token.js +0 -76
  320. package/src/cborg/cborg/node_modules/.bin/cborg +0 -17
  321. package/src/cborg/cborg/package.json +0 -168
  322. package/src/cborg/cborg/taglib.js +0 -73
  323. package/src/cborg/cborg/test/appendix_a.js +0 -647
  324. package/src/cborg/cborg/test/common.js +0 -18
  325. package/src/cborg/cborg/test/node-test-bin.js +0 -402
  326. package/src/cborg/cborg/test/noop-bin-test.js +0 -3
  327. package/src/cborg/cborg/test/test-0uint.js +0 -103
  328. package/src/cborg/cborg/test/test-1negint.js +0 -96
  329. package/src/cborg/cborg/test/test-2bytes.js +0 -198
  330. package/src/cborg/cborg/test/test-3string.js +0 -136
  331. package/src/cborg/cborg/test/test-4array.js +0 -93
  332. package/src/cborg/cborg/test/test-5map.js +0 -284
  333. package/src/cborg/cborg/test/test-6tag.js +0 -85
  334. package/src/cborg/cborg/test/test-7float.js +0 -131
  335. package/src/cborg/cborg/test/test-bl.js +0 -37
  336. package/src/cborg/cborg/test/test-cbor-vectors.js +0 -107
  337. package/src/cborg/cborg/test/test-decode-errors.js +0 -65
  338. package/src/cborg/cborg/test/test-fuzz.js +0 -42
  339. package/src/cborg/cborg/test/test-json.js +0 -219
  340. package/src/cborg/cborg/test/test-length.js +0 -65
  341. package/src/cborg/cborg/test/test-partial.js +0 -111
  342. package/src/cborg/cborg/tsconfig.json +0 -45
  343. package/src/cborg/cborg/types/cborg.d.ts +0 -28
  344. package/src/cborg/cborg/types/cborg.d.ts.map +0 -1
  345. package/src/cborg/cborg/types/example.d.ts +0 -2
  346. package/src/cborg/cborg/types/example.d.ts.map +0 -1
  347. package/src/cborg/cborg/types/interface.d.ts +0 -47
  348. package/src/cborg/cborg/types/interface.d.ts.map +0 -1
  349. package/src/cborg/cborg/types/lib/0uint.d.ts +0 -100
  350. package/src/cborg/cborg/types/lib/0uint.d.ts.map +0 -1
  351. package/src/cborg/cborg/types/lib/1negint.d.ts +0 -58
  352. package/src/cborg/cborg/types/lib/1negint.d.ts.map +0 -1
  353. package/src/cborg/cborg/types/lib/2bytes.d.ts +0 -68
  354. package/src/cborg/cborg/types/lib/2bytes.d.ts.map +0 -1
  355. package/src/cborg/cborg/types/lib/3string.d.ts +0 -46
  356. package/src/cborg/cborg/types/lib/3string.d.ts.map +0 -1
  357. package/src/cborg/cborg/types/lib/4array.d.ts +0 -65
  358. package/src/cborg/cborg/types/lib/4array.d.ts.map +0 -1
  359. package/src/cborg/cborg/types/lib/5map.d.ts +0 -65
  360. package/src/cborg/cborg/types/lib/5map.d.ts.map +0 -1
  361. package/src/cborg/cborg/types/lib/6tag.d.ts +0 -61
  362. package/src/cborg/cborg/types/lib/6tag.d.ts.map +0 -1
  363. package/src/cborg/cborg/types/lib/7float.d.ts +0 -60
  364. package/src/cborg/cborg/types/lib/7float.d.ts.map +0 -1
  365. package/src/cborg/cborg/types/lib/bin.d.ts +0 -4
  366. package/src/cborg/cborg/types/lib/bin.d.ts.map +0 -1
  367. package/src/cborg/cborg/types/lib/bl.d.ts +0 -26
  368. package/src/cborg/cborg/types/lib/bl.d.ts.map +0 -1
  369. package/src/cborg/cborg/types/lib/byte-utils.d.ts +0 -53
  370. package/src/cborg/cborg/types/lib/byte-utils.d.ts.map +0 -1
  371. package/src/cborg/cborg/types/lib/common.d.ts +0 -10
  372. package/src/cborg/cborg/types/lib/common.d.ts.map +0 -1
  373. package/src/cborg/cborg/types/lib/decode.d.ts +0 -41
  374. package/src/cborg/cborg/types/lib/decode.d.ts.map +0 -1
  375. package/src/cborg/cborg/types/lib/diagnostic.d.ts +0 -12
  376. package/src/cborg/cborg/types/lib/diagnostic.d.ts.map +0 -1
  377. package/src/cborg/cborg/types/lib/diagnostic_test.d.ts +0 -2
  378. package/src/cborg/cborg/types/lib/diagnostic_test.d.ts.map +0 -1
  379. package/src/cborg/cborg/types/lib/encode.d.ts +0 -50
  380. package/src/cborg/cborg/types/lib/encode.d.ts.map +0 -1
  381. package/src/cborg/cborg/types/lib/is.d.ts +0 -6
  382. package/src/cborg/cborg/types/lib/is.d.ts.map +0 -1
  383. package/src/cborg/cborg/types/lib/json/decode.d.ts +0 -67
  384. package/src/cborg/cborg/types/lib/json/decode.d.ts.map +0 -1
  385. package/src/cborg/cborg/types/lib/json/encode.d.ts +0 -11
  386. package/src/cborg/cborg/types/lib/json/encode.d.ts.map +0 -1
  387. package/src/cborg/cborg/types/lib/json/forward-cborg.d.ts +0 -6
  388. package/src/cborg/cborg/types/lib/json/forward-cborg.d.ts.map +0 -1
  389. package/src/cborg/cborg/types/lib/json/json.d.ts +0 -6
  390. package/src/cborg/cborg/types/lib/json/json.d.ts.map +0 -1
  391. package/src/cborg/cborg/types/lib/jump.d.ts +0 -12
  392. package/src/cborg/cborg/types/lib/jump.d.ts.map +0 -1
  393. package/src/cborg/cborg/types/lib/length.d.ts +0 -27
  394. package/src/cborg/cborg/types/lib/length.d.ts.map +0 -1
  395. package/src/cborg/cborg/types/lib/token.d.ts +0 -59
  396. package/src/cborg/cborg/types/lib/token.d.ts.map +0 -1
  397. package/src/cborg/cborg/types/taglib.d.ts +0 -18
  398. package/src/cborg/cborg/types/taglib.d.ts.map +0 -1
  399. package/src/cborg/cborg/types/tsconfig.tsbuildinfo +0 -1
  400. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/LICENSE +0 -4
  401. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/README.md +0 -105
  402. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/index.min.js +0 -3
  403. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/errors.d.ts +0 -57
  404. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/errors.d.ts.map +0 -1
  405. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/errors.js +0 -73
  406. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/errors.js.map +0 -1
  407. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/index.d.ts +0 -355
  408. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/index.d.ts.map +0 -1
  409. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/index.js +0 -197
  410. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/index.js.map +0 -1
  411. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-cbor.d.ts +0 -4
  412. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-cbor.d.ts.map +0 -1
  413. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-cbor.js +0 -9
  414. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-cbor.js.map +0 -1
  415. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-json.d.ts +0 -4
  416. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-json.d.ts.map +0 -1
  417. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-json.js +0 -9
  418. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/dag-json.js.map +0 -1
  419. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/identity.d.ts +0 -4
  420. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/identity.d.ts.map +0 -1
  421. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/identity.js +0 -38
  422. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/identity.js.map +0 -1
  423. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/index.d.ts +0 -4
  424. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/index.d.ts.map +0 -1
  425. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/index.js +0 -30
  426. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/index.js.map +0 -1
  427. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/json.d.ts +0 -4
  428. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/json.d.ts.map +0 -1
  429. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/json.js +0 -9
  430. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/json.js.map +0 -1
  431. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/raw.d.ts +0 -4
  432. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/raw.d.ts.map +0 -1
  433. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/raw.js +0 -37
  434. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/raw.js.map +0 -1
  435. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/directory.d.ts +0 -4
  436. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/directory.d.ts.map +0 -1
  437. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/directory.js +0 -29
  438. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/directory.js.map +0 -1
  439. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/file.d.ts +0 -4
  440. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/file.d.ts.map +0 -1
  441. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/file.js +0 -153
  442. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/file.js.map +0 -1
  443. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/hamt-sharded-directory.d.ts +0 -4
  444. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/hamt-sharded-directory.d.ts.map +0 -1
  445. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/hamt-sharded-directory.js +0 -59
  446. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/hamt-sharded-directory.js.map +0 -1
  447. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/raw.d.ts +0 -4
  448. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/raw.d.ts.map +0 -1
  449. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/raw.js +0 -25
  450. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/content/raw.js.map +0 -1
  451. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/index.d.ts +0 -4
  452. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/index.d.ts.map +0 -1
  453. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/index.js +0 -104
  454. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/resolvers/unixfs-v1/index.js.map +0 -1
  455. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/extract-data-from-block.d.ts +0 -3
  456. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/extract-data-from-block.d.ts.map +0 -1
  457. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/extract-data-from-block.js +0 -20
  458. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/extract-data-from-block.js.map +0 -1
  459. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/find-cid-in-shard.d.ts +0 -6
  460. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/find-cid-in-shard.d.ts.map +0 -1
  461. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/find-cid-in-shard.js +0 -116
  462. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/find-cid-in-shard.js.map +0 -1
  463. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/resolve-object-path.d.ts +0 -4
  464. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/resolve-object-path.d.ts.map +0 -1
  465. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/resolve-object-path.js +0 -57
  466. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/resolve-object-path.js.map +0 -1
  467. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/validate-offset-and-length.d.ts +0 -6
  468. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/validate-offset-and-length.d.ts.map +0 -1
  469. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/validate-offset-and-length.js +0 -30
  470. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/src/utils/validate-offset-and-length.js.map +0 -1
  471. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/dist/typedoc-urls.json +0 -58
  472. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/package.json +0 -180
  473. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/errors.ts +0 -87
  474. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/index.ts +0 -498
  475. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/dag-cbor.ts +0 -12
  476. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/dag-json.ts +0 -12
  477. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/identity.ts +0 -49
  478. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/index.ts +0 -35
  479. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/json.ts +0 -12
  480. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/raw.ts +0 -49
  481. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/directory.ts +0 -39
  482. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/file.ts +0 -198
  483. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/hamt-sharded-directory.ts +0 -76
  484. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/content/raw.ts +0 -37
  485. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/resolvers/unixfs-v1/index.ts +0 -121
  486. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/utils/extract-data-from-block.ts +0 -24
  487. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/utils/find-cid-in-shard.ts +0 -149
  488. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/utils/resolve-object-path.ts +0 -62
  489. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/src/utils/validate-offset-and-length.ts +0 -38
@@ -1,151 +0,0 @@
1
- /**
2
- * @private
3
- * @param {BytesReader} reader
4
- * @returns {Promise<CarReader>}
5
- */
6
- export function decodeReaderComplete(reader: BytesReader): Promise<CarReader>;
7
- /**
8
- * @typedef {import('multiformats').CID} CID
9
- * @typedef {import('./api').Block} Block
10
- * @typedef {import('./api').CarReader} CarReaderIface
11
- * @typedef {import('./coding').BytesReader} BytesReader
12
- * @typedef {import('./coding').CarHeader} CarHeader
13
- * @typedef {import('./coding').CarV2Header} CarV2Header
14
- */
15
- /**
16
- * Provides blockstore-like access to a CAR.
17
- *
18
- * Implements the `RootsReader` interface:
19
- * {@link CarReader.getRoots `getRoots()`}. And the `BlockReader` interface:
20
- * {@link CarReader.get `get()`}, {@link CarReader.has `has()`},
21
- * {@link CarReader.blocks `blocks()`} (defined as a `BlockIterator`) and
22
- * {@link CarReader.cids `cids()`} (defined as a `CIDIterator`).
23
- *
24
- * Load this class with either `import { CarReader } from '@ipld/car/reader'`
25
- * (`const { CarReader } = require('@ipld/car/reader')`). Or
26
- * `import { CarReader } from '@ipld/car'` (`const { CarReader } = require('@ipld/car')`).
27
- * The former will likely result in smaller bundle sizes where this is
28
- * important.
29
- *
30
- * @name CarReader
31
- * @class
32
- * @implements {CarReaderIface}
33
- * @property {number} version The version number of the CAR referenced by this
34
- * reader (should be `1` or `2`).
35
- */
36
- export class CarReader implements CarReaderIface {
37
- /**
38
- * Instantiate a {@link CarReader} from a `Uint8Array` blob. This performs a
39
- * decode fully in memory and maintains the decoded state in memory for full
40
- * access to the data via the `CarReader` API.
41
- *
42
- * @async
43
- * @static
44
- * @memberof CarReader
45
- * @param {Uint8Array} bytes
46
- * @returns {Promise<CarReader>}
47
- */
48
- static fromBytes(bytes: Uint8Array): Promise<CarReader>;
49
- /**
50
- * Instantiate a {@link CarReader} from a `AsyncIterable<Uint8Array>`, such as
51
- * a [modern Node.js stream](https://nodejs.org/api/stream.html#stream_streams_compatibility_with_async_generators_and_async_iterators).
52
- * This performs a decode fully in memory and maintains the decoded state in
53
- * memory for full access to the data via the `CarReader` API.
54
- *
55
- * Care should be taken for large archives; this API may not be appropriate
56
- * where memory is a concern or the archive is potentially larger than the
57
- * amount of memory that the runtime can handle.
58
- *
59
- * @async
60
- * @static
61
- * @memberof CarReader
62
- * @param {AsyncIterable<Uint8Array>} asyncIterable
63
- * @returns {Promise<CarReader>}
64
- */
65
- static fromIterable(asyncIterable: AsyncIterable<Uint8Array>): Promise<CarReader>;
66
- /**
67
- * @constructs CarReader
68
- * @param {CarHeader|CarV2Header} header
69
- * @param {Block[]} blocks
70
- */
71
- constructor(header: CarHeader | CarV2Header, blocks: Block[]);
72
- _header: import("./coding").CarHeader | import("./coding").CarV2Header;
73
- _blocks: import("./api").Block[];
74
- _keys: string[];
75
- /**
76
- * @property
77
- * @memberof CarReader
78
- * @instance
79
- */
80
- get version(): 1 | 2;
81
- /**
82
- * Get the list of roots defined by the CAR referenced by this reader. May be
83
- * zero or more `CID`s.
84
- *
85
- * @function
86
- * @memberof CarReader
87
- * @instance
88
- * @async
89
- * @returns {Promise<CID[]>}
90
- */
91
- getRoots(): Promise<CID[]>;
92
- /**
93
- * Check whether a given `CID` exists within the CAR referenced by this
94
- * reader.
95
- *
96
- * @function
97
- * @memberof CarReader
98
- * @instance
99
- * @async
100
- * @param {CID} key
101
- * @returns {Promise<boolean>}
102
- */
103
- has(key: CID): Promise<boolean>;
104
- /**
105
- * Fetch a `Block` (a `{ cid:CID, bytes:Uint8Array }` pair) from the CAR
106
- * referenced by this reader matching the provided `CID`. In the case where
107
- * the provided `CID` doesn't exist within the CAR, `undefined` will be
108
- * returned.
109
- *
110
- * @function
111
- * @memberof CarReader
112
- * @instance
113
- * @async
114
- * @param {CID} key
115
- * @returns {Promise<Block | undefined>}
116
- */
117
- get(key: CID): Promise<Block | undefined>;
118
- /**
119
- * Returns a `BlockIterator` (`AsyncIterable<Block>`) that iterates over all
120
- * of the `Block`s (`{ cid:CID, bytes:Uint8Array }` pairs) contained within
121
- * the CAR referenced by this reader.
122
- *
123
- * @function
124
- * @memberof CarReader
125
- * @instance
126
- * @async
127
- * @generator
128
- * @returns {AsyncGenerator<Block>}
129
- */
130
- blocks(): AsyncGenerator<Block>;
131
- /**
132
- * Returns a `CIDIterator` (`AsyncIterable<CID>`) that iterates over all of
133
- * the `CID`s contained within the CAR referenced by this reader.
134
- *
135
- * @function
136
- * @memberof CarReader
137
- * @instance
138
- * @async
139
- * @generator
140
- * @returns {AsyncGenerator<CID>}
141
- */
142
- cids(): AsyncGenerator<CID>;
143
- }
144
- export const __browser: true;
145
- export type CID = import('multiformats').CID;
146
- export type Block = import('./api').Block;
147
- export type CarReaderIface = import('./api').CarReader;
148
- export type BytesReader = import('./coding').BytesReader;
149
- export type CarHeader = import('./coding').CarHeader;
150
- export type CarV2Header = import('./coding').CarV2Header;
151
- //# sourceMappingURL=reader-browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reader-browser.d.ts","sourceRoot":"","sources":["../../src/reader-browser.js"],"names":[],"mappings":"AAiLA;;;;GAIG;AACH,6CAHW,WAAW,GACT,QAAQ,SAAS,CAAC,CAW9B;AA7LD;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAuGE;;;;;;;;;;OAUG;IACH,wBAHW,UAAU,GACR,QAAQ,SAAS,CAAC,CAO9B;IAED;;;;;;;;;;;;;;;OAeG;IACH,mCAHW,cAAc,UAAU,CAAC,GACvB,QAAQ,SAAS,CAAC,CAO9B;IA7ID;;;;OAIG;IACH,oBAHW,SAAS,GAAC,WAAW,UACrB,KAAK,EAAE,EAMjB;IAHC,uEAAqB;IACrB,iCAAqB;IACrB,gBAAgD;IAGlD;;;;OAIG;IACH,qBAEC;IAED;;;;;;;;;OASG;IACH,YAFa,QAAQ,GAAG,EAAE,CAAC,CAI1B;IAED;;;;;;;;;;OAUG;IACH,SAHW,GAAG,GACD,QAAQ,OAAO,CAAC,CAI5B;IAED;;;;;;;;;;;;OAYG;IACH,SAHW,GAAG,GACD,QAAQ,KAAK,GAAG,SAAS,CAAC,CAKtC;IAED;;;;;;;;;;;OAWG;IACH,UAFa,eAAe,KAAK,CAAC,CAMjC;IAED;;;;;;;;;;OAUG;IACH,QAFa,eAAe,GAAG,CAAC,CAM/B;CA0CF;AAkBD,6BAA6B;kBA9LhB,OAAO,cAAc,EAAE,GAAG;oBAC1B,OAAO,OAAO,EAAE,KAAK;6BACrB,OAAO,OAAO,EAAE,SAAS;0BACzB,OAAO,UAAU,EAAE,WAAW;wBAC9B,OAAO,UAAU,EAAE,SAAS;0BAC5B,OAAO,UAAU,EAAE,WAAW"}
@@ -1,35 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @class
4
- * @implements {CarReaderIface}
5
- */
6
- export class CarReader extends BrowserCarReader implements CarReaderIface {
7
- /**
8
- * Reads a block directly from a file descriptor for an open CAR file. This
9
- * function is **only available in Node.js** and not a browser environment.
10
- *
11
- * This function can be used in connection with {@link CarIndexer} which emits
12
- * the `BlockIndex` objects that are required by this function.
13
- *
14
- * The user is responsible for opening and closing the file used in this call.
15
- *
16
- * @async
17
- * @static
18
- * @memberof CarReader
19
- * @param {fs.promises.FileHandle | number} fd - A file descriptor from the
20
- * Node.js `fs` module. Either an integer, from `fs.open()` or a `FileHandle`
21
- * from `fs.promises.open()`.
22
- * @param {BlockIndex} blockIndex - An index pointing to the location of the
23
- * Block required. This `BlockIndex` should take the form:
24
- * `{cid:CID, blockLength:number, blockOffset:number}`.
25
- * @returns {Promise<Block>} A `{ cid:CID, bytes:Uint8Array }` pair.
26
- */
27
- static readRaw(fd: fs.promises.FileHandle | number, blockIndex: BlockIndex): Promise<Block>;
28
- }
29
- export const __browser: false;
30
- export type Block = import('./api').Block;
31
- export type BlockIndex = import('./api').BlockIndex;
32
- export type CarReaderIface = import('./api').CarReader;
33
- import { CarReader as BrowserCarReader } from './reader-browser.js';
34
- import fs from 'fs';
35
- //# sourceMappingURL=reader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["../../src/reader.js"],"names":[],"mappings":";AAYA;;;GAGG;AACH;IACE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mBARW,GAAG,QAAQ,CAAC,UAAU,GAAG,MAAM,cAG/B,UAAU,GAGR,QAAQ,KAAK,CAAC,CAiB1B;CACF;AAED,8BAA8B;oBAlDjB,OAAO,OAAO,EAAE,KAAK;yBACrB,OAAO,OAAO,EAAE,UAAU;6BAC1B,OAAO,OAAO,EAAE,SAAS;8CALQ,qBAAqB;eAFpD,IAAI"}
@@ -1,155 +0,0 @@
1
- /**
2
- * @typedef {import('./api').Block} Block
3
- * @typedef {import('./api').BlockWriter} BlockWriter
4
- * @typedef {import('./api').WriterChannel} WriterChannel
5
- * @typedef {import('./coding').CarEncoder} CarEncoder
6
- * @typedef {import('./coding').IteratorChannel<Uint8Array>} IteratorChannel
7
- */
8
- /**
9
- * Provides a writer interface for the creation of CAR files.
10
- *
11
- * Creation of a `CarWriter` involves the instatiation of an input / output pair
12
- * in the form of a `WriterChannel`, which is a
13
- * `{ writer:CarWriter, out:AsyncIterable<Uint8Array> }` pair. These two
14
- * components form what can be thought of as a stream-like interface. The
15
- * `writer` component (an instantiated `CarWriter`), has methods to
16
- * {@link CarWriter.put `put()`} new blocks and {@link CarWriter.put `close()`}
17
- * the writing operation (finalising the CAR archive). The `out` component is
18
- * an `AsyncIterable` that yields the bytes of the archive. This can be
19
- * redirected to a file or other sink. In Node.js, you can use the
20
- * [`Readable.from()`](https://nodejs.org/api/stream.html#stream_stream_readable_from_iterable_options)
21
- * API to convert this to a standard Node.js stream, or it can be directly fed
22
- * to a
23
- * [`stream.pipeline()`](https://nodejs.org/api/stream.html#stream_stream_pipeline_source_transforms_destination_callback).
24
- *
25
- * The channel will provide a form of backpressure. The `Promise` from a
26
- * `write()` won't resolve until the resulting data is drained from the `out`
27
- * iterable.
28
- *
29
- * It is also possible to ignore the `Promise` from `write()` calls and allow
30
- * the generated data to queue in memory. This should be avoided for large CAR
31
- * archives of course due to the memory costs and potential for memory overflow.
32
- *
33
- * Load this class with either
34
- * `import { CarWriter } from '@ipld/car/writer'`
35
- * (`const { CarWriter } = require('@ipld/car/writer')`). Or
36
- * `import { CarWriter } from '@ipld/car'`
37
- * (`const { CarWriter } = require('@ipld/car')`). The former will likely
38
- * result in smaller bundle sizes where this is important.
39
- *
40
- * @name CarWriter
41
- * @class
42
- * @implements {BlockWriter}
43
- */
44
- export class CarWriter implements BlockWriter {
45
- /**
46
- * Create a new CAR writer "channel" which consists of a
47
- * `{ writer:CarWriter, out:AsyncIterable<Uint8Array> }` pair.
48
- *
49
- * @async
50
- * @static
51
- * @memberof CarWriter
52
- * @param {CID[] | CID | void} roots
53
- * @returns {WriterChannel} The channel takes the form of
54
- * `{ writer:CarWriter, out:AsyncIterable<Uint8Array> }`.
55
- */
56
- static create(roots: CID[] | CID | void): WriterChannel;
57
- /**
58
- * Create a new CAR appender "channel" which consists of a
59
- * `{ writer:CarWriter, out:AsyncIterable<Uint8Array> }` pair.
60
- * This appender does not consider roots and does not produce a CAR header.
61
- * It is designed to append blocks to an _existing_ CAR archive. It is
62
- * expected that `out` will be concatenated onto the end of an existing
63
- * archive that already has a properly formatted header.
64
- *
65
- * @async
66
- * @static
67
- * @memberof CarWriter
68
- * @returns {WriterChannel} The channel takes the form of
69
- * `{ writer:CarWriter, out:AsyncIterable<Uint8Array> }`.
70
- */
71
- static createAppender(): WriterChannel;
72
- /**
73
- * Update the list of roots in the header of an existing CAR as represented
74
- * in a Uint8Array.
75
- *
76
- * This operation is an _overwrite_, the total length of the CAR will not be
77
- * modified. A rejection will occur if the new header will not be the same
78
- * length as the existing header, in which case the CAR will not be modified.
79
- * It is the responsibility of the user to ensure that the roots being
80
- * replaced encode as the same length as the new roots.
81
- *
82
- * The byte array passed in an argument will be modified and also returned
83
- * upon successful modification.
84
- *
85
- * @async
86
- * @static
87
- * @memberof CarWriter
88
- * @param {Uint8Array} bytes
89
- * @param {CID[]} roots - A new list of roots to replace the existing list in
90
- * the CAR header. The new header must take up the same number of bytes as the
91
- * existing header, so the roots should collectively be the same byte length
92
- * as the existing roots.
93
- * @returns {Promise<Uint8Array>}
94
- */
95
- static updateRootsInBytes(bytes: Uint8Array, roots: CID[]): Promise<Uint8Array>;
96
- /**
97
- * @param {CID[]} roots
98
- * @param {CarEncoder} encoder
99
- */
100
- constructor(roots: CID[], encoder: CarEncoder);
101
- _encoder: import("./coding").CarEncoder;
102
- /** @type {Promise<void>} */
103
- _mutex: Promise<void>;
104
- _ended: boolean;
105
- /**
106
- * Write a `Block` (a `{ cid:CID, bytes:Uint8Array }` pair) to the archive.
107
- *
108
- * @function
109
- * @memberof CarWriter
110
- * @instance
111
- * @async
112
- * @param {Block} block - A `{ cid:CID, bytes:Uint8Array }` pair.
113
- * @returns {Promise<void>} The returned promise will only resolve once the
114
- * bytes this block generates are written to the `out` iterable.
115
- */
116
- put(block: Block): Promise<void>;
117
- /**
118
- * Finalise the CAR archive and signal that the `out` iterable should end once
119
- * any remaining bytes are written.
120
- *
121
- * @function
122
- * @memberof CarWriter
123
- * @instance
124
- * @async
125
- * @returns {Promise<void>}
126
- */
127
- close(): Promise<void>;
128
- /**
129
- * Returns the version number of the CAR file being written
130
- *
131
- * @returns {number}
132
- */
133
- version(): number;
134
- }
135
- /**
136
- * @class
137
- * @implements {AsyncIterable<Uint8Array>}
138
- */
139
- export class CarWriterOut implements AsyncIterable<Uint8Array> {
140
- /**
141
- * @param {AsyncIterator<Uint8Array>} iterator
142
- */
143
- constructor(iterator: AsyncIterator<Uint8Array>);
144
- _iterator: AsyncIterator<Uint8Array, any, undefined>;
145
- _iterating: boolean | undefined;
146
- [Symbol.asyncIterator](): AsyncIterator<Uint8Array, any, undefined>;
147
- }
148
- export const __browser: true;
149
- export type Block = import('./api').Block;
150
- export type BlockWriter = import('./api').BlockWriter;
151
- export type WriterChannel = import('./api').WriterChannel;
152
- export type CarEncoder = import('./coding').CarEncoder;
153
- export type IteratorChannel = import('./coding').IteratorChannel<Uint8Array>;
154
- import { CID } from 'multiformats/cid';
155
- //# sourceMappingURL=writer-browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"writer-browser.d.ts","sourceRoot":"","sources":["../../src/writer-browser.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;IAkEE;;;;;;;;;;OAUG;IACH,qBAJW,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,GAChB,aAAa,CASzB;IAED;;;;;;;;;;;;;OAaG;IACH,yBAHa,aAAa,CASzB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,iCAPW,UAAU,SACV,GAAG,EAAE,GAIH,QAAQ,UAAU,CAAC,CAW/B;IA1ID;;;OAGG;IACH,mBAHW,GAAG,EAAE,WACL,UAAU,EAOpB;IAJC,wCAAuB;IACvB,4BAA4B;IAC5B,QADW,QAAQ,IAAI,CAAC,CACa;IACrC,gBAAmB;IAGrB;;;;;;;;;;OAUG;IACH,WAJW,KAAK,GACH,QAAQ,IAAI,CAAC,CAgBzB;IAED;;;;;;;;;OASG;IACH,SAFa,QAAQ,IAAI,CAAC,CASzB;IAED;;;;OAIG;IACH,WAFa,MAAM,CAIlB;CA4EF;AAED;;;GAGG;AACH,mDAF8B,UAAU;IAGtC;;OAEG;IACH,sBAFW,cAAc,UAAU,CAAC,EAInC;IADC,qDAAyB;IAOzB,gCAAsB;IAJxB,oEAMC;CACF;AAuCD,6BAA6B;oBAnPhB,OAAO,OAAO,EAAE,KAAK;0BACrB,OAAO,OAAO,EAAE,WAAW;4BAC3B,OAAO,OAAO,EAAE,aAAa;yBAC7B,OAAO,UAAU,EAAE,UAAU;8BAC7B,OAAO,UAAU,EAAE,eAAe,CAAC,UAAU,CAAC;oBAVvC,kBAAkB"}
@@ -1,45 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * @typedef {import('multiformats/cid').CID} CID
4
- * @typedef {import('./api').BlockWriter} BlockWriter
5
- */
6
- /**
7
- * @class
8
- * @implements {BlockWriter}
9
- */
10
- export class CarWriter extends BrowserCarWriter implements BlockWriter {
11
- /**
12
- * Update the list of roots in the header of an existing CAR file. The first
13
- * argument must be a file descriptor for CAR file that is open in read and
14
- * write mode (not append), e.g. `fs.open` or `fs.promises.open` with `'r+'`
15
- * mode.
16
- *
17
- * This operation is an _overwrite_, the total length of the CAR will not be
18
- * modified. A rejection will occur if the new header will not be the same
19
- * length as the existing header, in which case the CAR will not be modified.
20
- * It is the responsibility of the user to ensure that the roots being
21
- * replaced encode as the same length as the new roots.
22
- *
23
- * This function is **only available in Node.js** and not a browser
24
- * environment.
25
- *
26
- * @async
27
- * @static
28
- * @memberof CarWriter
29
- * @param {fs.promises.FileHandle | number} fd - A file descriptor from the
30
- * Node.js `fs` module. Either an integer, from `fs.open()` or a `FileHandle`
31
- * from `fs.promises.open()`.
32
- * @param {CID[]} roots - A new list of roots to replace the existing list in
33
- * the CAR header. The new header must take up the same number of bytes as the
34
- * existing header, so the roots should collectively be the same byte length
35
- * as the existing roots.
36
- * @returns {Promise<void>}
37
- */
38
- static updateRootsInFile(fd: fs.promises.FileHandle | number, roots: CID[]): Promise<void>;
39
- }
40
- export const __browser: false;
41
- export type CID = import('multiformats/cid').CID;
42
- export type BlockWriter = import('./api').BlockWriter;
43
- import { CarWriter as BrowserCarWriter } from './writer-browser.js';
44
- import fs from 'fs';
45
- //# sourceMappingURL=writer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/writer.js"],"names":[],"mappings":";AASA;;;GAGG;AAEH;;;GAGG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,6BATW,GAAG,QAAQ,CAAC,UAAU,GAAG,MAAM,SAG/B,GAAG,EAAE,GAIH,QAAQ,IAAI,CAAC,CAoCzB;CACF;AAED,8BAA8B;kBAzEjB,OAAO,kBAAkB,EAAE,GAAG;0BAC9B,OAAO,OAAO,EAAE,WAAW;8CAPM,qBAAqB;eAJpD,IAAI"}
@@ -1,17 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/cborg@4.2.7/node_modules/cborg/lib/node_modules:/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/cborg@4.2.7/node_modules/cborg/node_modules:/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/cborg@4.2.7/node_modules:/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/cborg@4.2.7/node_modules/cborg/lib/node_modules:/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/cborg@4.2.7/node_modules/cborg/node_modules:/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/cborg@4.2.7/node_modules:/home/runner/work/vendor/vendor/dist/node_modules/.pnpm/node_modules:$NODE_PATH"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../../cborg@4.2.7/node_modules/cborg/lib/bin.js" "$@"
15
- else
16
- exec node "$basedir/../../../../../../cborg@4.2.7/node_modules/cborg/lib/bin.js" "$@"
17
- fi
@@ -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
- }