@fireproof/vendor 0.0.0-smoke → 1.0.1

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 (513) hide show
  1. package/package.json +155 -8
  2. package/src/@ipld/car/{car/README.md → README.md} +229 -175
  3. package/src/@ipld/car/dist/src/reader.d.ts.map +1 -0
  4. package/src/@ipld/car/{car/src → src}/reader.js +19 -2
  5. package/src/cborg/cborg/{lib/bin.js → bin.js} +2 -2
  6. package/src/cborg/cborg/common.js +28 -0
  7. package/{patched/cborg/lib → src/cborg/cborg}/decode.js +24 -22
  8. package/src/cborg/cborg/{lib/diagnostic.js → diagnostic.js} +6 -4
  9. package/{patched/cborg/lib → src/cborg/cborg}/diagnostic_test.js +1 -1
  10. package/src/cborg/cborg/{lib/encode.js → encode.js} +23 -21
  11. package/{patched/cborg/cborg.js → src/cborg/cborg/index.js} +12 -10
  12. package/src/cborg/cborg/{lib/length.js → length.js} +3 -2
  13. package/{patched → src}/cborg/interface.ts +7 -4
  14. package/src/cborg/{cborg/lib/json → json}/decode.js +25 -25
  15. package/src/cborg/{cborg/lib/json → json}/encode.js +19 -16
  16. package/src/cborg/{cborg/package.json → package.json} +15 -11
  17. package/src/cborg/{cborg/taglib.js → taglib.js} +3 -1
  18. package/src/cborg/{cborg/test → test}/common.js +1 -1
  19. package/{patched → src}/cborg/test/noop-bin-test.js +1 -1
  20. package/{patched → src}/cborg/test/test-0uint.js +2 -2
  21. package/src/cborg/{cborg/test → test}/test-1negint.js +2 -2
  22. package/src/cborg/{cborg/test → test}/test-2bytes.js +2 -2
  23. package/src/cborg/{cborg/test → test}/test-3string.js +2 -2
  24. package/{patched → src}/cborg/test/test-4array.js +2 -2
  25. package/{patched → src}/cborg/test/test-5map.js +2 -2
  26. package/src/cborg/{cborg/test → test}/test-6tag.js +2 -3
  27. package/{patched → src}/cborg/test/test-7float.js +2 -2
  28. package/{patched → src}/cborg/test/test-bl.js +1 -1
  29. package/src/cborg/{cborg/test → test}/test-cbor-vectors.js +2 -2
  30. package/src/cborg/{cborg/test → test}/test-decode-errors.js +2 -2
  31. package/{patched → src}/cborg/test/test-fuzz.js +1 -1
  32. package/src/cborg/{cborg/test → test}/test-json.js +25 -25
  33. package/{patched → src}/cborg/test/test-length.js +3 -3
  34. package/src/cborg/{cborg/test → test}/test-partial.js +2 -2
  35. package/src/cborg/{cborg/tsconfig.json → tsconfig.json} +5 -2
  36. package/{patched/cborg/types/lib → src/cborg/types/cborg}/decode.d.ts +5 -3
  37. package/src/cborg/types/cborg/decode.d.ts.map +1 -0
  38. package/{patched/cborg/types/lib → src/cborg/types/cborg}/encode.d.ts +4 -3
  39. package/src/cborg/types/cborg/encode.d.ts.map +1 -0
  40. package/src/cborg/types/cborg/index.d.ts +26 -0
  41. package/src/cborg/types/cborg/index.d.ts.map +1 -0
  42. package/src/cborg/types/cborg/is.d.ts.map +1 -0
  43. package/src/cborg/{cborg/types → types}/interface.d.ts +6 -4
  44. package/src/cborg/types/interface.d.ts.map +1 -0
  45. package/{patched/cborg/types/lib → src/cborg/types}/json/decode.d.ts +7 -7
  46. package/src/cborg/types/json/decode.d.ts.map +1 -0
  47. package/src/cborg/types/json/encode.d.ts +11 -0
  48. package/src/cborg/types/json/encode.d.ts.map +1 -0
  49. package/src/cborg/types/json/json.d.ts.map +1 -0
  50. package/{patched → src}/cborg/types/taglib.d.ts +1 -1
  51. package/{patched → src}/cborg/types/taglib.d.ts.map +1 -1
  52. package/src/cborg/types/tsconfig.tsbuildinfo +1 -0
  53. package/{patched/cborg/types/lib → src/cborg/types/utils}/0uint.d.ts +6 -4
  54. package/src/cborg/types/utils/0uint.d.ts.map +1 -0
  55. package/{patched/cborg/types/lib → src/cborg/types/utils}/1negint.d.ts +4 -3
  56. package/src/cborg/types/utils/1negint.d.ts.map +1 -0
  57. package/src/cborg/{cborg/types/lib → types/utils}/2bytes.d.ts +5 -4
  58. package/src/cborg/types/utils/2bytes.d.ts.map +1 -0
  59. package/src/cborg/{cborg/types/lib → types/utils}/3string.d.ts +1 -1
  60. package/src/cborg/types/utils/3string.d.ts.map +1 -0
  61. package/{patched/cborg/types/lib → src/cborg/types/utils}/4array.d.ts +3 -2
  62. package/src/cborg/types/utils/4array.d.ts.map +1 -0
  63. package/src/cborg/{cborg/types/lib → types/utils}/5map.d.ts +3 -2
  64. package/src/cborg/types/utils/5map.d.ts.map +1 -0
  65. package/{patched/cborg/types/lib → src/cborg/types/utils}/6tag.d.ts +4 -3
  66. package/src/cborg/types/utils/6tag.d.ts.map +1 -0
  67. package/src/cborg/{cborg/types/lib → types/utils}/7float.d.ts +2 -2
  68. package/src/cborg/types/utils/7float.d.ts.map +1 -0
  69. package/src/cborg/types/utils/bl.d.ts.map +1 -0
  70. package/src/cborg/types/utils/byte-utils.d.ts.map +1 -0
  71. package/src/cborg/types/utils/common.d.ts +8 -0
  72. package/src/cborg/types/utils/common.d.ts.map +1 -0
  73. package/src/cborg/types/utils/index.d.ts +13 -0
  74. package/src/cborg/types/utils/index.d.ts.map +1 -0
  75. package/src/cborg/types/utils/jump.d.ts +16 -0
  76. package/src/cborg/types/utils/jump.d.ts.map +1 -0
  77. package/src/cborg/types/utils/token.d.ts.map +1 -0
  78. package/src/cborg/{cborg/lib → utils}/0uint.js +16 -14
  79. package/src/cborg/{cborg/lib → utils}/1negint.js +5 -5
  80. package/src/cborg/{cborg/lib → utils}/2bytes.js +16 -14
  81. package/src/cborg/{cborg/lib → utils}/3string.js +4 -4
  82. package/src/cborg/{cborg/lib → utils}/4array.js +7 -6
  83. package/{patched/cborg/lib → src/cborg/utils}/5map.js +6 -6
  84. package/{patched/cborg/lib → src/cborg/utils}/6tag.js +4 -3
  85. package/src/cborg/{cborg/lib → utils}/7float.js +23 -21
  86. package/{patched/cborg/lib → src/cborg/utils}/bl.js +1 -1
  87. package/src/cborg/utils/common.js +11 -0
  88. package/src/cborg/utils/index.js +12 -0
  89. package/src/cborg/utils/jump.js +222 -0
  90. package/patched/@ipld/dag-json/.github/dependabot.yml +0 -11
  91. package/patched/@ipld/dag-json/.github/workflows/js-test-and-release.yml +0 -28
  92. package/patched/@ipld/dag-json/CHANGELOG.md +0 -202
  93. package/patched/@ipld/dag-json/LICENSE-APACHE +0 -5
  94. package/patched/@ipld/dag-json/LICENSE-MIT +0 -19
  95. package/patched/@ipld/dag-json/ipld-dag-json-10.2.3.tgz +0 -0
  96. package/patched/@ipld/dag-json/src/index.js +0 -291
  97. package/patched/@ipld/dag-json/test/test-basics.spec.js +0 -290
  98. package/patched/@ipld/dag-json/test/ts-use/package.json +0 -11
  99. package/patched/@ipld/dag-json/test/ts-use/src/main.ts +0 -54
  100. package/patched/@ipld/dag-json/test/ts-use/tsconfig.json +0 -9
  101. package/patched/@ipld/dag-json/tsconfig.json +0 -14
  102. package/patched/cborg/cborg-4.2.7.tgz +0 -0
  103. package/patched/cborg/example-json.js +0 -6
  104. package/patched/cborg/example.js +0 -5
  105. package/patched/cborg/lib/0uint.js +0 -227
  106. package/patched/cborg/lib/1negint.js +0 -111
  107. package/patched/cborg/lib/2bytes.js +0 -133
  108. package/patched/cborg/lib/3string.js +0 -90
  109. package/patched/cborg/lib/4array.js +0 -113
  110. package/patched/cborg/lib/7float.js +0 -308
  111. package/patched/cborg/lib/bin.js +0 -189
  112. package/patched/cborg/lib/common.js +0 -27
  113. package/patched/cborg/lib/diagnostic.js +0 -156
  114. package/patched/cborg/lib/encode.js +0 -464
  115. package/patched/cborg/lib/json/decode.js +0 -462
  116. package/patched/cborg/lib/json/encode.js +0 -299
  117. package/patched/cborg/lib/jump.js +0 -209
  118. package/patched/cborg/lib/length.js +0 -61
  119. package/patched/cborg/package.json +0 -169
  120. package/patched/cborg/pnpm-lock.yaml +0 -6096
  121. package/patched/cborg/taglib.js +0 -73
  122. package/patched/cborg/test/common.js +0 -18
  123. package/patched/cborg/test/test-1negint.js +0 -96
  124. package/patched/cborg/test/test-2bytes.js +0 -198
  125. package/patched/cborg/test/test-3string.js +0 -136
  126. package/patched/cborg/test/test-6tag.js +0 -85
  127. package/patched/cborg/test/test-cbor-vectors.js +0 -107
  128. package/patched/cborg/test/test-decode-errors.js +0 -65
  129. package/patched/cborg/test/test-json.js +0 -219
  130. package/patched/cborg/test/test-partial.js +0 -111
  131. package/patched/cborg/tsconfig.json +0 -45
  132. package/patched/cborg/types/cborg.d.ts +0 -28
  133. package/patched/cborg/types/cborg.d.ts.map +0 -1
  134. package/patched/cborg/types/interface.d.ts +0 -47
  135. package/patched/cborg/types/interface.d.ts.map +0 -1
  136. package/patched/cborg/types/lib/0uint.d.ts.map +0 -1
  137. package/patched/cborg/types/lib/1negint.d.ts.map +0 -1
  138. package/patched/cborg/types/lib/2bytes.d.ts +0 -68
  139. package/patched/cborg/types/lib/2bytes.d.ts.map +0 -1
  140. package/patched/cborg/types/lib/3string.d.ts +0 -46
  141. package/patched/cborg/types/lib/3string.d.ts.map +0 -1
  142. package/patched/cborg/types/lib/4array.d.ts.map +0 -1
  143. package/patched/cborg/types/lib/5map.d.ts +0 -65
  144. package/patched/cborg/types/lib/5map.d.ts.map +0 -1
  145. package/patched/cborg/types/lib/6tag.d.ts.map +0 -1
  146. package/patched/cborg/types/lib/7float.d.ts +0 -60
  147. package/patched/cborg/types/lib/7float.d.ts.map +0 -1
  148. package/patched/cborg/types/lib/bin.d.ts +0 -4
  149. package/patched/cborg/types/lib/bin.d.ts.map +0 -1
  150. package/patched/cborg/types/lib/bl.d.ts.map +0 -1
  151. package/patched/cborg/types/lib/byte-utils.d.ts.map +0 -1
  152. package/patched/cborg/types/lib/common.d.ts +0 -10
  153. package/patched/cborg/types/lib/common.d.ts.map +0 -1
  154. package/patched/cborg/types/lib/decode.d.ts.map +0 -1
  155. package/patched/cborg/types/lib/diagnostic.d.ts +0 -12
  156. package/patched/cborg/types/lib/diagnostic.d.ts.map +0 -1
  157. package/patched/cborg/types/lib/diagnostic_test.d.ts +0 -2
  158. package/patched/cborg/types/lib/diagnostic_test.d.ts.map +0 -1
  159. package/patched/cborg/types/lib/encode.d.ts.map +0 -1
  160. package/patched/cborg/types/lib/is.d.ts.map +0 -1
  161. package/patched/cborg/types/lib/json/decode.d.ts.map +0 -1
  162. package/patched/cborg/types/lib/json/encode.d.ts +0 -11
  163. package/patched/cborg/types/lib/json/encode.d.ts.map +0 -1
  164. package/patched/cborg/types/lib/json/forward-cborg.d.ts +0 -6
  165. package/patched/cborg/types/lib/json/forward-cborg.d.ts.map +0 -1
  166. package/patched/cborg/types/lib/json/json.d.ts.map +0 -1
  167. package/patched/cborg/types/lib/jump.d.ts +0 -12
  168. package/patched/cborg/types/lib/jump.d.ts.map +0 -1
  169. package/patched/cborg/types/lib/length.d.ts +0 -27
  170. package/patched/cborg/types/lib/length.d.ts.map +0 -1
  171. package/patched/cborg/types/lib/token.d.ts.map +0 -1
  172. package/patched/cborg/types/tsconfig.tsbuildinfo +0 -1
  173. package/src/@ipld/car/car/dist/src/reader.d.ts.map +0 -1
  174. package/src/@ipld/car/car/node_modules/.bin/cborg +0 -17
  175. package/src/@ipld/dag-cbor/dag-cbor/node_modules/.bin/cborg +0 -17
  176. package/src/@ipld/dag-json/dag-json/README.md +0 -58
  177. package/src/@ipld/dag-json/dag-json/node_modules/.bin/cborg +0 -17
  178. package/src/@ipld/dag-json/dag-json/package.json +0 -173
  179. package/src/@web3-storage/pail/pail/node_modules/.bin/pail +0 -17
  180. package/src/cborg/cborg/.github/dependabot.yml +0 -16
  181. package/src/cborg/cborg/.github/workflows/test-and-release.yml +0 -52
  182. package/src/cborg/cborg/CHANGELOG.md +0 -513
  183. package/src/cborg/cborg/LICENSE +0 -13
  184. package/src/cborg/cborg/README.md +0 -515
  185. package/src/cborg/cborg/bench/bench.js +0 -117
  186. package/src/cborg/cborg/bench/json.js +0 -124
  187. package/src/cborg/cborg/bench/package.json +0 -8
  188. package/src/cborg/cborg/cborg.js +0 -31
  189. package/src/cborg/cborg/example-bytestrings.js +0 -180
  190. package/src/cborg/cborg/interface.ts +0 -56
  191. package/src/cborg/cborg/lib/5map.js +0 -113
  192. package/src/cborg/cborg/lib/6tag.js +0 -80
  193. package/src/cborg/cborg/lib/bl.js +0 -124
  194. package/src/cborg/cborg/lib/byte-utils.js +0 -417
  195. package/src/cborg/cborg/lib/common.js +0 -27
  196. package/src/cborg/cborg/lib/decode.js +0 -209
  197. package/src/cborg/cborg/lib/diagnostic_test.js +0 -117
  198. package/src/cborg/cborg/lib/is.js +0 -106
  199. package/src/cborg/cborg/lib/json/json.js +0 -4
  200. package/src/cborg/cborg/lib/jump.js +0 -209
  201. package/src/cborg/cborg/lib/token.js +0 -76
  202. package/src/cborg/cborg/node_modules/.bin/cborg +0 -17
  203. package/src/cborg/cborg/test/appendix_a.js +0 -647
  204. package/src/cborg/cborg/test/node-test-bin.js +0 -402
  205. package/src/cborg/cborg/test/noop-bin-test.js +0 -3
  206. package/src/cborg/cborg/test/test-0uint.js +0 -103
  207. package/src/cborg/cborg/test/test-4array.js +0 -93
  208. package/src/cborg/cborg/test/test-5map.js +0 -284
  209. package/src/cborg/cborg/test/test-7float.js +0 -131
  210. package/src/cborg/cborg/test/test-bl.js +0 -37
  211. package/src/cborg/cborg/test/test-fuzz.js +0 -42
  212. package/src/cborg/cborg/test/test-length.js +0 -65
  213. package/src/cborg/cborg/types/cborg.d.ts +0 -28
  214. package/src/cborg/cborg/types/cborg.d.ts.map +0 -1
  215. package/src/cborg/cborg/types/example.d.ts +0 -2
  216. package/src/cborg/cborg/types/example.d.ts.map +0 -1
  217. package/src/cborg/cborg/types/interface.d.ts.map +0 -1
  218. package/src/cborg/cborg/types/lib/0uint.d.ts +0 -100
  219. package/src/cborg/cborg/types/lib/0uint.d.ts.map +0 -1
  220. package/src/cborg/cborg/types/lib/1negint.d.ts +0 -58
  221. package/src/cborg/cborg/types/lib/1negint.d.ts.map +0 -1
  222. package/src/cborg/cborg/types/lib/2bytes.d.ts.map +0 -1
  223. package/src/cborg/cborg/types/lib/3string.d.ts.map +0 -1
  224. package/src/cborg/cborg/types/lib/4array.d.ts +0 -65
  225. package/src/cborg/cborg/types/lib/4array.d.ts.map +0 -1
  226. package/src/cborg/cborg/types/lib/5map.d.ts.map +0 -1
  227. package/src/cborg/cborg/types/lib/6tag.d.ts +0 -61
  228. package/src/cborg/cborg/types/lib/6tag.d.ts.map +0 -1
  229. package/src/cborg/cborg/types/lib/7float.d.ts.map +0 -1
  230. package/src/cborg/cborg/types/lib/bin.d.ts +0 -4
  231. package/src/cborg/cborg/types/lib/bin.d.ts.map +0 -1
  232. package/src/cborg/cborg/types/lib/bl.d.ts +0 -26
  233. package/src/cborg/cborg/types/lib/bl.d.ts.map +0 -1
  234. package/src/cborg/cborg/types/lib/byte-utils.d.ts +0 -53
  235. package/src/cborg/cborg/types/lib/byte-utils.d.ts.map +0 -1
  236. package/src/cborg/cborg/types/lib/common.d.ts +0 -10
  237. package/src/cborg/cborg/types/lib/common.d.ts.map +0 -1
  238. package/src/cborg/cborg/types/lib/decode.d.ts +0 -41
  239. package/src/cborg/cborg/types/lib/decode.d.ts.map +0 -1
  240. package/src/cborg/cborg/types/lib/diagnostic.d.ts +0 -12
  241. package/src/cborg/cborg/types/lib/diagnostic.d.ts.map +0 -1
  242. package/src/cborg/cborg/types/lib/diagnostic_test.d.ts +0 -2
  243. package/src/cborg/cborg/types/lib/diagnostic_test.d.ts.map +0 -1
  244. package/src/cborg/cborg/types/lib/encode.d.ts +0 -50
  245. package/src/cborg/cborg/types/lib/encode.d.ts.map +0 -1
  246. package/src/cborg/cborg/types/lib/is.d.ts +0 -6
  247. package/src/cborg/cborg/types/lib/is.d.ts.map +0 -1
  248. package/src/cborg/cborg/types/lib/json/decode.d.ts +0 -67
  249. package/src/cborg/cborg/types/lib/json/decode.d.ts.map +0 -1
  250. package/src/cborg/cborg/types/lib/json/encode.d.ts +0 -11
  251. package/src/cborg/cborg/types/lib/json/encode.d.ts.map +0 -1
  252. package/src/cborg/cborg/types/lib/json/forward-cborg.d.ts +0 -6
  253. package/src/cborg/cborg/types/lib/json/forward-cborg.d.ts.map +0 -1
  254. package/src/cborg/cborg/types/lib/json/json.d.ts +0 -6
  255. package/src/cborg/cborg/types/lib/json/json.d.ts.map +0 -1
  256. package/src/cborg/cborg/types/lib/jump.d.ts +0 -12
  257. package/src/cborg/cborg/types/lib/jump.d.ts.map +0 -1
  258. package/src/cborg/cborg/types/lib/length.d.ts +0 -27
  259. package/src/cborg/cborg/types/lib/length.d.ts.map +0 -1
  260. package/src/cborg/cborg/types/lib/token.d.ts +0 -59
  261. package/src/cborg/cborg/types/lib/token.d.ts.map +0 -1
  262. package/src/cborg/cborg/types/taglib.d.ts +0 -18
  263. package/src/cborg/cborg/types/taglib.d.ts.map +0 -1
  264. package/src/cborg/cborg/types/tsconfig.tsbuildinfo +0 -1
  265. package/src/ipfs-unixfs-exporter/ipfs-unixfs-exporter/LICENSE +0 -4
  266. /package/{patched/@ipld/dag-json → src/@ipld/car}/LICENSE +0 -0
  267. /package/src/@ipld/car/{car/dist → dist}/index.min.js +0 -0
  268. /package/src/@ipld/car/{car/dist → dist}/src/api.d.ts +0 -0
  269. /package/src/@ipld/car/{car/dist → dist}/src/api.d.ts.map +0 -0
  270. /package/src/@ipld/car/{car/dist → dist}/src/buffer-decoder.d.ts +0 -0
  271. /package/src/@ipld/car/{car/dist → dist}/src/buffer-decoder.d.ts.map +0 -0
  272. /package/src/@ipld/car/{car/dist → dist}/src/buffer-reader-browser.d.ts +0 -0
  273. /package/src/@ipld/car/{car/dist → dist}/src/buffer-reader-browser.d.ts.map +0 -0
  274. /package/src/@ipld/car/{car/dist → dist}/src/buffer-reader.d.ts +0 -0
  275. /package/src/@ipld/car/{car/dist → dist}/src/buffer-reader.d.ts.map +0 -0
  276. /package/src/@ipld/car/{car/dist → dist}/src/buffer-writer.d.ts +0 -0
  277. /package/src/@ipld/car/{car/dist → dist}/src/buffer-writer.d.ts.map +0 -0
  278. /package/src/@ipld/car/{car/dist → dist}/src/coding.d.ts +0 -0
  279. /package/src/@ipld/car/{car/dist → dist}/src/coding.d.ts.map +0 -0
  280. /package/src/@ipld/car/{car/dist → dist}/src/decoder-common.d.ts +0 -0
  281. /package/src/@ipld/car/{car/dist → dist}/src/decoder-common.d.ts.map +0 -0
  282. /package/src/@ipld/car/{car/dist → dist}/src/decoder.d.ts +0 -0
  283. /package/src/@ipld/car/{car/dist → dist}/src/decoder.d.ts.map +0 -0
  284. /package/src/@ipld/car/{car/dist → dist}/src/encoder.d.ts +0 -0
  285. /package/src/@ipld/car/{car/dist → dist}/src/encoder.d.ts.map +0 -0
  286. /package/src/@ipld/car/{car/dist → dist}/src/header-validator.d.ts +0 -0
  287. /package/src/@ipld/car/{car/dist → dist}/src/header-validator.d.ts.map +0 -0
  288. /package/src/@ipld/car/{car/dist → dist}/src/index-browser.d.ts +0 -0
  289. /package/src/@ipld/car/{car/dist → dist}/src/index-browser.d.ts.map +0 -0
  290. /package/src/@ipld/car/{car/dist → dist}/src/index.d.ts +0 -0
  291. /package/src/@ipld/car/{car/dist → dist}/src/index.d.ts.map +0 -0
  292. /package/src/@ipld/car/{car/dist → dist}/src/indexed-reader-browser.d.ts +0 -0
  293. /package/src/@ipld/car/{car/dist → dist}/src/indexed-reader-browser.d.ts.map +0 -0
  294. /package/src/@ipld/car/{car/dist → dist}/src/indexed-reader.d.ts +0 -0
  295. /package/src/@ipld/car/{car/dist → dist}/src/indexed-reader.d.ts.map +0 -0
  296. /package/src/@ipld/car/{car/dist → dist}/src/indexer.d.ts +0 -0
  297. /package/src/@ipld/car/{car/dist → dist}/src/indexer.d.ts.map +0 -0
  298. /package/src/@ipld/car/{car/dist → dist}/src/iterator-channel.d.ts +0 -0
  299. /package/src/@ipld/car/{car/dist → dist}/src/iterator-channel.d.ts.map +0 -0
  300. /package/src/@ipld/car/{car/dist → dist}/src/iterator.d.ts +0 -0
  301. /package/src/@ipld/car/{car/dist → dist}/src/iterator.d.ts.map +0 -0
  302. /package/src/@ipld/car/{car/dist → dist}/src/reader-browser.d.ts +0 -0
  303. /package/src/@ipld/car/{car/dist → dist}/src/reader-browser.d.ts.map +0 -0
  304. /package/src/@ipld/car/{car/dist → dist}/src/reader.d.ts +0 -0
  305. /package/src/@ipld/car/{car/dist → dist}/src/writer-browser.d.ts +0 -0
  306. /package/src/@ipld/car/{car/dist → dist}/src/writer-browser.d.ts.map +0 -0
  307. /package/src/@ipld/car/{car/dist → dist}/src/writer.d.ts +0 -0
  308. /package/src/@ipld/car/{car/dist → dist}/src/writer.d.ts.map +0 -0
  309. /package/src/@ipld/car/{car/package.json → package.json} +0 -0
  310. /package/src/@ipld/car/{car/src → src}/api.ts +0 -0
  311. /package/src/@ipld/car/{car/src → src}/buffer-decoder.js +0 -0
  312. /package/src/@ipld/car/{car/src → src}/buffer-reader-browser.js +0 -0
  313. /package/src/@ipld/car/{car/src → src}/buffer-reader.js +0 -0
  314. /package/src/@ipld/car/{car/src → src}/buffer-writer.js +0 -0
  315. /package/src/@ipld/car/{car/src → src}/coding.ts +0 -0
  316. /package/src/@ipld/car/{car/src → src}/decoder-common.js +0 -0
  317. /package/src/@ipld/car/{car/src → src}/decoder.js +0 -0
  318. /package/src/@ipld/car/{car/src → src}/encoder.js +0 -0
  319. /package/src/@ipld/car/{car/src → src}/header-validator.js +0 -0
  320. /package/src/@ipld/car/{car/src → src}/header.ipldsch +0 -0
  321. /package/src/@ipld/car/{car/src → src}/index-browser.js +0 -0
  322. /package/src/@ipld/car/{car/src → src}/index.js +0 -0
  323. /package/src/@ipld/car/{car/src → src}/indexed-reader-browser.js +0 -0
  324. /package/src/@ipld/car/{car/src → src}/indexed-reader.js +0 -0
  325. /package/src/@ipld/car/{car/src → src}/indexer.js +0 -0
  326. /package/src/@ipld/car/{car/src → src}/iterator-channel.js +0 -0
  327. /package/src/@ipld/car/{car/src → src}/iterator.js +0 -0
  328. /package/src/@ipld/car/{car/src → src}/reader-browser.js +0 -0
  329. /package/src/@ipld/car/{car/src → src}/writer-browser.js +0 -0
  330. /package/src/@ipld/car/{car/src → src}/writer.js +0 -0
  331. /package/src/@ipld/{car/car → dag-cbor}/LICENSE +0 -0
  332. /package/src/@ipld/dag-cbor/{dag-cbor/README.md → README.md} +0 -0
  333. /package/src/@ipld/dag-cbor/{dag-cbor/dist → dist}/index.min.js +0 -0
  334. /package/src/@ipld/dag-cbor/{dag-cbor/dist → dist}/src/index.d.ts +0 -0
  335. /package/src/@ipld/dag-cbor/{dag-cbor/dist → dist}/src/index.d.ts.map +0 -0
  336. /package/src/@ipld/dag-cbor/{dag-cbor/package.json → package.json} +0 -0
  337. /package/src/@ipld/dag-cbor/{dag-cbor/src → src}/index.js +0 -0
  338. /package/src/@ipld/{dag-cbor/dag-cbor → dag-json}/LICENSE +0 -0
  339. /package/{patched → src}/@ipld/dag-json/README.md +0 -0
  340. /package/src/@ipld/dag-json/{dag-json/dist → dist}/index.min.js +0 -0
  341. /package/src/@ipld/dag-json/{dag-json/dist → dist}/src/index.d.ts +0 -0
  342. /package/src/@ipld/dag-json/{dag-json/dist → dist}/src/index.d.ts.map +0 -0
  343. /package/{patched → src}/@ipld/dag-json/package.json +0 -0
  344. /package/src/@ipld/dag-json/{dag-json/src → src}/index.js +0 -0
  345. /package/src/@web3-storage/pail/{pail/LICENSE.md → LICENSE.md} +0 -0
  346. /package/src/@web3-storage/pail/{pail/README.md → README.md} +0 -0
  347. /package/src/@web3-storage/pail/{pail/cli.js → cli.js} +0 -0
  348. /package/src/@web3-storage/pail/{pail/dist → dist}/src/api.d.ts +0 -0
  349. /package/src/@web3-storage/pail/{pail/dist → dist}/src/api.d.ts.map +0 -0
  350. /package/src/@web3-storage/pail/{pail/dist → dist}/src/batch/api.d.ts +0 -0
  351. /package/src/@web3-storage/pail/{pail/dist → dist}/src/batch/api.d.ts.map +0 -0
  352. /package/src/@web3-storage/pail/{pail/dist → dist}/src/batch/index.d.ts +0 -0
  353. /package/src/@web3-storage/pail/{pail/dist → dist}/src/batch/index.d.ts.map +0 -0
  354. /package/src/@web3-storage/pail/{pail/dist → dist}/src/batch/shard.d.ts +0 -0
  355. /package/src/@web3-storage/pail/{pail/dist → dist}/src/batch/shard.d.ts.map +0 -0
  356. /package/src/@web3-storage/pail/{pail/dist → dist}/src/block.d.ts +0 -0
  357. /package/src/@web3-storage/pail/{pail/dist → dist}/src/block.d.ts.map +0 -0
  358. /package/src/@web3-storage/pail/{pail/dist → dist}/src/clock/api.d.ts +0 -0
  359. /package/src/@web3-storage/pail/{pail/dist → dist}/src/clock/api.d.ts.map +0 -0
  360. /package/src/@web3-storage/pail/{pail/dist → dist}/src/clock/index.d.ts +0 -0
  361. /package/src/@web3-storage/pail/{pail/dist → dist}/src/clock/index.d.ts.map +0 -0
  362. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/api.d.ts +0 -0
  363. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/api.d.ts.map +0 -0
  364. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/batch/api.d.ts +0 -0
  365. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/batch/api.d.ts.map +0 -0
  366. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/batch/index.d.ts +0 -0
  367. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/batch/index.d.ts.map +0 -0
  368. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/index.d.ts +0 -0
  369. /package/src/@web3-storage/pail/{pail/dist → dist}/src/crdt/index.d.ts.map +0 -0
  370. /package/src/@web3-storage/pail/{pail/dist → dist}/src/diff.d.ts +0 -0
  371. /package/src/@web3-storage/pail/{pail/dist → dist}/src/diff.d.ts.map +0 -0
  372. /package/src/@web3-storage/pail/{pail/dist → dist}/src/index.d.ts +0 -0
  373. /package/src/@web3-storage/pail/{pail/dist → dist}/src/index.d.ts.map +0 -0
  374. /package/src/@web3-storage/pail/{pail/dist → dist}/src/merge.d.ts +0 -0
  375. /package/src/@web3-storage/pail/{pail/dist → dist}/src/merge.d.ts.map +0 -0
  376. /package/src/@web3-storage/pail/{pail/dist → dist}/src/shard.d.ts +0 -0
  377. /package/src/@web3-storage/pail/{pail/dist → dist}/src/shard.d.ts.map +0 -0
  378. /package/src/@web3-storage/pail/{pail/dist → dist}/tsconfig.tsbuildinfo +0 -0
  379. /package/src/@web3-storage/pail/{pail/package.json → package.json} +0 -0
  380. /package/src/@web3-storage/pail/{pail/src → src}/api.js +0 -0
  381. /package/src/@web3-storage/pail/{pail/src → src}/api.ts +0 -0
  382. /package/src/@web3-storage/pail/{pail/src → src}/batch/api.js +0 -0
  383. /package/src/@web3-storage/pail/{pail/src → src}/batch/api.ts +0 -0
  384. /package/src/@web3-storage/pail/{pail/src → src}/batch/index.js +0 -0
  385. /package/src/@web3-storage/pail/{pail/src → src}/batch/shard.js +0 -0
  386. /package/src/@web3-storage/pail/{pail/src → src}/block.js +0 -0
  387. /package/src/@web3-storage/pail/{pail/src → src}/clock/api.js +0 -0
  388. /package/src/@web3-storage/pail/{pail/src → src}/clock/api.ts +0 -0
  389. /package/src/@web3-storage/pail/{pail/src → src}/clock/index.js +0 -0
  390. /package/src/@web3-storage/pail/{pail/src → src}/crdt/api.js +0 -0
  391. /package/src/@web3-storage/pail/{pail/src → src}/crdt/api.ts +0 -0
  392. /package/src/@web3-storage/pail/{pail/src → src}/crdt/batch/api.js +0 -0
  393. /package/src/@web3-storage/pail/{pail/src → src}/crdt/batch/api.ts +0 -0
  394. /package/src/@web3-storage/pail/{pail/src → src}/crdt/batch/index.js +0 -0
  395. /package/src/@web3-storage/pail/{pail/src → src}/crdt/index.js +0 -0
  396. /package/src/@web3-storage/pail/{pail/src → src}/diff.js +0 -0
  397. /package/src/@web3-storage/pail/{pail/src → src}/index.js +0 -0
  398. /package/src/@web3-storage/pail/{pail/src → src}/merge.js +0 -0
  399. /package/src/@web3-storage/pail/{pail/src → src}/shard.js +0 -0
  400. /package/{patched → src}/cborg/.github/dependabot.yml +0 -0
  401. /package/{patched → src}/cborg/.github/workflows/test-and-release.yml +0 -0
  402. /package/{patched → src}/cborg/CHANGELOG.md +0 -0
  403. /package/{patched → src}/cborg/LICENSE +0 -0
  404. /package/{patched → src}/cborg/README.md +0 -0
  405. /package/{patched → src}/cborg/bench/bench.js +0 -0
  406. /package/{patched → src}/cborg/bench/json.js +0 -0
  407. /package/{patched → src}/cborg/bench/package.json +0 -0
  408. /package/{patched/cborg/lib → src/cborg/cborg}/is.js +0 -0
  409. /package/{patched → src}/cborg/example-bytestrings.js +0 -0
  410. /package/src/cborg/{cborg/example-json.js → example-json.js} +0 -0
  411. /package/src/cborg/{cborg/example.js → example.js} +0 -0
  412. /package/{patched/cborg/lib → src/cborg}/json/json.js +0 -0
  413. /package/{patched → src}/cborg/test/appendix_a.js +0 -0
  414. /package/{patched → src}/cborg/test/node-test-bin.js +0 -0
  415. /package/{patched/cborg/types/lib → src/cborg/types/cborg}/is.d.ts +0 -0
  416. /package/{patched → src}/cborg/types/example.d.ts +0 -0
  417. /package/{patched → src}/cborg/types/example.d.ts.map +0 -0
  418. /package/{patched/cborg/types/lib → src/cborg/types}/json/json.d.ts +0 -0
  419. /package/{patched/cborg/types/lib → src/cborg/types/utils}/bl.d.ts +0 -0
  420. /package/{patched/cborg/types/lib → src/cborg/types/utils}/byte-utils.d.ts +0 -0
  421. /package/{patched/cborg/types/lib → src/cborg/types/utils}/token.d.ts +0 -0
  422. /package/{patched/cborg/lib → src/cborg/utils}/byte-utils.js +0 -0
  423. /package/{patched/cborg/lib → src/cborg/utils}/token.js +0 -0
  424. /package/src/{@ipld/dag-json/dag-json → ipfs-unixfs-exporter}/LICENSE +0 -0
  425. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/README.md → README.md} +0 -0
  426. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/index.min.js +0 -0
  427. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/errors.d.ts +0 -0
  428. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/errors.d.ts.map +0 -0
  429. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/errors.js +0 -0
  430. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/errors.js.map +0 -0
  431. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/index.d.ts +0 -0
  432. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/index.d.ts.map +0 -0
  433. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/index.js +0 -0
  434. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/index.js.map +0 -0
  435. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-cbor.d.ts +0 -0
  436. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-cbor.d.ts.map +0 -0
  437. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-cbor.js +0 -0
  438. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-cbor.js.map +0 -0
  439. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-json.d.ts +0 -0
  440. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-json.d.ts.map +0 -0
  441. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-json.js +0 -0
  442. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/dag-json.js.map +0 -0
  443. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/identity.d.ts +0 -0
  444. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/identity.d.ts.map +0 -0
  445. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/identity.js +0 -0
  446. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/identity.js.map +0 -0
  447. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/index.d.ts +0 -0
  448. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/index.d.ts.map +0 -0
  449. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/index.js +0 -0
  450. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/index.js.map +0 -0
  451. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/json.d.ts +0 -0
  452. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/json.d.ts.map +0 -0
  453. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/json.js +0 -0
  454. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/json.js.map +0 -0
  455. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/raw.d.ts +0 -0
  456. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/raw.d.ts.map +0 -0
  457. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/raw.js +0 -0
  458. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/raw.js.map +0 -0
  459. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/directory.d.ts +0 -0
  460. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/directory.d.ts.map +0 -0
  461. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/directory.js +0 -0
  462. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/directory.js.map +0 -0
  463. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/file.d.ts +0 -0
  464. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/file.d.ts.map +0 -0
  465. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/file.js +0 -0
  466. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/file.js.map +0 -0
  467. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/hamt-sharded-directory.d.ts +0 -0
  468. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/hamt-sharded-directory.d.ts.map +0 -0
  469. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/hamt-sharded-directory.js +0 -0
  470. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/hamt-sharded-directory.js.map +0 -0
  471. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/raw.d.ts +0 -0
  472. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/raw.d.ts.map +0 -0
  473. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/raw.js +0 -0
  474. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/content/raw.js.map +0 -0
  475. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/index.d.ts +0 -0
  476. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/index.d.ts.map +0 -0
  477. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/index.js +0 -0
  478. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/resolvers/unixfs-v1/index.js.map +0 -0
  479. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/extract-data-from-block.d.ts +0 -0
  480. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/extract-data-from-block.d.ts.map +0 -0
  481. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/extract-data-from-block.js +0 -0
  482. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/extract-data-from-block.js.map +0 -0
  483. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/find-cid-in-shard.d.ts +0 -0
  484. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/find-cid-in-shard.d.ts.map +0 -0
  485. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/find-cid-in-shard.js +0 -0
  486. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/find-cid-in-shard.js.map +0 -0
  487. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/resolve-object-path.d.ts +0 -0
  488. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/resolve-object-path.d.ts.map +0 -0
  489. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/resolve-object-path.js +0 -0
  490. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/resolve-object-path.js.map +0 -0
  491. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/validate-offset-and-length.d.ts +0 -0
  492. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/validate-offset-and-length.d.ts.map +0 -0
  493. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/validate-offset-and-length.js +0 -0
  494. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/src/utils/validate-offset-and-length.js.map +0 -0
  495. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/dist → dist}/typedoc-urls.json +0 -0
  496. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/package.json → package.json} +0 -0
  497. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/errors.ts +0 -0
  498. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/index.ts +0 -0
  499. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/dag-cbor.ts +0 -0
  500. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/dag-json.ts +0 -0
  501. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/identity.ts +0 -0
  502. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/index.ts +0 -0
  503. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/json.ts +0 -0
  504. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/raw.ts +0 -0
  505. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/unixfs-v1/content/directory.ts +0 -0
  506. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/unixfs-v1/content/file.ts +0 -0
  507. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/unixfs-v1/content/hamt-sharded-directory.ts +0 -0
  508. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/unixfs-v1/content/raw.ts +0 -0
  509. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/resolvers/unixfs-v1/index.ts +0 -0
  510. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/utils/extract-data-from-block.ts +0 -0
  511. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/utils/find-cid-in-shard.ts +0 -0
  512. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/utils/resolve-object-path.ts +0 -0
  513. /package/src/ipfs-unixfs-exporter/{ipfs-unixfs-exporter/src → src}/utils/validate-offset-and-length.ts +0 -0
