@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,464 +0,0 @@
1
- import { is } from './is.js'
2
- import { Token, Type } from './token.js'
3
- import { Bl } from './bl.js'
4
- import { encodeErrPrefix } from './common.js'
5
- import { quickEncodeToken } from './jump.js'
6
- import { asU8A } from './byte-utils.js'
7
-
8
- import { encodeUint } from './0uint.js'
9
- import { encodeNegint } from './1negint.js'
10
- import { encodeBytes } from './2bytes.js'
11
- import { encodeString } from './3string.js'
12
- import { encodeArray } from './4array.js'
13
- import { encodeMap } from './5map.js'
14
- import { encodeTag } from './6tag.js'
15
- import { encodeFloat } from './7float.js'
16
-
17
- /**
18
- * @typedef {import('../interface').EncodeOptions} EncodeOptions
19
- * @typedef {import('../interface').OptionalTypeEncoder} OptionalTypeEncoder
20
- * @typedef {import('../interface').Reference} Reference
21
- * @typedef {import('../interface').StrictTypeEncoder} StrictTypeEncoder
22
- * @typedef {import('../interface').TokenTypeEncoder} TokenTypeEncoder
23
- * @typedef {import('../interface').TokenOrNestedTokens} TokenOrNestedTokens
24
- */
25
-
26
- /** @type {EncodeOptions} */
27
- const defaultEncodeOptions = {
28
- float64: false,
29
- mapSorter,
30
- quickEncodeToken
31
- }
32
-
33
- /** @returns {TokenTypeEncoder[]} */
34
- export function makeCborEncoders () {
35
- const encoders = []
36
- encoders[Type.uint.major] = encodeUint
37
- encoders[Type.negint.major] = encodeNegint
38
- encoders[Type.bytes.major] = encodeBytes
39
- encoders[Type.string.major] = encodeString
40
- encoders[Type.array.major] = encodeArray
41
- encoders[Type.map.major] = encodeMap
42
- encoders[Type.tag.major] = encodeTag
43
- encoders[Type.float.major] = encodeFloat
44
- return encoders
45
- }
46
-
47
- const cborEncoders = makeCborEncoders()
48
-
49
- const buf = new Bl()
50
-
51
- /** @implements {Reference} */
52
- class Ref {
53
- /**
54
- * @param {object|any[]} obj
55
- * @param {Reference|undefined} parent
56
- */
57
- constructor (obj, parent) {
58
- this.obj = obj
59
- this.parent = parent
60
- }
61
-
62
- /**
63
- * @param {object|any[]} obj
64
- * @returns {boolean}
65
- */
66
- includes (obj) {
67
- /** @type {Reference|undefined} */
68
- let p = this
69
- do {
70
- if (p.obj === obj) {
71
- return true
72
- }
73
- } while (p = p.parent) // eslint-disable-line
74
- return false
75
- }
76
-
77
- /**
78
- * @param {Reference|undefined} stack
79
- * @param {object|any[]} obj
80
- * @returns {Reference}
81
- */
82
- static createCheck (stack, obj) {
83
- if (stack && stack.includes(obj)) {
84
- throw new Error(`${encodeErrPrefix} object contains circular references`)
85
- }
86
- return new Ref(obj, stack)
87
- }
88
- }
89
-
90
- const simpleTokens = {
91
- null: new Token(Type.null, null),
92
- undefined: new Token(Type.undefined, undefined),
93
- true: new Token(Type.true, true),
94
- false: new Token(Type.false, false),
95
- emptyArray: new Token(Type.array, 0),
96
- emptyMap: new Token(Type.map, 0)
97
- }
98
-
99
- /** @type {{[typeName: string]: StrictTypeEncoder}} */
100
- const typeEncoders = {
101
- /**
102
- * @param {any} obj
103
- * @param {string} _typ
104
- * @param {EncodeOptions} _options
105
- * @param {Reference} [_refStack]
106
- * @returns {TokenOrNestedTokens}
107
- */
108
- number (obj, _typ, _options, _refStack) {
109
- if (!Number.isInteger(obj) || !Number.isSafeInteger(obj)) {
110
- return new Token(Type.float, obj)
111
- } else if (obj >= 0) {
112
- return new Token(Type.uint, obj)
113
- } else {
114
- return new Token(Type.negint, obj)
115
- }
116
- },
117
-
118
- /**
119
- * @param {any} obj
120
- * @param {string} _typ
121
- * @param {EncodeOptions} _options
122
- * @param {Reference} [_refStack]
123
- * @returns {TokenOrNestedTokens}
124
- */
125
- bigint (obj, _typ, _options, _refStack) {
126
- if (obj >= BigInt(0)) {
127
- return new Token(Type.uint, obj)
128
- } else {
129
- return new Token(Type.negint, obj)
130
- }
131
- },
132
-
133
- /**
134
- * @param {any} obj
135
- * @param {string} _typ
136
- * @param {EncodeOptions} _options
137
- * @param {Reference} [_refStack]
138
- * @returns {TokenOrNestedTokens}
139
- */
140
- Uint8Array (obj, _typ, _options, _refStack) {
141
- return new Token(Type.bytes, obj)
142
- },
143
-
144
- /**
145
- * @param {any} obj
146
- * @param {string} _typ
147
- * @param {EncodeOptions} _options
148
- * @param {Reference} [_refStack]
149
- * @returns {TokenOrNestedTokens}
150
- */
151
- string (obj, _typ, _options, _refStack) {
152
- return new Token(Type.string, obj)
153
- },
154
-
155
- /**
156
- * @param {any} obj
157
- * @param {string} _typ
158
- * @param {EncodeOptions} _options
159
- * @param {Reference} [_refStack]
160
- * @returns {TokenOrNestedTokens}
161
- */
162
- boolean (obj, _typ, _options, _refStack) {
163
- return obj ? simpleTokens.true : simpleTokens.false
164
- },
165
-
166
- /**
167
- * @param {any} _obj
168
- * @param {string} _typ
169
- * @param {EncodeOptions} _options
170
- * @param {Reference} [_refStack]
171
- * @returns {TokenOrNestedTokens}
172
- */
173
- null (_obj, _typ, _options, _refStack) {
174
- return simpleTokens.null
175
- },
176
-
177
- /**
178
- * @param {any} _obj
179
- * @param {string} _typ
180
- * @param {EncodeOptions} _options
181
- * @param {Reference} [_refStack]
182
- * @returns {TokenOrNestedTokens}
183
- */
184
- undefined (_obj, _typ, _options, _refStack) {
185
- return simpleTokens.undefined
186
- },
187
-
188
- /**
189
- * @param {any} obj
190
- * @param {string} _typ
191
- * @param {EncodeOptions} _options
192
- * @param {Reference} [_refStack]
193
- * @returns {TokenOrNestedTokens}
194
- */
195
- ArrayBuffer (obj, _typ, _options, _refStack) {
196
- return new Token(Type.bytes, new Uint8Array(obj))
197
- },
198
-
199
- /**
200
- * @param {any} obj
201
- * @param {string} _typ
202
- * @param {EncodeOptions} _options
203
- * @param {Reference} [_refStack]
204
- * @returns {TokenOrNestedTokens}
205
- */
206
- DataView (obj, _typ, _options, _refStack) {
207
- return new Token(Type.bytes, new Uint8Array(obj.buffer, obj.byteOffset, obj.byteLength))
208
- },
209
-
210
- /**
211
- * @param {any} obj
212
- * @param {string} _typ
213
- * @param {EncodeOptions} options
214
- * @param {Reference} [refStack]
215
- * @returns {TokenOrNestedTokens}
216
- */
217
- Array (obj, _typ, options, refStack) {
218
- if (!obj.length) {
219
- if (options.addBreakTokens === true) {
220
- return [simpleTokens.emptyArray, new Token(Type.break)]
221
- }
222
- return simpleTokens.emptyArray
223
- }
224
- refStack = Ref.createCheck(refStack, obj)
225
- const entries = []
226
- let i = 0
227
- for (const e of obj) {
228
- entries[i++] = objectToTokens(e, options, refStack)
229
- }
230
- if (options.addBreakTokens) {
231
- return [new Token(Type.array, obj.length), entries, new Token(Type.break)]
232
- }
233
- return [new Token(Type.array, obj.length), entries]
234
- },
235
-
236
- /**
237
- * @param {any} obj
238
- * @param {string} typ
239
- * @param {EncodeOptions} options
240
- * @param {Reference} [refStack]
241
- * @returns {TokenOrNestedTokens}
242
- */
243
- Object (obj, typ, options, refStack) {
244
- // could be an Object or a Map
245
- const isMap = typ !== 'Object'
246
- // it's slightly quicker to use Object.keys() than Object.entries()
247
- const keys = isMap ? obj.keys() : Object.keys(obj)
248
- const length = isMap ? obj.size : keys.length
249
- if (!length) {
250
- if (options.addBreakTokens === true) {
251
- return [simpleTokens.emptyMap, new Token(Type.break)]
252
- }
253
- return simpleTokens.emptyMap
254
- }
255
- refStack = Ref.createCheck(refStack, obj)
256
- /** @type {TokenOrNestedTokens[]} */
257
- const entries = []
258
- let i = 0
259
- for (const key of keys) {
260
- entries[i++] = [
261
- objectToTokens(key, options, refStack),
262
- objectToTokens(isMap ? obj.get(key) : obj[key], options, refStack)
263
- ]
264
- }
265
- sortMapEntries(entries, options)
266
- if (options.addBreakTokens) {
267
- return [new Token(Type.map, length), entries, new Token(Type.break)]
268
- }
269
- return [new Token(Type.map, length), entries]
270
- }
271
- }
272
-
273
- typeEncoders.Map = typeEncoders.Object
274
- typeEncoders.Buffer = typeEncoders.Uint8Array
275
- for (const typ of 'Uint8Clamped Uint16 Uint32 Int8 Int16 Int32 BigUint64 BigInt64 Float32 Float64'.split(' ')) {
276
- typeEncoders[`${typ}Array`] = typeEncoders.DataView
277
- }
278
-
279
- /**
280
- * @param {any} obj
281
- * @param {EncodeOptions} [options]
282
- * @param {Reference} [refStack]
283
- * @returns {TokenOrNestedTokens}
284
- */
285
- function objectToTokens (obj, options = {}, refStack) {
286
- const typ = is(obj)
287
- const customTypeEncoder = (options && options.typeEncoders && /** @type {OptionalTypeEncoder} */ options.typeEncoders[typ]) || typeEncoders[typ]
288
- if (typeof customTypeEncoder === 'function') {
289
- const tokens = customTypeEncoder(obj, typ, options, refStack)
290
- if (tokens != null) {
291
- return tokens
292
- }
293
- }
294
- const typeEncoder = typeEncoders[typ]
295
- if (!typeEncoder) {
296
- throw new Error(`${encodeErrPrefix} unsupported type: ${typ}`)
297
- }
298
- return typeEncoder(obj, typ, options, refStack)
299
- }
300
-
301
- /*
302
- CBOR key sorting is a mess.
303
-
304
- The canonicalisation recommendation from https://tools.ietf.org/html/rfc7049#section-3.9
305
- includes the wording:
306
-
307
- > The keys in every map must be sorted lowest value to highest.
308
- > Sorting is performed on the bytes of the representation of the key
309
- > data items without paying attention to the 3/5 bit splitting for
310
- > major types.
311
- > ...
312
- > * If two keys have different lengths, the shorter one sorts
313
- earlier;
314
- > * If two keys have the same length, the one with the lower value
315
- in (byte-wise) lexical order sorts earlier.
316
-
317
- 1. It is not clear what "bytes of the representation of the key" means: is it
318
- the CBOR representation, or the binary representation of the object itself?
319
- Consider the int and uint difference here.
320
- 2. It is not clear what "without paying attention to" means: do we include it
321
- and compare on that? Or do we omit the special prefix byte, (mostly) treating
322
- the key in its plain binary representation form.
323
-
324
- The FIDO 2.0: Client To Authenticator Protocol spec takes the original CBOR
325
- wording and clarifies it according to their understanding.
326
- https://fidoalliance.org/specs/fido-v2.0-rd-20170927/fido-client-to-authenticator-protocol-v2.0-rd-20170927.html#message-encoding
327
-
328
- > The keys in every map must be sorted lowest value to highest. Sorting is
329
- > performed on the bytes of the representation of the key data items without
330
- > paying attention to the 3/5 bit splitting for major types. The sorting rules
331
- > are:
332
- > * If the major types are different, the one with the lower value in numerical
333
- > order sorts earlier.
334
- > * If two keys have different lengths, the shorter one sorts earlier;
335
- > * If two keys have the same length, the one with the lower value in
336
- > (byte-wise) lexical order sorts earlier.
337
-
338
- Some other implementations, such as borc, do a full encode then do a
339
- length-first, byte-wise-second comparison:
340
- https://github.com/dignifiedquire/borc/blob/b6bae8b0bcde7c3976b0f0f0957208095c392a36/src/encoder.js#L358
341
- https://github.com/dignifiedquire/borc/blob/b6bae8b0bcde7c3976b0f0f0957208095c392a36/src/utils.js#L143-L151
342
-
343
- This has the benefit of being able to easily handle arbitrary keys, including
344
- complex types (maps and arrays).
345
-
346
- We'll opt for the FIDO approach, since it affords some efficies since we don't
347
- need a full encode of each key to determine order and can defer to the types
348
- to determine how to most efficiently order their values (i.e. int and uint
349
- ordering can be done on the numbers, no need for byte-wise, for example).
350
-
351
- Recommendation: stick to single key types or you'll get into trouble, and prefer
352
- string keys because it's much simpler that way.
353
- */
354
-
355
- /*
356
- (UPDATE, Dec 2020)
357
- https://tools.ietf.org/html/rfc8949 is the updated CBOR spec and clarifies some
358
- of the questions above with a new recommendation for sorting order being much
359
- closer to what would be expected in other environments (i.e. no length-first
360
- weirdness).
361
- This new sorting order is not yet implemented here but could be added as an
362
- option. "Determinism" (canonicity) is system dependent and it's difficult to
363
- change existing systems that are built with existing expectations. So if a new
364
- ordering is introduced here, the old needs to be kept as well with the user
365
- having the option.
366
- */
367
-
368
- /**
369
- * @param {TokenOrNestedTokens[]} entries
370
- * @param {EncodeOptions} options
371
- */
372
- function sortMapEntries (entries, options) {
373
- if (options.mapSorter) {
374
- entries.sort(options.mapSorter)
375
- }
376
- }
377
-
378
- /**
379
- * @param {(Token|Token[])[]} e1
380
- * @param {(Token|Token[])[]} e2
381
- * @returns {number}
382
- */
383
- function mapSorter (e1, e2) {
384
- // the key position ([0]) could have a single token or an array
385
- // almost always it'll be a single token but complex key might get involved
386
- /* c8 ignore next 2 */
387
- const keyToken1 = Array.isArray(e1[0]) ? e1[0][0] : e1[0]
388
- const keyToken2 = Array.isArray(e2[0]) ? e2[0][0] : e2[0]
389
-
390
- // different key types
391
- if (keyToken1.type !== keyToken2.type) {
392
- return keyToken1.type.compare(keyToken2.type)
393
- }
394
-
395
- const major = keyToken1.type.major
396
- // TODO: handle case where cmp === 0 but there are more keyToken e. complex type)
397
- const tcmp = cborEncoders[major].compareTokens(keyToken1, keyToken2)
398
- /* c8 ignore next 5 */
399
- if (tcmp === 0) {
400
- // duplicate key or complex type where the first token matched,
401
- // i.e. a map or array and we're only comparing the opening token
402
- console.warn('WARNING: complex key types used, CBOR key sorting guarantees are gone')
403
- }
404
- return tcmp
405
- }
406
-
407
- /**
408
- * @param {Bl} buf
409
- * @param {TokenOrNestedTokens} tokens
410
- * @param {TokenTypeEncoder[]} encoders
411
- * @param {EncodeOptions} options
412
- */
413
- function tokensToEncoded (buf, tokens, encoders, options) {
414
- if (Array.isArray(tokens)) {
415
- for (const token of tokens) {
416
- tokensToEncoded(buf, token, encoders, options)
417
- }
418
- } else {
419
- encoders[tokens.type.major](buf, tokens, options)
420
- }
421
- }
422
-
423
- /**
424
- * @param {any} data
425
- * @param {TokenTypeEncoder[]} encoders
426
- * @param {EncodeOptions} options
427
- * @returns {Uint8Array}
428
- */
429
- function encodeCustom (data, encoders, options) {
430
- const tokens = objectToTokens(data, options)
431
- if (!Array.isArray(tokens) && options.quickEncodeToken) {
432
- const quickBytes = options.quickEncodeToken(tokens)
433
- if (quickBytes) {
434
- return quickBytes
435
- }
436
- const encoder = encoders[tokens.type.major]
437
- if (encoder.encodedSize) {
438
- const size = encoder.encodedSize(tokens, options)
439
- const buf = new Bl(size)
440
- encoder(buf, tokens, options)
441
- /* c8 ignore next 4 */
442
- // this would be a problem with encodedSize() functions
443
- if (buf.chunks.length !== 1) {
444
- throw new Error(`Unexpected error: pre-calculated length for ${tokens} was wrong`)
445
- }
446
- return asU8A(buf.chunks[0])
447
- }
448
- }
449
- buf.reset()
450
- tokensToEncoded(buf, tokens, encoders, options)
451
- return buf.toBytes(true)
452
- }
453
-
454
- /**
455
- * @param {any} data
456
- * @param {EncodeOptions} [options]
457
- * @returns {Uint8Array}
458
- */
459
- function encode (data, options) {
460
- options = Object.assign({}, defaultEncodeOptions, options)
461
- return encodeCustom(data, cborEncoders, options)
462
- }
463
-
464
- export { objectToTokens, encode, encodeCustom, Ref }