@@ -1,124 +0,0 @@
1
- /**
2
- * Bl is a list of byte chunks, similar to https://github.com/rvagg/bl but for
3
- * writing rather than reading.
4
- * A Bl object accepts set() operations for individual bytes and copyTo() for
5
- * inserting byte arrays. These write operations don't automatically increment
6
- * the internal cursor so its "length" won't be changed. Instead, increment()
7
- * must be called to extend its length to cover the inserted data.
8
- * The toBytes() call will convert all internal memory to a single Uint8Array of
9
- * the correct length, truncating any data that is stored but hasn't been
10
- * included by an increment().
11
- * get() can retrieve a single byte.
12
- * All operations (except toBytes()) take an "offset" argument that will perform
13
- * the write at the offset _from the current cursor_. For most operations this
14
- * will be `0` to write at the current cursor position but it can be ahead of
15
- * the current cursor. Negative offsets probably work but are untested.
16
- */
17
-
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 './byte-utils.js'
20
-
21
- // the ts-ignores in this file are almost all for the `Uint8Array|number[]` duality that exists
22
- // for perf reasons. Consider better approaches to this or removing it entirely, it is quite
23
- // risky because of some assumptions about small chunks === number[] and everything else === Uint8Array.
24
-
25
- const defaultChunkSize = 256
26
-
27
- export class Bl {
28
- /**
29
- * @param {number} [chunkSize]
30
- */
31
- constructor (chunkSize = defaultChunkSize) {
32
- this.chunkSize = chunkSize
33
- /** @type {number} */
34
- this.cursor = 0
35
- /** @type {number} */
36
- this.maxCursor = -1
37
- /** @type {(Uint8Array|number[])[]} */
38
- this.chunks = []
39
- // keep the first chunk around if we can to save allocations for future encodes
40
- /** @type {Uint8Array|number[]|null} */
41
- this._initReuseChunk = null
42
- }
43
-
44
- reset () {
45
- this.cursor = 0
46
- this.maxCursor = -1
47
- if (this.chunks.length) {
48
- this.chunks = []
49
- }
50
- if (this._initReuseChunk !== null) {
51
- this.chunks.push(this._initReuseChunk)
52
- this.maxCursor = this._initReuseChunk.length - 1
53
- }
54
- }
55
-
56
- /**
57
- * @param {Uint8Array|number[]} bytes
58
- */
59
- push (bytes) {
60
- let topChunk = this.chunks[this.chunks.length - 1]
61
- const newMax = this.cursor + bytes.length
62
- if (newMax <= this.maxCursor + 1) {
63
- // we have at least one chunk and we can fit these bytes into that chunk
64
- const chunkPos = topChunk.length - (this.maxCursor - this.cursor) - 1
65
- // @ts-ignore
66
- topChunk.set(bytes, chunkPos)
67
- } else {
68
- // can't fit it in
69
- if (topChunk) {
70
- // trip the last chunk to `cursor` if we need to
71
- const chunkPos = topChunk.length - (this.maxCursor - this.cursor) - 1
72
- if (chunkPos < topChunk.length) {
73
- // @ts-ignore
74
- this.chunks[this.chunks.length - 1] = topChunk.subarray(0, chunkPos)
75
- this.maxCursor = this.cursor - 1
76
- }
77
- }
78
- if (bytes.length < 64 && bytes.length < this.chunkSize) {
79
- // make a new chunk and copy the new one into it
80
- topChunk = alloc(this.chunkSize)
81
- this.chunks.push(topChunk)
82
- this.maxCursor += topChunk.length
83
- if (this._initReuseChunk === null) {
84
- this._initReuseChunk = topChunk
85
- }
86
- // @ts-ignore
87
- topChunk.set(bytes, 0)
88
- } else {
89
- // push the new bytes in as its own chunk
90
- this.chunks.push(bytes)
91
- this.maxCursor += bytes.length
92
- }
93
- }
94
- this.cursor += bytes.length
95
- }
96
-
97
- /**
98
- * @param {boolean} [reset]
99
- * @returns {Uint8Array}
100
- */
101
- toBytes (reset = false) {
102
- let byts
103
- if (this.chunks.length === 1) {
104
- const chunk = this.chunks[0]
105
- if (reset && this.cursor > chunk.length / 2) {
106
- /* c8 ignore next 2 */
107
- // @ts-ignore
108
- byts = this.cursor === chunk.length ? chunk : chunk.subarray(0, this.cursor)
109
- this._initReuseChunk = null
110
- this.chunks = []
111
- } else {
112
- // @ts-ignore
113
- byts = slice(chunk, 0, this.cursor)
114
- }
115
- } else {
116
- // @ts-ignore
117
- byts = concat(this.chunks, this.cursor)
118
- }
119
- if (reset) {
120
- this.reset()
121
- }
122
- return byts
123
- }
124
- }
@@ -1,417 +0,0 @@
1
- // Use Uint8Array directly in the browser, use Buffer in Node.js but don't
2
- // speak its name directly to avoid bundlers pulling in the `Buffer` polyfill
3
-
4
- // @ts-ignore
5
- export const useBuffer = globalThis.process &&
6
- // @ts-ignore
7
- !globalThis.process.browser &&
8
- // @ts-ignore
9
- globalThis.Buffer &&
10
- // @ts-ignore
11
- typeof globalThis.Buffer.isBuffer === 'function'
12
-
13
- const textDecoder = new TextDecoder()
14
- const textEncoder = new TextEncoder()
15
-
16
- /**
17
- * @param {Uint8Array} buf
18
- * @returns {boolean}
19
- */
20
- function isBuffer (buf) {
21
- // @ts-ignore
22
- return useBuffer && globalThis.Buffer.isBuffer(buf)
23
- }
24
-
25
- /**
26
- * @param {Uint8Array|number[]} buf
27
- * @returns {Uint8Array}
28
- */
29
- export function asU8A (buf) {
30
- /* c8 ignore next */
31
- if (!(buf instanceof Uint8Array)) {
32
- return Uint8Array.from(buf)
33
- }
34
- return isBuffer(buf) ? new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength) : buf
35
- }
36
-
37
- export const toString = useBuffer
38
- ? // eslint-disable-line operator-linebreak
39
- /**
40
- * @param {Uint8Array} bytes
41
- * @param {number} start
42
- * @param {number} end
43
- */
44
- (bytes, start, end) => {
45
- return end - start > 64
46
- ? // eslint-disable-line operator-linebreak
47
- // @ts-ignore
48
- globalThis.Buffer.from(bytes.subarray(start, end)).toString('utf8')
49
- : utf8Slice(bytes, start, end)
50
- }
51
- /* c8 ignore next 11 */
52
- : // eslint-disable-line operator-linebreak
53
- /**
54
- * @param {Uint8Array} bytes
55
- * @param {number} start
56
- * @param {number} end
57
- */
58
- (bytes, start, end) => {
59
- return end - start > 64
60
- ? textDecoder.decode(bytes.subarray(start, end))
61
- : utf8Slice(bytes, start, end)
62
- }
63
-
64
- export const fromString = useBuffer
65
- ? // eslint-disable-line operator-linebreak
66
- /**
67
- * @param {string} string
68
- */
69
- (string) => {
70
- return string.length > 64
71
- ? // eslint-disable-line operator-linebreak
72
- // @ts-ignore
73
- globalThis.Buffer.from(string)
74
- : utf8ToBytes(string)
75
- }
76
- /* c8 ignore next 7 */
77
- : // eslint-disable-line operator-linebreak
78
- /**
79
- * @param {string} string
80
- */
81
- (string) => {
82
- return string.length > 64 ? textEncoder.encode(string) : utf8ToBytes(string)
83
- }
84
-
85
- /**
86
- * Buffer variant not fast enough for what we need
87
- * @param {number[]} arr
88
- * @returns {Uint8Array}
89
- */
90
- export const fromArray = (arr) => {
91
- return Uint8Array.from(arr)
92
- }
93
-
94
- export const slice = useBuffer
95
- ? // eslint-disable-line operator-linebreak
96
- /**
97
- * @param {Uint8Array} bytes
98
- * @param {number} start
99
- * @param {number} end
100
- */
101
- (bytes, start, end) => {
102
- if (isBuffer(bytes)) {
103
- return new Uint8Array(bytes.subarray(start, end))
104
- }
105
- return bytes.slice(start, end)
106
- }
107
- /* c8 ignore next 9 */
108
- : // eslint-disable-line operator-linebreak
109
- /**
110
- * @param {Uint8Array} bytes
111
- * @param {number} start
112
- * @param {number} end
113
- */
114
- (bytes, start, end) => {
115
- return bytes.slice(start, end)
116
- }
117
-
118
- export const concat = useBuffer
119
- ? // eslint-disable-line operator-linebreak
120
- /**
121
- * @param {Uint8Array[]} chunks
122
- * @param {number} length
123
- * @returns {Uint8Array}
124
- */
125
- (chunks, length) => {
126
- // might get a stray plain Array here
127
- /* c8 ignore next 1 */
128
- chunks = chunks.map((c) => c instanceof Uint8Array
129
- ? c
130
- // this case is occasionally missed during test runs so becomes coverage-flaky
131
- /* c8 ignore next 4 */
132
- : // eslint-disable-line operator-linebreak
133
- // @ts-ignore
134
- globalThis.Buffer.from(c))
135
- // @ts-ignore
136
- return asU8A(globalThis.Buffer.concat(chunks, length))
137
- }
138
- /* c8 ignore next 19 */
139
- : // eslint-disable-line operator-linebreak
140
- /**
141
- * @param {Uint8Array[]} chunks
142
- * @param {number} length
143
- * @returns {Uint8Array}
144
- */
145
- (chunks, length) => {
146
- const out = new Uint8Array(length)
147
- let off = 0
148
- for (let b of chunks) {
149
- if (off + b.length > out.length) {
150
- // final chunk that's bigger than we need
151
- b = b.subarray(0, out.length - off)
152
- }
153
- out.set(b, off)
154
- off += b.length
155
- }
156
- return out
157
- }
158
-
159
- export const alloc = useBuffer
160
- ? // eslint-disable-line operator-linebreak
161
- /**
162
- * @param {number} size
163
- * @returns {Uint8Array}
164
- */
165
- (size) => {
166
- // we always write over the contents we expose so this should be safe
167
- // @ts-ignore
168
- return globalThis.Buffer.allocUnsafe(size)
169
- }
170
- /* c8 ignore next 8 */
171
- : // eslint-disable-line operator-linebreak
172
- /**
173
- * @param {number} size
174
- * @returns {Uint8Array}
175
- */
176
- (size) => {
177
- return new Uint8Array(size)
178
- }
179
-
180
- export const toHex = useBuffer
181
- ? // eslint-disable-line operator-linebreak
182
- /**
183
- * @param {Uint8Array} d
184
- * @returns {string}
185
- */
186
- (d) => {
187
- if (typeof d === 'string') {
188
- return d
189
- }
190
- // @ts-ignore
191
- return globalThis.Buffer.from(toBytes(d)).toString('hex')
192
- }
193
- /* c8 ignore next 12 */
194
- : // eslint-disable-line operator-linebreak
195
- /**
196
- * @param {Uint8Array} d
197
- * @returns {string}
198
- */
199
- (d) => {
200
- if (typeof d === 'string') {
201
- return d
202
- }
203
- // @ts-ignore not smart enough to figure this out
204
- return Array.prototype.reduce.call(toBytes(d), (p, c) => `${p}${c.toString(16).padStart(2, '0')}`, '')
205
- }
206
-
207
- export const fromHex = useBuffer
208
- ? // eslint-disable-line operator-linebreak
209
- /**
210
- * @param {string|Uint8Array} hex
211
- * @returns {Uint8Array}
212
- */
213
- (hex) => {
214
- if (hex instanceof Uint8Array) {
215
- return hex
216
- }
217
- // @ts-ignore
218
- return globalThis.Buffer.from(hex, 'hex')
219
- }
220
- /* c8 ignore next 17 */
221
- : // eslint-disable-line operator-linebreak
222
- /**
223
- * @param {string|Uint8Array} hex
224
- * @returns {Uint8Array}
225
- */
226
- (hex) => {
227
- if (hex instanceof Uint8Array) {
228
- return hex
229
- }
230
- if (!hex.length) {
231
- return new Uint8Array(0)
232
- }
233
- return new Uint8Array(hex.split('')
234
- .map((/** @type {string} */ c, /** @type {number} */ i, /** @type {string[]} */ d) => i % 2 === 0 ? `0x${c}${d[i + 1]}` : '')
235
- .filter(Boolean)
236
- .map((/** @type {string} */ e) => parseInt(e, 16)))
237
- }
238
-
239
- /**
240
- * @param {Uint8Array|ArrayBuffer|ArrayBufferView} obj
241
- * @returns {Uint8Array}
242
- */
243
- function toBytes (obj) {
244
- if (obj instanceof Uint8Array && obj.constructor.name === 'Uint8Array') {
245
- return obj
246
- }
247
- if (obj instanceof ArrayBuffer) {
248
- return new Uint8Array(obj)
249
- }
250
- if (ArrayBuffer.isView(obj)) {
251
- return new Uint8Array(obj.buffer, obj.byteOffset, obj.byteLength)
252
- }
253
- /* c8 ignore next */
254
- throw new Error('Unknown type, must be binary type')
255
- }
256
-
257
- /**
258
- * @param {Uint8Array} b1
259
- * @param {Uint8Array} b2
260
- * @returns {number}
261
- */
262
- export function compare (b1, b2) {
263
- /* c8 ignore next 5 */
264
- if (isBuffer(b1) && isBuffer(b2)) {
265
- // probably not possible to get here in the current API
266
- // @ts-ignore Buffer
267
- return b1.compare(b2)
268
- }
269
- for (let i = 0; i < b1.length; i++) {
270
- if (b1[i] === b2[i]) {
271
- continue
272
- }
273
- return b1[i] < b2[i] ? -1 : 1
274
- } /* c8 ignore next 3 */
275
- return 0
276
- }
277
-
278
- // The below code is taken from https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143
279
- // Licensed Apache-2.0.
280
-
281
- /**
282
- * @param {string} str
283
- * @returns {number[]}
284
- */
285
- function utf8ToBytes (str) {
286
- const out = []
287
- let p = 0
288
- for (let i = 0; i < str.length; i++) {
289
- let c = str.charCodeAt(i)
290
- if (c < 128) {
291
- out[p++] = c
292
- } else if (c < 2048) {
293
- out[p++] = (c >> 6) | 192
294
- out[p++] = (c & 63) | 128
295
- } else if (
296
- ((c & 0xFC00) === 0xD800) && (i + 1) < str.length &&
297
- ((str.charCodeAt(i + 1) & 0xFC00) === 0xDC00)) {
298
- // Surrogate Pair
299
- c = 0x10000 + ((c & 0x03FF) << 10) + (str.charCodeAt(++i) & 0x03FF)
300
- out[p++] = (c >> 18) | 240
301
- out[p++] = ((c >> 12) & 63) | 128
302
- out[p++] = ((c >> 6) & 63) | 128
303
- out[p++] = (c & 63) | 128
304
- } else {
305
- out[p++] = (c >> 12) | 224
306
- out[p++] = ((c >> 6) & 63) | 128
307
- out[p++] = (c & 63) | 128
308
- }
309
- }
310
- return out
311
- }
312
-
313
- // The below code is mostly taken from https://github.com/feross/buffer
314
- // Licensed MIT. Copyright (c) Feross Aboukhadijeh
315
-
316
- /**
317
- * @param {Uint8Array} buf
318
- * @param {number} offset
319
- * @param {number} end
320
- * @returns {string}
321
- */
322
- function utf8Slice (buf, offset, end) {
323
- const res = []
324
-
325
- while (offset < end) {
326
- const firstByte = buf[offset]
327
- let codePoint = null
328
- let bytesPerSequence = (firstByte > 0xef) ? 4 : (firstByte > 0xdf) ? 3 : (firstByte > 0xbf) ? 2 : 1
329
-
330
- if (offset + bytesPerSequence <= end) {
331
- let secondByte, thirdByte, fourthByte, tempCodePoint
332
-
333
- switch (bytesPerSequence) {
334
- case 1:
335
- if (firstByte < 0x80) {
336
- codePoint = firstByte
337
- }
338
- break
339
- case 2:
340
- secondByte = buf[offset + 1]
341
- if ((secondByte & 0xc0) === 0x80) {
342
- tempCodePoint = (firstByte & 0x1f) << 0x6 | (secondByte & 0x3f)
343
- if (tempCodePoint > 0x7f) {
344
- codePoint = tempCodePoint
345
- }
346
- }
347
- break
348
- case 3:
349
- secondByte = buf[offset + 1]
350
- thirdByte = buf[offset + 2]
351
- if ((secondByte & 0xc0) === 0x80 && (thirdByte & 0xc0) === 0x80) {
352
- tempCodePoint = (firstByte & 0xf) << 0xc | (secondByte & 0x3f) << 0x6 | (thirdByte & 0x3f)
353
- /* c8 ignore next 3 */
354
- if (tempCodePoint > 0x7ff && (tempCodePoint < 0xd800 || tempCodePoint > 0xdfff)) {
355
- codePoint = tempCodePoint
356
- }
357
- }
358
- break
359
- case 4:
360
- secondByte = buf[offset + 1]
361
- thirdByte = buf[offset + 2]
362
- fourthByte = buf[offset + 3]
363
- if ((secondByte & 0xc0) === 0x80 && (thirdByte & 0xc0) === 0x80 && (fourthByte & 0xc0) === 0x80) {
364
- tempCodePoint = (firstByte & 0xf) << 0x12 | (secondByte & 0x3f) << 0xc | (thirdByte & 0x3f) << 0x6 | (fourthByte & 0x3f)
365
- if (tempCodePoint > 0xffff && tempCodePoint < 0x110000) {
366
- codePoint = tempCodePoint
367
- }
368
- }
369
- }
370
- }
371
-
372
- /* c8 ignore next 5 */
373
- if (codePoint === null) {
374
- // we did not generate a valid codePoint so insert a
375
- // replacement char (U+FFFD) and advance only 1 byte
376
- codePoint = 0xfffd
377
- bytesPerSequence = 1
378
- } else if (codePoint > 0xffff) {
379
- // encode to utf16 (surrogate pair dance)
380
- codePoint -= 0x10000
381
- res.push(codePoint >>> 10 & 0x3ff | 0xd800)
382
- codePoint = 0xdc00 | codePoint & 0x3ff
383
- }
384
-
385
- res.push(codePoint)
386
- offset += bytesPerSequence
387
- }
388
-
389
- return decodeCodePointsArray(res)
390
- }
391
-
392
- // Based on http://stackoverflow.com/a/22747272/680742, the browser with
393
- // the lowest limit is Chrome, with 0x10000 args.
394
- // We go 1 magnitude less, for safety
395
- const MAX_ARGUMENTS_LENGTH = 0x1000
396
-
397
- /**
398
- * @param {number[]} codePoints
399
- * @returns {string}
400
- */
401
- export function decodeCodePointsArray (codePoints) {
402
- const len = codePoints.length
403
- if (len <= MAX_ARGUMENTS_LENGTH) {
404
- return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
405
- }
406
- /* c8 ignore next 10 */
407
- // Decode in chunks to avoid "call stack size exceeded".
408
- let res = ''
409
- let i = 0
410
- while (i < len) {
411
- res += String.fromCharCode.apply(
412
- String,
413
- codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
414
- )
415
- }
416
- return res
417
- }
@@ -1,27 +0,0 @@
1
- const decodeErrPrefix = 'CBOR decode error:'
2
- const encodeErrPrefix = 'CBOR encode error:'
3
-
4
- const uintMinorPrefixBytes = []
5
- uintMinorPrefixBytes[23] = 1
6
- uintMinorPrefixBytes[24] = 2
7
- uintMinorPrefixBytes[25] = 3
8
- uintMinorPrefixBytes[26] = 5
9
- uintMinorPrefixBytes[27] = 9
10
-
11
- /**
12
- * @param {Uint8Array} data
13
- * @param {number} pos
14
- * @param {number} need
15
- */
16
- function assertEnoughData (data, pos, need) {
17
- if (data.length - pos < need) {
18
- throw new Error(`${decodeErrPrefix} not enough data for type`)
19
- }
20
- }
21
-
22
- export {
23
- decodeErrPrefix,
24
- encodeErrPrefix,
25
- uintMinorPrefixBytes,
26
- assertEnoughData
27
- }