@fireproof/core 0.18.0 → 0.19.5-dev

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/README.md +29 -15
  2. package/chunk-7OGPZSGT.js +39 -0
  3. package/chunk-7OGPZSGT.js.map +1 -0
  4. package/chunk-H3A2HMMM.js +164 -0
  5. package/chunk-H3A2HMMM.js.map +1 -0
  6. package/chunk-HCXR2M5B.js +202 -0
  7. package/chunk-HCXR2M5B.js.map +1 -0
  8. package/chunk-QHSXUST7.js +208 -0
  9. package/chunk-QHSXUST7.js.map +1 -0
  10. package/chunk-VZGT7ZYP.js +22 -0
  11. package/chunk-VZGT7ZYP.js.map +1 -0
  12. package/index.cjs +4649 -0
  13. package/index.cjs.map +1 -0
  14. package/index.d.cts +911 -0
  15. package/index.d.ts +911 -0
  16. package/index.js +2923 -0
  17. package/index.js.map +1 -0
  18. package/metafile-cjs.json +1 -0
  19. package/metafile-esm.json +1 -0
  20. package/node-sys-container-E7LADX2Z.js +29 -0
  21. package/node-sys-container-E7LADX2Z.js.map +1 -0
  22. package/package.json +23 -109
  23. package/sqlite-data-store-YS4U7AQ4.js +120 -0
  24. package/sqlite-data-store-YS4U7AQ4.js.map +1 -0
  25. package/sqlite-meta-store-FJZSZG4R.js +137 -0
  26. package/sqlite-meta-store-FJZSZG4R.js.map +1 -0
  27. package/sqlite-wal-store-6JZ4URNS.js +123 -0
  28. package/sqlite-wal-store-6JZ4URNS.js.map +1 -0
  29. package/store-file-HMHPQTUV.js +193 -0
  30. package/store-file-HMHPQTUV.js.map +1 -0
  31. package/store-indexdb-MRVZG4OG.js +20 -0
  32. package/store-indexdb-MRVZG4OG.js.map +1 -0
  33. package/store-sql-5XMJ5OWJ.js +406 -0
  34. package/store-sql-5XMJ5OWJ.js.map +1 -0
  35. package/dist/browser/fireproof.cjs +0 -1172
  36. package/dist/browser/fireproof.cjs.map +0 -1
  37. package/dist/browser/fireproof.d.cts +0 -268
  38. package/dist/browser/fireproof.d.ts +0 -268
  39. package/dist/browser/fireproof.global.js +0 -24178
  40. package/dist/browser/fireproof.global.js.map +0 -1
  41. package/dist/browser/fireproof.js +0 -1147
  42. package/dist/browser/fireproof.js.map +0 -1
  43. package/dist/browser/metafile-cjs.json +0 -1
  44. package/dist/browser/metafile-esm.json +0 -1
  45. package/dist/browser/metafile-iife.json +0 -1
  46. package/dist/memory/fireproof.cjs +0 -1172
  47. package/dist/memory/fireproof.cjs.map +0 -1
  48. package/dist/memory/fireproof.d.cts +0 -268
  49. package/dist/memory/fireproof.d.ts +0 -268
  50. package/dist/memory/fireproof.global.js +0 -24178
  51. package/dist/memory/fireproof.global.js.map +0 -1
  52. package/dist/memory/fireproof.js +0 -1147
  53. package/dist/memory/fireproof.js.map +0 -1
  54. package/dist/memory/metafile-cjs.json +0 -1
  55. package/dist/memory/metafile-esm.json +0 -1
  56. package/dist/memory/metafile-iife.json +0 -1
  57. package/dist/node/fireproof.cjs +0 -1172
  58. package/dist/node/fireproof.cjs.map +0 -1
  59. package/dist/node/fireproof.d.cts +0 -268
  60. package/dist/node/fireproof.d.ts +0 -268
  61. package/dist/node/fireproof.global.js +0 -38540
  62. package/dist/node/fireproof.global.js.map +0 -1
  63. package/dist/node/fireproof.js +0 -1138
  64. package/dist/node/fireproof.js.map +0 -1
  65. package/dist/node/metafile-cjs.json +0 -1
  66. package/dist/node/metafile-esm.json +0 -1
  67. package/dist/node/metafile-iife.json +0 -1
@@ -0,0 +1 @@
1
+ {"inputs":{"src/write-queue.ts":{"bytes":1816,"imports":[{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":5497,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/node-sys-container.ts":{"bytes":680,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"}],"format":"esm"},"src/runtime/sys-container.ts":{"bytes":6743,"imports":[{"path":"std-env","kind":"import-statement","external":true},{"path":"uuidv7","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/node-sys-container.ts","kind":"dynamic-import","original":"./node-sys-container.js"}],"format":"esm"},"src/runtime/data-dir.ts":{"bytes":940,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"},{"path":"std-env","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-file-utils.ts":{"bytes":1177,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"}],"format":"esm"},"src/runtime/store-file-version.ts":{"bytes":47,"imports":[],"format":"esm"},"src/runtime/store-indexdb-version.ts":{"bytes":48,"imports":[],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/version.ts":{"bytes":46,"imports":[],"format":"esm"},"src/runtime/index.ts":{"bytes":300,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"},{"path":"src/runtime/data-dir.ts","kind":"import-statement","original":"./data-dir.js"},{"path":"src/runtime/store-file-utils.ts","kind":"import-statement","original":"./store-file-utils.js"},{"path":"src/runtime/store-file-version.ts","kind":"import-statement","original":"./store-file-version.js"},{"path":"src/runtime/store-indexdb-version.ts","kind":"import-statement","original":"./store-indexdb-version.js"},{"path":"src/runtime/store-sql/v0.19-sqlite/version.ts","kind":"import-statement","original":"./store-sql/v0.19-sqlite/version.js"}],"format":"esm"},"src/utils.ts":{"bytes":3589,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/index.ts","kind":"import-statement","original":"./runtime"},{"path":"uuidv7","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/task-manager.ts":{"bytes":2083,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./connection-base.js","kind":"import-statement","external":true},{"path":"./index.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"}],"format":"esm"},"src/blockstore/connection-base.ts":{"bytes":5460,"imports":[{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock/api","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/blockstore/task-manager.ts","kind":"import-statement","original":"./task-manager.js"},{"path":"./loader.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"}],"format":"esm"},"src/blockstore/connect-rest.ts":{"bytes":3302,"imports":[{"path":"src/blockstore/connection-base.ts","kind":"import-statement","original":"./connection-base.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/files.ts":{"bytes":2373,"imports":[{"path":"@ipld/unixfs","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"@ipld/unixfs/file/chunker/fixed","kind":"import-statement","external":true},{"path":"@ipld/unixfs/file/layout/balanced","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true},{"path":"ipfs-unixfs-exporter","kind":"import-statement","external":true},{"path":"../blockstore/index.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/gateway.ts":{"bytes":1073,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-indexdb.ts":{"bytes":8562,"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-indexdb-version.ts","kind":"import-statement","original":"./store-indexdb-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"../blockstore/gateway.js"},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"}],"format":"esm"},"src/blockstore/types.ts":{"bytes":6002,"imports":[{"path":"./store.js","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true},{"path":"./transaction.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/loader-helpers.ts":{"bytes":1918,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"@ipld/car/buffer-writer","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/encrypt-codec.ts":{"bytes":3179,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/encrypt-helpers.ts":{"bytes":7559,"imports":[{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"prolly-trees/utils","kind":"import-statement","external":true},{"path":"prolly-trees/cache","kind":"import-statement","external":true},{"path":"prolly-trees/cid-set","kind":"import-statement","external":true},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"path":"src/blockstore/encrypt-codec.ts","kind":"import-statement","original":"./encrypt-codec.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/crypto.ts":{"bytes":861,"imports":[{"path":"../blockstore/index.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/transaction.ts":{"bytes":9467,"imports":[{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@web3-storage/pail/api","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/blockstore/loader.ts","kind":"import-statement","original":"./loader.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/crypto.ts","kind":"import-statement","original":"../runtime/crypto.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"}],"format":"esm"},"src/blockstore/commit-queue.ts":{"bytes":786,"imports":[],"format":"esm"},"src/blockstore/loader.ts":{"bytes":20125,"imports":[{"path":"p-limit","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"path":"src/blockstore/encrypt-helpers.ts","kind":"import-statement","original":"./encrypt-helpers.js"},{"path":"./store.js","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./transaction.js"},{"path":"src/blockstore/commit-queue.ts","kind":"import-statement","original":"./commit-queue.js"},{"path":"@ipld/car/buffer-writer","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/store.ts":{"bytes":14168,"imports":[{"path":"p-limit","kind":"import-statement","external":true},{"path":"@ipld/dag-json","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./gateway.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/runtime/store-indexdb.ts","kind":"import-statement","original":"../runtime/store-indexdb.js"},{"path":"src/blockstore/loader.ts","kind":"import-statement","original":"./loader.js"},{"path":"src/blockstore/commit-queue.ts","kind":"import-statement","original":"./commit-queue.js"}],"format":"esm"},"src/runtime/store-file.ts":{"bytes":7154,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"},{"path":"../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-file-version.ts","kind":"import-statement","original":"./store-file-version.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"../blockstore/gateway.js"},{"path":"src/runtime/store-file-utils.ts","kind":"import-statement","original":"./store-file-utils.js"}],"format":"esm"},"src/runtime/store-sql/types.ts":{"bytes":1835,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-sql/ensurer.ts":{"bytes":2011,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"../../utils"},{"path":"src/runtime/store-sql/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/runtime/store-sql/sqlite-adapter-better-sqlite3.ts":{"bytes":2926,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"../sys-container.js"},{"path":"src/runtime/store-sql/ensurer.ts","kind":"import-statement","original":"./ensurer.js"},{"path":"better-sqlite3","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/store-sql/sql-connection-factory.ts":{"bytes":701,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"../../utils.js"},{"path":"src/runtime/store-sql/sqlite-adapter-better-sqlite3.ts","kind":"import-statement","original":"./sqlite-adapter-better-sqlite3.js"},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts":{"bytes":1337,"imports":[{"path":"../sqlite-adapter-better-sqlite3","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/version.ts","kind":"import-statement","original":"./version"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils"}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts":{"bytes":5033,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"../sqlite-adapter-better-sqlite3.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts","kind":"import-statement","original":"./sqlite-ensure-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts":{"bytes":4686,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"../sqlite-adapter-better-sqlite3.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts","kind":"import-statement","original":"./sqlite-ensure-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts":{"bytes":5314,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"../sqlite-adapter-better-sqlite3.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts","kind":"import-statement","original":"./sqlite-ensure-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/store-sql/store-version-factory.ts":{"bytes":1989,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/version.ts","kind":"import-statement","original":"./v0.19-sqlite/version"},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts","kind":"dynamic-import","original":"./v0.19-sqlite/sqlite-wal-store.js"},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts","kind":"dynamic-import","original":"./v0.19-sqlite/sqlite-data-store.js"},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts","kind":"dynamic-import","original":"./v0.19-sqlite/sqlite-meta-store.js"}],"format":"esm"},"src/runtime/store-sql/store-sql.ts":{"bytes":7803,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/sql-connection-factory.ts","kind":"import-statement","original":"./sql-connection-factory.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/store-version-factory.ts","kind":"import-statement","original":"./store-version-factory.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"../../blockstore/gateway.js"}],"format":"esm"},"src/blockstore/store-factory.ts":{"bytes":8278,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/data-dir.ts","kind":"import-statement","original":"../runtime/data-dir.js"},{"path":"src/runtime/files.ts","kind":"import-statement","original":"../runtime/files.js"},{"path":"./loader.js","kind":"import-statement","external":true},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"./gateway.js","kind":"import-statement","external":true},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"}],"format":"esm"},"src/blockstore/index.ts":{"bytes":980,"imports":[{"path":"src/blockstore/connect-rest.ts","kind":"import-statement","original":"./connect-rest.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./gateway.js"},{"path":"./connection-base.js","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./transaction.js"},{"path":"src/blockstore/loader.ts","kind":"import-statement","original":"./loader.js"},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"path":"src/blockstore/connection-base.ts","kind":"import-statement","original":"./connection-base.js"}],"format":"esm"},"src/crdt-helpers.ts":{"bytes":12154,"imports":[{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt/batch","kind":"import-statement","external":true},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/indexer-helpers.ts":{"bytes":7309,"imports":[{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"charwise","kind":"import-statement","external":true},{"path":"prolly-trees/db-index","kind":"import-statement","external":true},{"path":"prolly-trees/utils","kind":"import-statement","external":true},{"path":"prolly-trees/cache","kind":"import-statement","external":true},{"path":"prolly-trees/db-index","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"./crdt.js","kind":"import-statement","external":true}],"format":"esm"},"src/indexer.ts":{"bytes":10662,"imports":[{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/indexer-helpers.ts","kind":"import-statement","original":"./indexer-helpers.js"},{"path":"./crdt.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/apply-head-queue.ts":{"bytes":2283,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/crdt-clock.ts":{"bytes":5056,"imports":[{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/crdt-helpers.ts","kind":"import-statement","original":"./crdt-helpers.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/apply-head-queue.ts","kind":"import-statement","original":"./apply-head-queue.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/crdt.ts":{"bytes":5437,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/crdt-helpers.ts","kind":"import-statement","original":"./crdt-helpers.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/crdt-clock.ts","kind":"import-statement","original":"./crdt-clock.js"},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./blockstore/transaction.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/database.ts":{"bytes":7840,"imports":[{"path":"uuidv7","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/write-queue.ts","kind":"import-statement","original":"./write-queue.js"},{"path":"src/crdt.ts","kind":"import-statement","original":"./crdt.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./runtime/sys-container.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./blockstore/gateway.js"}],"format":"esm"},"src/version.ts":{"bytes":86,"imports":[],"format":"esm"},"src/index.ts":{"bytes":320,"imports":[{"path":"src/database.ts","kind":"import-statement","original":"./database.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/crdt.ts","kind":"import-statement","original":"./crdt.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/runtime/index.ts","kind":"import-statement","original":"./runtime/index.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"}],"format":"esm"}},"outputs":{"dist/fireproof-core/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":333112},"dist/fireproof-core/index.cjs":{"imports":[{"path":"std-env","kind":"require-call","external":true},{"path":"uuidv7","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"std-env","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"uuidv7","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"idb","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"better-sqlite3","kind":"dynamic-import","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"uuidv7","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/block","kind":"require-call","external":true},{"path":"multiformats/link","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@ipld/dag-cbor","kind":"require-call","external":true},{"path":"@web3-storage/pail/crdt","kind":"require-call","external":true},{"path":"@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@web3-storage/pail/crdt/batch","kind":"require-call","external":true},{"path":"@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@web3-storage/pail/block","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@ipld/unixfs","kind":"require-call","external":true},{"path":"multiformats/codecs/raw","kind":"require-call","external":true},{"path":"@ipld/unixfs/file/chunker/fixed","kind":"require-call","external":true},{"path":"@ipld/unixfs/file/layout/balanced","kind":"require-call","external":true},{"path":"ipfs-unixfs-exporter","kind":"require-call","external":true},{"path":"p-limit","kind":"require-call","external":true},{"path":"@ipld/dag-json","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"p-limit","kind":"require-call","external":true},{"path":"@ipld/car","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/block","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"multiformats/codecs/raw","kind":"require-call","external":true},{"path":"@ipld/car/buffer-writer","kind":"require-call","external":true},{"path":"@ipld/dag-cbor","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"multiformats","kind":"require-call","external":true},{"path":"multiformats/block","kind":"require-call","external":true},{"path":"@ipld/dag-cbor","kind":"require-call","external":true},{"path":"@web3-storage/pail/block","kind":"require-call","external":true},{"path":"prolly-trees/utils","kind":"require-call","external":true},{"path":"prolly-trees/cache","kind":"require-call","external":true},{"path":"prolly-trees/cid-set","kind":"require-call","external":true},{"path":"multiformats","kind":"require-call","external":true},{"path":"@web3-storage/pail/block","kind":"require-call","external":true},{"path":"@ipld/car/buffer-writer","kind":"require-call","external":true},{"path":"multiformats/block","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@ipld/dag-cbor","kind":"require-call","external":true},{"path":"charwise","kind":"require-call","external":true},{"path":"prolly-trees/db-index","kind":"require-call","external":true},{"path":"prolly-trees/utils","kind":"require-call","external":true},{"path":"prolly-trees/cache","kind":"require-call","external":true},{"path":"@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@web3-storage/pail/crdt","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/types.ts":{"bytesInOutput":374},"src/runtime/node-sys-container.ts":{"bytesInOutput":741},"src/runtime/sys-container.ts":{"bytesInOutput":5175},"src/runtime/data-dir.ts":{"bytesInOutput":923},"src/runtime/store-file-utils.ts":{"bytesInOutput":1095},"src/runtime/store-file-version.ts":{"bytesInOutput":167},"src/runtime/store-indexdb-version.ts":{"bytesInOutput":172},"src/runtime/store-sql/v0.19-sqlite/version.ts":{"bytesInOutput":164},"src/runtime/index.ts":{"bytesInOutput":612},"src/utils.ts":{"bytesInOutput":3014},"src/blockstore/gateway.ts":{"bytesInOutput":487},"src/runtime/store-indexdb.ts":{"bytesInOutput":7479},"src/runtime/store-file.ts":{"bytesInOutput":6950},"src/runtime/store-sql/types.ts":{"bytesInOutput":213},"src/runtime/store-sql/ensurer.ts":{"bytesInOutput":1696},"src/runtime/store-sql/sqlite-adapter-better-sqlite3.ts":{"bytesInOutput":2187},"src/runtime/store-sql/sql-connection-factory.ts":{"bytesInOutput":642},"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts":{"bytesInOutput":1305},"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts":{"bytesInOutput":4476},"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts":{"bytesInOutput":4394},"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts":{"bytesInOutput":4974},"src/runtime/store-sql/store-version-factory.ts":{"bytesInOutput":1506},"src/runtime/store-sql/store-sql.ts":{"bytesInOutput":7946},"src/index.ts":{"bytesInOutput":698},"src/database.ts":{"bytesInOutput":5591},"src/write-queue.ts":{"bytesInOutput":1118},"src/crdt.ts":{"bytesInOutput":3758},"src/crdt-helpers.ts":{"bytesInOutput":8728},"src/blockstore/index.ts":{"bytesInOutput":747},"src/blockstore/connection-base.ts":{"bytesInOutput":2996},"src/blockstore/task-manager.ts":{"bytesInOutput":1683},"src/blockstore/connect-rest.ts":{"bytesInOutput":1072},"src/blockstore/store-factory.ts":{"bytesInOutput":7700},"src/runtime/files.ts":{"bytesInOutput":2049},"src/blockstore/store.ts":{"bytesInOutput":11926},"src/blockstore/loader.ts":{"bytesInOutput":15771},"src/blockstore/types.ts":{"bytesInOutput":47},"src/blockstore/loader-helpers.ts":{"bytesInOutput":1469},"src/blockstore/encrypt-helpers.ts":{"bytesInOutput":6360},"src/blockstore/encrypt-codec.ts":{"bytesInOutput":2798},"src/blockstore/transaction.ts":{"bytesInOutput":5613},"src/runtime/crypto.ts":{"bytesInOutput":673},"src/blockstore/commit-queue.ts":{"bytesInOutput":708},"src/indexer.ts":{"bytesInOutput":7509},"src/indexer-helpers.ts":{"bytesInOutput":4191},"src/crdt-clock.ts":{"bytesInOutput":3904},"src/apply-head-queue.ts":{"bytesInOutput":1258},"src/version.ts":{"bytesInOutput":66}},"bytes":158624}}}
@@ -0,0 +1 @@
1
+ {"inputs":{"src/write-queue.ts":{"bytes":1816,"imports":[{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":5497,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/node-sys-container.ts":{"bytes":680,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"}],"format":"esm"},"src/runtime/sys-container.ts":{"bytes":6743,"imports":[{"path":"std-env","kind":"import-statement","external":true},{"path":"uuidv7","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/node-sys-container.ts","kind":"dynamic-import","original":"./node-sys-container.js"}],"format":"esm"},"src/runtime/data-dir.ts":{"bytes":940,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"},{"path":"std-env","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-file-utils.ts":{"bytes":1177,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"}],"format":"esm"},"src/runtime/store-file-version.ts":{"bytes":47,"imports":[],"format":"esm"},"src/runtime/store-indexdb-version.ts":{"bytes":48,"imports":[],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/version.ts":{"bytes":46,"imports":[],"format":"esm"},"src/runtime/index.ts":{"bytes":300,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"},{"path":"src/runtime/data-dir.ts","kind":"import-statement","original":"./data-dir.js"},{"path":"src/runtime/store-file-utils.ts","kind":"import-statement","original":"./store-file-utils.js"},{"path":"src/runtime/store-file-version.ts","kind":"import-statement","original":"./store-file-version.js"},{"path":"src/runtime/store-indexdb-version.ts","kind":"import-statement","original":"./store-indexdb-version.js"},{"path":"src/runtime/store-sql/v0.19-sqlite/version.ts","kind":"import-statement","original":"./store-sql/v0.19-sqlite/version.js"}],"format":"esm"},"src/utils.ts":{"bytes":3589,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/index.ts","kind":"import-statement","original":"./runtime"},{"path":"uuidv7","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/task-manager.ts":{"bytes":2083,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./connection-base.js","kind":"import-statement","external":true},{"path":"./index.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"}],"format":"esm"},"src/blockstore/connection-base.ts":{"bytes":5460,"imports":[{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock/api","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/blockstore/task-manager.ts","kind":"import-statement","original":"./task-manager.js"},{"path":"./loader.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"}],"format":"esm"},"src/blockstore/connect-rest.ts":{"bytes":3302,"imports":[{"path":"src/blockstore/connection-base.ts","kind":"import-statement","original":"./connection-base.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/files.ts":{"bytes":2373,"imports":[{"path":"@ipld/unixfs","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"@ipld/unixfs/file/chunker/fixed","kind":"import-statement","external":true},{"path":"@ipld/unixfs/file/layout/balanced","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true},{"path":"ipfs-unixfs-exporter","kind":"import-statement","external":true},{"path":"../blockstore/index.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/gateway.ts":{"bytes":1073,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-indexdb.ts":{"bytes":8562,"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-indexdb-version.ts","kind":"import-statement","original":"./store-indexdb-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"../blockstore/gateway.js"},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"}],"format":"esm"},"src/blockstore/types.ts":{"bytes":6002,"imports":[{"path":"./store.js","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true},{"path":"./transaction.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/loader-helpers.ts":{"bytes":1918,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"@ipld/car/buffer-writer","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/encrypt-codec.ts":{"bytes":3179,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/encrypt-helpers.ts":{"bytes":7559,"imports":[{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"prolly-trees/utils","kind":"import-statement","external":true},{"path":"prolly-trees/cache","kind":"import-statement","external":true},{"path":"prolly-trees/cid-set","kind":"import-statement","external":true},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"path":"src/blockstore/encrypt-codec.ts","kind":"import-statement","original":"./encrypt-codec.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/crypto.ts":{"bytes":861,"imports":[{"path":"../blockstore/index.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/transaction.ts":{"bytes":9467,"imports":[{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@web3-storage/pail/api","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/blockstore/loader.ts","kind":"import-statement","original":"./loader.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/crypto.ts","kind":"import-statement","original":"../runtime/crypto.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"}],"format":"esm"},"src/blockstore/commit-queue.ts":{"bytes":786,"imports":[],"format":"esm"},"src/blockstore/loader.ts":{"bytes":20125,"imports":[{"path":"p-limit","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"path":"src/blockstore/encrypt-helpers.ts","kind":"import-statement","original":"./encrypt-helpers.js"},{"path":"./store.js","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./transaction.js"},{"path":"src/blockstore/commit-queue.ts","kind":"import-statement","original":"./commit-queue.js"},{"path":"@ipld/car/buffer-writer","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/store.ts":{"bytes":14168,"imports":[{"path":"p-limit","kind":"import-statement","external":true},{"path":"@ipld/dag-json","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./gateway.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/runtime/store-indexdb.ts","kind":"import-statement","original":"../runtime/store-indexdb.js"},{"path":"src/blockstore/loader.ts","kind":"import-statement","original":"./loader.js"},{"path":"src/blockstore/commit-queue.ts","kind":"import-statement","original":"./commit-queue.js"}],"format":"esm"},"src/runtime/store-file.ts":{"bytes":7154,"imports":[{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./sys-container.js"},{"path":"../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-file-version.ts","kind":"import-statement","original":"./store-file-version.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"../blockstore/gateway.js"},{"path":"src/runtime/store-file-utils.ts","kind":"import-statement","original":"./store-file-utils.js"}],"format":"esm"},"src/runtime/store-sql/types.ts":{"bytes":1835,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-sql/ensurer.ts":{"bytes":2011,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"../../utils"},{"path":"src/runtime/store-sql/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/runtime/store-sql/sqlite-adapter-better-sqlite3.ts":{"bytes":2926,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"../sys-container.js"},{"path":"src/runtime/store-sql/ensurer.ts","kind":"import-statement","original":"./ensurer.js"},{"path":"better-sqlite3","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/store-sql/sql-connection-factory.ts":{"bytes":701,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"../../utils.js"},{"path":"src/runtime/store-sql/sqlite-adapter-better-sqlite3.ts","kind":"import-statement","original":"./sqlite-adapter-better-sqlite3.js"},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts":{"bytes":1337,"imports":[{"path":"../sqlite-adapter-better-sqlite3","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/version.ts","kind":"import-statement","original":"./version"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils"}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts":{"bytes":5033,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"../sqlite-adapter-better-sqlite3.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts","kind":"import-statement","original":"./sqlite-ensure-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts":{"bytes":4686,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"../sqlite-adapter-better-sqlite3.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts","kind":"import-statement","original":"./sqlite-ensure-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts":{"bytes":5314,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"../sqlite-adapter-better-sqlite3.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts","kind":"import-statement","original":"./sqlite-ensure-version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/store-sql/store-version-factory.ts":{"bytes":1989,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/v0.19-sqlite/version.ts","kind":"import-statement","original":"./v0.19-sqlite/version"},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts","kind":"dynamic-import","original":"./v0.19-sqlite/sqlite-wal-store.js"},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts","kind":"dynamic-import","original":"./v0.19-sqlite/sqlite-data-store.js"},{"path":"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts","kind":"dynamic-import","original":"./v0.19-sqlite/sqlite-meta-store.js"}],"format":"esm"},"src/runtime/store-sql/store-sql.ts":{"bytes":7803,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/sql-connection-factory.ts","kind":"import-statement","original":"./sql-connection-factory.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/runtime/store-sql/store-version-factory.ts","kind":"import-statement","original":"./store-version-factory.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"../../blockstore/gateway.js"}],"format":"esm"},"src/blockstore/store-factory.ts":{"bytes":8278,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/data-dir.ts","kind":"import-statement","original":"../runtime/data-dir.js"},{"path":"src/runtime/files.ts","kind":"import-statement","original":"../runtime/files.js"},{"path":"./loader.js","kind":"import-statement","external":true},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"./gateway.js","kind":"import-statement","external":true},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-file.ts","kind":"dynamic-import","original":"../runtime/store-file.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-indexdb.ts","kind":"dynamic-import","original":"../runtime/store-indexdb.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"},{"path":"src/runtime/store-sql/store-sql.ts","kind":"dynamic-import","original":"../runtime/store-sql/store-sql.js"}],"format":"esm"},"src/blockstore/index.ts":{"bytes":980,"imports":[{"path":"src/blockstore/connect-rest.ts","kind":"import-statement","original":"./connect-rest.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./gateway.js"},{"path":"./connection-base.js","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./transaction.js"},{"path":"src/blockstore/loader.ts","kind":"import-statement","original":"./loader.js"},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"path":"src/blockstore/connection-base.ts","kind":"import-statement","original":"./connection-base.js"}],"format":"esm"},"src/crdt-helpers.ts":{"bytes":12154,"imports":[{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt/batch","kind":"import-statement","external":true},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/indexer-helpers.ts":{"bytes":7309,"imports":[{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"charwise","kind":"import-statement","external":true},{"path":"prolly-trees/db-index","kind":"import-statement","external":true},{"path":"prolly-trees/utils","kind":"import-statement","external":true},{"path":"prolly-trees/cache","kind":"import-statement","external":true},{"path":"prolly-trees/db-index","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"./crdt.js","kind":"import-statement","external":true}],"format":"esm"},"src/indexer.ts":{"bytes":10662,"imports":[{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/indexer-helpers.ts","kind":"import-statement","original":"./indexer-helpers.js"},{"path":"./crdt.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/apply-head-queue.ts":{"bytes":2283,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/crdt-clock.ts":{"bytes":5056,"imports":[{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/crdt-helpers.ts","kind":"import-statement","original":"./crdt-helpers.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/apply-head-queue.ts","kind":"import-statement","original":"./apply-head-queue.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/crdt.ts":{"bytes":5437,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/crdt-helpers.ts","kind":"import-statement","original":"./crdt-helpers.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/crdt-clock.ts","kind":"import-statement","original":"./crdt-clock.js"},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./blockstore/transaction.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/database.ts":{"bytes":7840,"imports":[{"path":"uuidv7","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/write-queue.ts","kind":"import-statement","original":"./write-queue.js"},{"path":"src/crdt.ts","kind":"import-statement","original":"./crdt.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/runtime/sys-container.ts","kind":"import-statement","original":"./runtime/sys-container.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./blockstore/gateway.js"}],"format":"esm"},"src/version.ts":{"bytes":86,"imports":[],"format":"esm"},"src/index.ts":{"bytes":320,"imports":[{"path":"src/database.ts","kind":"import-statement","original":"./database.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/crdt.ts","kind":"import-statement","original":"./crdt.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/runtime/index.ts","kind":"import-statement","original":"./runtime/index.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/version.ts","kind":"import-statement","original":"./version.js"}],"format":"esm"}},"outputs":{"dist/fireproof-core/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":220434},"dist/fireproof-core/index.js":{"imports":[{"path":"dist/fireproof-core/chunk-QHSXUST7.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-VZGT7ZYP.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"uuidv7","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt/batch","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@ipld/unixfs","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"@ipld/unixfs/file/chunker/fixed","kind":"import-statement","external":true},{"path":"@ipld/unixfs/file/layout/balanced","kind":"import-statement","external":true},{"path":"ipfs-unixfs-exporter","kind":"import-statement","external":true},{"path":"p-limit","kind":"import-statement","external":true},{"path":"@ipld/dag-json","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"p-limit","kind":"import-statement","external":true},{"path":"@ipld/car","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"multiformats/codecs/raw","kind":"import-statement","external":true},{"path":"@ipld/car/buffer-writer","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"prolly-trees/utils","kind":"import-statement","external":true},{"path":"prolly-trees/cache","kind":"import-statement","external":true},{"path":"prolly-trees/cid-set","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@ipld/car/buffer-writer","kind":"import-statement","external":true},{"path":"dist/fireproof-core/store-file-HMHPQTUV.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-file-HMHPQTUV.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-file-HMHPQTUV.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-file-HMHPQTUV.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-indexdb-MRVZG4OG.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-indexdb-MRVZG4OG.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-indexdb-MRVZG4OG.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-indexdb-MRVZG4OG.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-sql-5XMJ5OWJ.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-sql-5XMJ5OWJ.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-sql-5XMJ5OWJ.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/store-sql-5XMJ5OWJ.js","kind":"dynamic-import"},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"charwise","kind":"import-statement","external":true},{"path":"prolly-trees/db-index","kind":"import-statement","external":true},{"path":"prolly-trees/utils","kind":"import-statement","external":true},{"path":"prolly-trees/cache","kind":"import-statement","external":true},{"path":"@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["CRDT","Database","Index","PACKAGE_VERSION","blockstore","bs","ensureLogger","exception2Result","exceptionWrapper","falsyToUndef","fireproof","getKey","getName","getStore","index","isFalsy","rt","throwFalsy"],"entryPoint":"src/index.ts","inputs":{"src/database.ts":{"bytesInOutput":5510},"src/write-queue.ts":{"bytesInOutput":1118},"src/crdt.ts":{"bytesInOutput":3742},"src/crdt-helpers.ts":{"bytesInOutput":8511},"src/blockstore/index.ts":{"bytesInOutput":731},"src/blockstore/connection-base.ts":{"bytesInOutput":2946},"src/blockstore/task-manager.ts":{"bytesInOutput":1669},"src/blockstore/connect-rest.ts":{"bytesInOutput":1058},"src/blockstore/store-factory.ts":{"bytesInOutput":6918},"src/runtime/files.ts":{"bytesInOutput":1939},"src/blockstore/store.ts":{"bytesInOutput":11694},"src/blockstore/loader.ts":{"bytesInOutput":15668},"src/blockstore/types.ts":{"bytesInOutput":47},"src/blockstore/loader-helpers.ts":{"bytesInOutput":1330},"src/blockstore/encrypt-helpers.ts":{"bytesInOutput":6118},"src/blockstore/encrypt-codec.ts":{"bytesInOutput":2749},"src/blockstore/transaction.ts":{"bytesInOutput":5597},"src/runtime/crypto.ts":{"bytesInOutput":673},"src/blockstore/commit-queue.ts":{"bytesInOutput":708},"src/indexer-helpers.ts":{"bytesInOutput":3909},"src/indexer.ts":{"bytesInOutput":7481},"src/crdt-clock.ts":{"bytesInOutput":3835},"src/apply-head-queue.ts":{"bytesInOutput":1258},"src/index.ts":{"bytesInOutput":0},"src/version.ts":{"bytesInOutput":66}},"bytes":96938},"dist/fireproof-core/node-sys-container-E7LADX2Z.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1217},"dist/fireproof-core/node-sys-container-E7LADX2Z.js":{"imports":[{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"}],"exports":["createNodeSysContainer"],"entryPoint":"src/runtime/node-sys-container.ts","inputs":{"src/runtime/node-sys-container.ts":{"bytesInOutput":474}},"bytes":595},"dist/fireproof-core/store-indexdb-MRVZG4OG.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/fireproof-core/store-indexdb-MRVZG4OG.js":{"imports":[{"path":"dist/fireproof-core/chunk-QHSXUST7.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-VZGT7ZYP.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"}],"exports":["IndexDBDataGateway","IndexDBMetaGateway","IndexDBTestStore","IndexDBWalGateway","getIndexDBName","guardVersion"],"entryPoint":"src/runtime/store-indexdb.ts","inputs":{},"bytes":377},"dist/fireproof-core/chunk-QHSXUST7.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":14314},"dist/fireproof-core/chunk-QHSXUST7.js":{"imports":[{"path":"dist/fireproof-core/chunk-VZGT7ZYP.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["IndexDBDataGateway","IndexDBMetaGateway","IndexDBTestStore","IndexDBWalGateway","getIndexDBName","guardVersion"],"inputs":{"src/runtime/store-indexdb.ts":{"bytesInOutput":6186}},"bytes":6594},"dist/fireproof-core/store-file-HMHPQTUV.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12397},"dist/fireproof-core/store-file-HMHPQTUV.js":{"imports":[{"path":"dist/fireproof-core/chunk-VZGT7ZYP.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["FileDataGateway","FileMetaGateway","FileTestStore","FileWALGateway"],"entryPoint":"src/runtime/store-file.ts","inputs":{"src/runtime/store-file.ts":{"bytesInOutput":5749}},"bytes":6163},"dist/fireproof-core/sqlite-wal-store-6JZ4URNS.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":8192},"dist/fireproof-core/sqlite-wal-store-6JZ4URNS.js":{"imports":[{"path":"dist/fireproof-core/chunk-7OGPZSGT.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["V0_18_0SQLiteWalStore","WalSQLRecordBuilder"],"entryPoint":"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts","inputs":{"src/runtime/store-sql/v0.19-sqlite/sqlite-wal-store.ts":{"bytesInOutput":3612}},"bytes":3907},"dist/fireproof-core/sqlite-data-store-YS4U7AQ4.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":7859},"dist/fireproof-core/sqlite-data-store-YS4U7AQ4.js":{"imports":[{"path":"dist/fireproof-core/chunk-7OGPZSGT.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["DataSQLRecordBuilder","V0_18_0SQLiteDataStore"],"entryPoint":"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts","inputs":{"src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts":{"bytesInOutput":3516}},"bytes":3814},"dist/fireproof-core/sqlite-meta-store-FJZSZG4R.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":8815},"dist/fireproof-core/sqlite-meta-store-FJZSZG4R.js":{"imports":[{"path":"dist/fireproof-core/chunk-7OGPZSGT.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["MetaSQLRecordBuilder","V0_18_0SQLiteMetaStore"],"entryPoint":"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts","inputs":{"src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts":{"bytesInOutput":4033}},"bytes":4331},"dist/fireproof-core/chunk-7OGPZSGT.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":2273},"dist/fireproof-core/chunk-7OGPZSGT.js":{"imports":[{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["ensureSQLiteVersion"],"inputs":{"src/runtime/store-sql/v0.19-sqlite/sqlite-ensure-version.ts":{"bytesInOutput":1089}},"bytes":1260},"dist/fireproof-core/store-sql-5XMJ5OWJ.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27522},"dist/fireproof-core/store-sql-5XMJ5OWJ.js":{"imports":[{"path":"dist/fireproof-core/chunk-VZGT7ZYP.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-HCXR2M5B.js","kind":"import-statement"},{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"better-sqlite3","kind":"dynamic-import","external":true},{"path":"dist/fireproof-core/sqlite-wal-store-6JZ4URNS.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/sqlite-data-store-YS4U7AQ4.js","kind":"dynamic-import"},{"path":"dist/fireproof-core/sqlite-meta-store-FJZSZG4R.js","kind":"dynamic-import"}],"exports":["SQLDataGateway","SQLMetaGateway","SQLTestStore","SQLWalGateway"],"entryPoint":"src/runtime/store-sql/store-sql.ts","inputs":{"src/runtime/store-sql/store-sql.ts":{"bytesInOutput":6432},"src/runtime/store-sql/sqlite-adapter-better-sqlite3.ts":{"bytesInOutput":1737},"src/runtime/store-sql/types.ts":{"bytesInOutput":80},"src/runtime/store-sql/ensurer.ts":{"bytesInOutput":1529},"src/runtime/store-sql/sql-connection-factory.ts":{"bytesInOutput":458},"src/runtime/store-sql/store-version-factory.ts":{"bytesInOutput":1144}},"bytes":12055},"dist/fireproof-core/chunk-VZGT7ZYP.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1491},"dist/fireproof-core/chunk-VZGT7ZYP.js":{"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"exports":["NotFoundError","isNotFoundError"],"inputs":{"src/blockstore/gateway.ts":{"bytesInOutput":323}},"bytes":400},"dist/fireproof-core/chunk-HCXR2M5B.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":10629},"dist/fireproof-core/chunk-HCXR2M5B.js":{"imports":[{"path":"dist/fireproof-core/chunk-H3A2HMMM.js","kind":"import-statement"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"std-env","kind":"import-statement","external":true},{"path":"uuidv7","kind":"import-statement","external":true}],"exports":["FILESTORE_VERSION","INDEXDB_VERSION","SQLITE_VERSION","dataDir","ensureIndexName","ensureLogger","exception2Result","exceptionWrapper","getFileName","getKey","getName","getPath","getStore","runtime_exports"],"inputs":{"src/utils.ts":{"bytesInOutput":2740},"src/runtime/index.ts":{"bytesInOutput":369},"src/runtime/data-dir.ts":{"bytesInOutput":762},"src/runtime/store-file-version.ts":{"bytesInOutput":38},"src/runtime/store-indexdb-version.ts":{"bytesInOutput":39},"src/runtime/store-sql/v0.19-sqlite/version.ts":{"bytesInOutput":37},"src/runtime/store-file-utils.ts":{"bytesInOutput":949}},"bytes":5494},"dist/fireproof-core/chunk-H3A2HMMM.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":16183},"dist/fireproof-core/chunk-H3A2HMMM.js":{"imports":[{"path":"std-env","kind":"import-statement","external":true},{"path":"uuidv7","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"dist/fireproof-core/node-sys-container-E7LADX2Z.js","kind":"dynamic-import"}],"exports":["SysContainer","__export","falsyToUndef","isFalsy","join","throwFalsy"],"inputs":{"src/types.ts":{"bytesInOutput":302},"src/runtime/sys-container.ts":{"bytesInOutput":4367}},"bytes":4975}}}
@@ -0,0 +1,29 @@
1
+ import {
2
+ join
3
+ } from "./chunk-H3A2HMMM.js";
4
+
5
+ // src/runtime/node-sys-container.ts
6
+ async function createNodeSysContainer() {
7
+ const nodePath = "node:path";
8
+ const nodeOS = "node:os";
9
+ const nodeURL = "node:url";
10
+ const nodeFS = "node:fs";
11
+ const fs = (await import(nodeFS)).promises;
12
+ const path = await import(nodePath);
13
+ return {
14
+ state: "node",
15
+ ...path,
16
+ ...await import(nodeOS),
17
+ ...await import(nodeURL),
18
+ ...fs,
19
+ join,
20
+ stat: fs.stat,
21
+ readdir: fs.readdir,
22
+ readfile: fs.readFile,
23
+ writefile: fs.writeFile
24
+ };
25
+ }
26
+ export {
27
+ createNodeSysContainer
28
+ };
29
+ //# sourceMappingURL=node-sys-container-E7LADX2Z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/runtime/node-sys-container.ts"],"sourcesContent":["import { type NodeMap, join } from \"./sys-container.js\";\n\nexport async function createNodeSysContainer(): Promise<NodeMap> {\n const nodePath = \"node:path\";\n const nodeOS = \"node:os\";\n const nodeURL = \"node:url\";\n const nodeFS = \"node:fs\";\n const fs = (await import(nodeFS)).promises;\n // const assert = \"assert\";\n const path = await import(nodePath);\n return {\n state: \"node\",\n ...path,\n ...(await import(nodeOS)),\n ...(await import(nodeURL)),\n ...fs,\n join,\n stat: fs.stat as NodeMap[\"stat\"],\n readdir: fs.readdir as NodeMap[\"readdir\"],\n readfile: fs.readFile as NodeMap[\"readfile\"],\n writefile: fs.writeFile as NodeMap[\"writefile\"],\n };\n}\n"],"mappings":";;;;;AAEA,eAAsB,yBAA2C;AAC/D,QAAM,WAAW;AACjB,QAAM,SAAS;AACf,QAAM,UAAU;AAChB,QAAM,SAAS;AACf,QAAM,MAAM,MAAM,OAAO,SAAS;AAElC,QAAM,OAAO,MAAM,OAAO;AAC1B,SAAO;AAAA,IACL,OAAO;AAAA,IACP,GAAG;AAAA,IACH,GAAI,MAAM,OAAO;AAAA,IACjB,GAAI,MAAM,OAAO;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,IACA,MAAM,GAAG;AAAA,IACT,SAAS,GAAG;AAAA,IACZ,UAAU,GAAG;AAAA,IACb,WAAW,GAAG;AAAA,EAChB;AACF;","names":[]}
package/package.json CHANGED
@@ -1,36 +1,18 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.18.0",
3
+ "version": "0.19.5-dev",
4
4
  "description": "Live database for the web.",
5
5
  "type": "module",
6
- "module": "./dist/browser/fireproof.js",
7
- "main": "./dist/browser/fireproof.cjs",
8
- "browser": "./dist/browser/fireproof.global.js",
9
- "types": "./dist/browser/fireproof.d.ts",
10
- "files": [
11
- "dist/browser",
12
- "dist/memory",
13
- "dist/node"
14
- ],
6
+ "module": "./index.js",
7
+ "main": "./index.cjs",
8
+ "browser": "./index.global.js",
9
+ "types": "./index.d.ts",
15
10
  "exports": {
16
11
  ".": {
17
- "import": "./dist/browser/fireproof.js",
18
- "require": "./dist/browser/fireproof.cjs",
19
- "script": "./dist/browser/fireproof.global.js",
20
- "types": "./dist/browser/fireproof.d.ts"
21
- },
22
- "./node": {
23
- "import": "./dist/node/fireproof.js",
24
- "require": "./dist/node/fireproof.cjs",
25
- "script": "./dist/node/fireproof.global.js",
26
- "types": "./dist/node/fireproof.d.ts",
27
- "default": "./dist/node/fireproof.js"
28
- },
29
- "./memory": {
30
- "import": "./dist/memory/fireproof.js",
31
- "require": "./dist/memory/fireproof.cjs",
32
- "types": "./dist/memory/fireproof.d.ts",
33
- "default": "./dist/memory/fireproof.js"
12
+ "import": "./index.js",
13
+ "require": "./index.cjs",
14
+ "script": "./index.global.js",
15
+ "types": "./index.d.ts"
34
16
  }
35
17
  },
36
18
  "keywords": [
@@ -45,7 +27,8 @@
45
27
  "J Chris Anderson",
46
28
  "Alan Shaw",
47
29
  "Travis Vachon",
48
- "Mikeal Rogers"
30
+ "Mikeal Rogers",
31
+ "Meno Abels"
49
32
  ],
50
33
  "author": "J Chris Anderson",
51
34
  "license": "Apache-2.0 OR MIT",
@@ -58,90 +41,21 @@
58
41
  "bugs": {
59
42
  "url": "https://github.com/fireproof-storage/fireproof/issues"
60
43
  },
61
- "devDependencies": {
62
- "@hyrious/esbuild-plugin-commonjs": "^0.2.2",
63
- "@rollup/plugin-alias": "^5.0.0",
64
- "@rollup/plugin-commonjs": "^25.0.4",
65
- "@rollup/plugin-json": "^6.0.0",
66
- "@rollup/plugin-node-resolve": "^15.2.0",
67
- "@types/async": "^3.2.20",
68
- "@types/mocha": "^10.0.1",
69
- "@typescript-eslint/eslint-plugin": "^6.1.0",
70
- "@typescript-eslint/parser": "^6.1.0",
71
- "browser-assert": "^1.2.1",
72
- "c8": "^8.0.1",
73
- "crypto-browserify": "^3.12.0",
74
- "esbuild": "^0.18.14",
75
- "esbuild-plugin-alias": "^0.2.1",
76
- "esbuild-plugin-polyfill-node": "^0.3.0",
77
- "esbuild-plugin-resolve": "^2.0.0",
78
- "esbuild-plugin-tsc": "^0.4.0",
79
- "eslint": "^8.45.0",
80
- "eslint-config-standard": "^17.1.0",
81
- "eslint-plugin-import": "^2.27.5",
82
- "eslint-plugin-mocha": "^10.1.0",
83
- "eslint-plugin-node": "^11.1.0",
84
- "eslint-plugin-promise": "^6.1.1",
85
- "memfs": "^4.2.1",
86
- "mocha": "^10.2.0",
87
- "nodemon": "^3.0.1",
88
- "os-browserify": "^0.3.0",
89
- "path-browserify": "^1.0.1",
90
- "process": "^0.11.10",
91
- "puppeteer": "^21.0.3",
92
- "rollup-plugin-polyfill-node": "^0.12.0",
93
- "rollup-plugin-visualizer": "^5.9.2",
94
- "stream-browserify": "^3.0.0",
95
- "ts-unused-exports": "^10.0.0",
96
- "tslib": "^2.6.0",
97
- "typescript": "^5.1.6",
98
- "util": "^0.12.5"
44
+ "devDependencies": {},
45
+ "peerDependencies": {
46
+ "react": ">=18.0.0"
99
47
  },
100
48
  "dependencies": {
101
- "@ipld/car": "^5.2.0",
102
- "@ipld/dag-cbor": "^9.0.3",
103
- "@ipld/dag-json": "^10.1.2",
104
- "@ipld/unixfs": "^2.1.1",
105
- "@peculiar/webcrypto": "^1.4.3",
106
- "@web3-storage/pail": "^0.6.0",
49
+ "react": "^18.3.1",
50
+ "@adviser/cement": "^0.2.2",
107
51
  "charwise": "^3.0.1",
108
- "idb": "^7.1.1",
109
- "ipfs-unixfs-exporter": "^13.1.7",
110
- "multiformats": "^12.0.1",
111
- "p-limit": "^4.0.0",
112
52
  "prolly-trees": "^1.0.4",
113
- "uuidv7": "^0.6.2",
114
- "@fireproof/encrypted-blockstore": "^0.18.0"
53
+ "ipfs-unixfs-exporter": "^13.5.0",
54
+ "uuidv7": "^1.0.0",
55
+ "std-env": "^3.7.0",
56
+ "@web3-storage/pail": "^0.6.0",
57
+ "@ipld/unixfs": "^3.0.0",
58
+ "@ipld/car": "^5.3.2"
115
59
  },
116
- "scripts": {
117
- "analyze": "node ./scripts/analyze.js",
118
- "build": "npm run build:version && tsup && npm run cp:artifacts",
119
- "build:all": " npm run build && npm run test:browser && npm run test:node_build",
120
- "build:clean": "rm -rf dist",
121
- "build:esbuild": "node ./scripts/build.js",
122
- "build:rollup": "rollup -c scripts/rollup.js",
123
- "build:tsc": "npm run build:clean && tsc && mkdir dist/tsc && mv dist/*.js dist/tsc/ && node ./scripts/types.js",
124
- "build:types": "tsc --declaration --outDir dist/types && node ./scripts/types.js",
125
- "build:version": "node -p \"'export const PACKAGE_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
126
- "build:watch": "tsup --watch",
127
- "build:watch:solid": "pnpm build:watch",
128
- "build:watch:react": "pnpm build:watch",
129
- "clean": "rm -rf node_modules",
130
- "cp:artifacts": "cp dist/browser/fireproof.global.js test/www/fireproof.iife.js",
131
- "cp:artifacts:scripts": "cp dist/browser/fireproof.iife.* test/www/",
132
- "lint": "eslint 'src/**/*.{js,ts}'",
133
- "lint:all": "npm run lint:fix && npm run lint:exports",
134
- "lint:exports": "ts-unused-exports tsconfig.json",
135
- "lint:fix": "eslint --fix '{src,test}/**/*.{js,ts}'",
136
- "serve": "npx serve-http -p 8080 test/www",
137
- "test": "npm run build && npm run test:node",
138
- "test:scripts": "npm run test && tsc",
139
- "test:browser": "node ./scripts/browser-test.js",
140
- "test:node_build": "cd test/node && pnpm i && pnpm test",
141
- "test:coverage": "c8 --reporter=html --include='dist/*' node ./scripts/test.js && open coverage/src/index.html",
142
- "test:node": "node ./scripts/test.js",
143
- "test:serve": "npx serve-http test/www -p 8080",
144
- "test:watch": "nodemon -w src -w test -e ts,js --exec \"tsup && npm run test:node\"",
145
- "tsc:watch": "tsc --watch"
146
- }
60
+ "scripts": {}
147
61
  }
@@ -0,0 +1,120 @@
1
+ import {
2
+ ensureSQLiteVersion
3
+ } from "./chunk-7OGPZSGT.js";
4
+ import {
5
+ ensureLogger,
6
+ exception2Result,
7
+ getStore
8
+ } from "./chunk-HCXR2M5B.js";
9
+ import "./chunk-H3A2HMMM.js";
10
+
11
+ // src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts
12
+ import { KeyedResolvOnce, Result } from "@adviser/cement";
13
+ var DataSQLRecordBuilder = class _DataSQLRecordBuilder {
14
+ constructor(dataRecord) {
15
+ this.dataRecord = dataRecord;
16
+ }
17
+ static fromUploadParams(data, params) {
18
+ return new _DataSQLRecordBuilder({
19
+ name: params.name,
20
+ car: params.car,
21
+ data,
22
+ updated_at: /* @__PURE__ */ new Date()
23
+ });
24
+ }
25
+ build() {
26
+ return this.dataRecord;
27
+ }
28
+ };
29
+ var V0_18_0SQLiteDataStore = class {
30
+ constructor(dbConn) {
31
+ this.dbConn = dbConn;
32
+ this.logger = ensureLogger(dbConn.opts, "SQLiteDataStore");
33
+ this.logger.Debug().Msg("constructor");
34
+ }
35
+ table(url) {
36
+ return getStore(url, this.logger, (...x) => x.join("_"));
37
+ }
38
+ #createTable = new KeyedResolvOnce();
39
+ async createTable(url) {
40
+ return this.#createTable.get(this.table(url)).once(async (table) => {
41
+ await this.dbConn.client.prepare(
42
+ `CREATE TABLE IF NOT EXISTS ${table} (
43
+ name TEXT NOT NULL,
44
+ car TEXT PRIMARY KEY,
45
+ data BLOB NOT NULL,
46
+ updated_at TEXT NOT NULL)`
47
+ ).run();
48
+ });
49
+ }
50
+ #insertStmt = new KeyedResolvOnce();
51
+ async insertStmt(url) {
52
+ return this.#insertStmt.get(this.table(url)).once(async (table) => {
53
+ await this.createTable(url);
54
+ return this.dbConn.client.prepare(`
55
+ insert into ${table}
56
+ (name, car, data, updated_at) values (?, ?, ?, ?)
57
+ ON CONFLICT(car) DO UPDATE SET updated_at=?`);
58
+ });
59
+ }
60
+ #selectStmt = new KeyedResolvOnce();
61
+ async selectStmt(url) {
62
+ return this.#selectStmt.get(this.table(url)).once(async (table) => {
63
+ await this.createTable(url);
64
+ return this.dbConn.client.prepare(`select name, car, data, updated_at from ${table} where car = ?`);
65
+ });
66
+ }
67
+ #deleteStmt = new KeyedResolvOnce();
68
+ async deleteStmt(url) {
69
+ return this.#deleteStmt.get(this.table(url)).once(async (table) => {
70
+ await this.createTable(url);
71
+ return this.dbConn.client.prepare(`delete from ${table} where car = ?`);
72
+ });
73
+ }
74
+ async start(url) {
75
+ this.logger.Debug().Msg("start-connect");
76
+ await this.dbConn.connect();
77
+ this.logger.Debug().Msg("start-connected");
78
+ await ensureSQLiteVersion(url, this.dbConn);
79
+ this.logger.Debug().Msg("start-set-version");
80
+ }
81
+ async insert(url, ose) {
82
+ this.logger.Debug().Str("name", ose.name).Str("car", ose.car).Uint64("data-len", ose.data.length).Msg("insert");
83
+ const updated_at = ose.updated_at.toISOString();
84
+ return this.insertStmt(url).then((i) => i.run(ose.name, ose.car, Buffer.from(ose.data), updated_at, updated_at));
85
+ }
86
+ async select(url, car) {
87
+ this.logger.Debug().Str("car", car).Msg("select");
88
+ return (await this.selectStmt(url).then((i) => i.all(car))).map((irow) => {
89
+ const row = irow;
90
+ return {
91
+ name: row.name,
92
+ car: row.car,
93
+ data: Uint8Array.from(row.data),
94
+ updated_at: new Date(row.updated_at)
95
+ };
96
+ });
97
+ }
98
+ async delete(url, car) {
99
+ this.logger.Debug().Str("car", car).Msg("delete");
100
+ const ret = await this.deleteStmt(url).then((i) => i.run(car));
101
+ return ret;
102
+ }
103
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
104
+ async close(url) {
105
+ this.logger.Debug().Msg("close");
106
+ return Result.Ok(void 0);
107
+ }
108
+ async destroy(url) {
109
+ return exception2Result(async () => {
110
+ this.logger.Debug().Msg("destroy");
111
+ await this.createTable(url);
112
+ await this.dbConn.client.prepare(`delete from ${this.table(url)}`).run();
113
+ });
114
+ }
115
+ };
116
+ export {
117
+ DataSQLRecordBuilder,
118
+ V0_18_0SQLiteDataStore
119
+ };
120
+ //# sourceMappingURL=sqlite-data-store-YS4U7AQ4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/runtime/store-sql/v0.19-sqlite/sqlite-data-store.ts"],"sourcesContent":["import type { RunResult, Statement } from \"better-sqlite3\";\nimport { DBConnection, DataRecord, DataSQLStore } from \"../types.js\";\nimport { SQLiteConnection } from \"../sqlite-adapter-better-sqlite3.js\";\nimport { KeyedResolvOnce, Logger, Result } from \"@adviser/cement\";\nimport { UploadDataFnParams } from \"../../../blockstore/types.js\";\nimport { ensureSQLiteVersion } from \"./sqlite-ensure-version.js\";\nimport { ensureLogger, exception2Result, getStore } from \"../../../utils.js\";\n\nexport class DataSQLRecordBuilder {\n readonly dataRecord: DataRecord;\n constructor(dataRecord: DataRecord) {\n this.dataRecord = dataRecord;\n }\n\n static fromUploadParams(data: Uint8Array, params: UploadDataFnParams): DataSQLRecordBuilder {\n return new DataSQLRecordBuilder({\n name: params.name,\n car: params.car,\n data: data,\n updated_at: new Date(),\n });\n }\n\n build(): DataRecord {\n return this.dataRecord;\n }\n}\n\ninterface SQLiteDataRecord {\n name: string;\n car: string;\n data: Buffer;\n updated_at: string;\n}\n\nexport class V0_18_0SQLiteDataStore implements DataSQLStore {\n readonly dbConn: SQLiteConnection;\n readonly logger: Logger;\n constructor(dbConn: DBConnection) {\n this.dbConn = dbConn as SQLiteConnection;\n this.logger = ensureLogger(dbConn.opts, \"SQLiteDataStore\");\n this.logger.Debug().Msg(\"constructor\");\n }\n\n table(url: URL): string {\n return getStore(url, this.logger, (...x: string[]) => x.join(\"_\"));\n }\n\n readonly #createTable = new KeyedResolvOnce();\n async createTable(url: URL) {\n return this.#createTable.get(this.table(url)).once(async (table) => {\n await this.dbConn.client\n .prepare(\n `CREATE TABLE IF NOT EXISTS ${table} (\n name TEXT NOT NULL,\n car TEXT PRIMARY KEY,\n data BLOB NOT NULL,\n updated_at TEXT NOT NULL)`,\n )\n .run();\n });\n }\n\n readonly #insertStmt = new KeyedResolvOnce<Statement>();\n private async insertStmt(url: URL) {\n return this.#insertStmt.get(this.table(url)).once(async (table) => {\n await this.createTable(url);\n return this.dbConn.client.prepare(`\n insert into ${table}\n (name, car, data, updated_at) values (?, ?, ?, ?)\n ON CONFLICT(car) DO UPDATE SET updated_at=?`);\n });\n }\n\n readonly #selectStmt = new KeyedResolvOnce<Statement>();\n private async selectStmt(url: URL) {\n return this.#selectStmt.get(this.table(url)).once(async (table) => {\n await this.createTable(url);\n return this.dbConn.client.prepare(`select name, car, data, updated_at from ${table} where car = ?`);\n });\n }\n\n readonly #deleteStmt = new KeyedResolvOnce<Statement>();\n private async deleteStmt(url: URL) {\n return this.#deleteStmt.get(this.table(url)).once(async (table) => {\n await this.createTable(url);\n return this.dbConn.client.prepare(`delete from ${table} where car = ?`);\n });\n }\n\n async start(url: URL): Promise<void> {\n this.logger.Debug().Msg(\"start-connect\");\n await this.dbConn.connect();\n this.logger.Debug().Msg(\"start-connected\");\n await ensureSQLiteVersion(url, this.dbConn);\n this.logger.Debug().Msg(\"start-set-version\");\n }\n\n async insert(url: URL, ose: DataRecord): Promise<RunResult> {\n this.logger.Debug().Str(\"name\", ose.name).Str(\"car\", ose.car).Uint64(\"data-len\", ose.data.length).Msg(\"insert\");\n const updated_at = ose.updated_at.toISOString();\n return this.insertStmt(url).then((i) => i.run(ose.name, ose.car, Buffer.from(ose.data), updated_at, updated_at));\n }\n\n async select(url: URL, car: string): Promise<DataRecord[]> {\n this.logger.Debug().Str(\"car\", car).Msg(\"select\");\n return (await this.selectStmt(url).then((i) => i.all(car))).map((irow) => {\n const row = irow as SQLiteDataRecord;\n return {\n name: row.name,\n car: row.car,\n data: Uint8Array.from(row.data),\n updated_at: new Date(row.updated_at),\n };\n });\n }\n\n async delete(url: URL, car: string): Promise<RunResult> {\n this.logger.Debug().Str(\"car\", car).Msg(\"delete\");\n const ret = await this.deleteStmt(url).then((i) => i.run(car));\n // await this.select(car);\n return ret;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async close(url: URL): Promise<Result<void>> {\n this.logger.Debug().Msg(\"close\");\n return Result.Ok(undefined);\n // await this.dbConn.close();\n }\n\n async destroy(url: URL): Promise<Result<void>> {\n return exception2Result(async () => {\n this.logger.Debug().Msg(\"destroy\");\n await this.createTable(url);\n await this.dbConn.client.prepare(`delete from ${this.table(url)}`).run();\n });\n }\n}\n"],"mappings":";;;;;;;;;;;AAGA,SAAS,iBAAyB,cAAc;AAKzC,IAAM,uBAAN,MAAM,sBAAqB;AAAA,EAEhC,YAAY,YAAwB;AAClC,SAAK,aAAa;AAAA,EACpB;AAAA,EAEA,OAAO,iBAAiB,MAAkB,QAAkD;AAC1F,WAAO,IAAI,sBAAqB;AAAA,MAC9B,MAAM,OAAO;AAAA,MACb,KAAK,OAAO;AAAA,MACZ;AAAA,MACA,YAAY,oBAAI,KAAK;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EAEA,QAAoB;AAClB,WAAO,KAAK;AAAA,EACd;AACF;AASO,IAAM,yBAAN,MAAqD;AAAA,EAG1D,YAAY,QAAsB;AAChC,SAAK,SAAS;AACd,SAAK,SAAS,aAAa,OAAO,MAAM,iBAAiB;AACzD,SAAK,OAAO,MAAM,EAAE,IAAI,aAAa;AAAA,EACvC;AAAA,EAEA,MAAM,KAAkB;AACtB,WAAO,SAAS,KAAK,KAAK,QAAQ,IAAI,MAAgB,EAAE,KAAK,GAAG,CAAC;AAAA,EACnE;AAAA,EAES,eAAe,IAAI,gBAAgB;AAAA,EAC5C,MAAM,YAAY,KAAU;AAC1B,WAAO,KAAK,aAAa,IAAI,KAAK,MAAM,GAAG,CAAC,EAAE,KAAK,OAAO,UAAU;AAClE,YAAM,KAAK,OAAO,OACf;AAAA,QACC,8BAA8B,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,MAKrC,EACC,IAAI;AAAA,IACT,CAAC;AAAA,EACH;AAAA,EAES,cAAc,IAAI,gBAA2B;AAAA,EACtD,MAAc,WAAW,KAAU;AACjC,WAAO,KAAK,YAAY,IAAI,KAAK,MAAM,GAAG,CAAC,EAAE,KAAK,OAAO,UAAU;AACjE,YAAM,KAAK,YAAY,GAAG;AAC1B,aAAO,KAAK,OAAO,OAAO,QAAQ;AAAA,sBAClB,KAAK;AAAA;AAAA,sDAE2B;AAAA,IAClD,CAAC;AAAA,EACH;AAAA,EAES,cAAc,IAAI,gBAA2B;AAAA,EACtD,MAAc,WAAW,KAAU;AACjC,WAAO,KAAK,YAAY,IAAI,KAAK,MAAM,GAAG,CAAC,EAAE,KAAK,OAAO,UAAU;AACjE,YAAM,KAAK,YAAY,GAAG;AAC1B,aAAO,KAAK,OAAO,OAAO,QAAQ,2CAA2C,KAAK,gBAAgB;AAAA,IACpG,CAAC;AAAA,EACH;AAAA,EAES,cAAc,IAAI,gBAA2B;AAAA,EACtD,MAAc,WAAW,KAAU;AACjC,WAAO,KAAK,YAAY,IAAI,KAAK,MAAM,GAAG,CAAC,EAAE,KAAK,OAAO,UAAU;AACjE,YAAM,KAAK,YAAY,GAAG;AAC1B,aAAO,KAAK,OAAO,OAAO,QAAQ,eAAe,KAAK,gBAAgB;AAAA,IACxE,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,MAAM,KAAyB;AACnC,SAAK,OAAO,MAAM,EAAE,IAAI,eAAe;AACvC,UAAM,KAAK,OAAO,QAAQ;AAC1B,SAAK,OAAO,MAAM,EAAE,IAAI,iBAAiB;AACzC,UAAM,oBAAoB,KAAK,KAAK,MAAM;AAC1C,SAAK,OAAO,MAAM,EAAE,IAAI,mBAAmB;AAAA,EAC7C;AAAA,EAEA,MAAM,OAAO,KAAU,KAAqC;AAC1D,SAAK,OAAO,MAAM,EAAE,IAAI,QAAQ,IAAI,IAAI,EAAE,IAAI,OAAO,IAAI,GAAG,EAAE,OAAO,YAAY,IAAI,KAAK,MAAM,EAAE,IAAI,QAAQ;AAC9G,UAAM,aAAa,IAAI,WAAW,YAAY;AAC9C,WAAO,KAAK,WAAW,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,IAAI,MAAM,IAAI,KAAK,OAAO,KAAK,IAAI,IAAI,GAAG,YAAY,UAAU,CAAC;AAAA,EACjH;AAAA,EAEA,MAAM,OAAO,KAAU,KAAoC;AACzD,SAAK,OAAO,MAAM,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,QAAQ;AAChD,YAAQ,MAAM,KAAK,WAAW,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS;AACxE,YAAM,MAAM;AACZ,aAAO;AAAA,QACL,MAAM,IAAI;AAAA,QACV,KAAK,IAAI;AAAA,QACT,MAAM,WAAW,KAAK,IAAI,IAAI;AAAA,QAC9B,YAAY,IAAI,KAAK,IAAI,UAAU;AAAA,MACrC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,OAAO,KAAU,KAAiC;AACtD,SAAK,OAAO,MAAM,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,QAAQ;AAChD,UAAM,MAAM,MAAM,KAAK,WAAW,GAAG,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC;AAE7D,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,MAAM,MAAM,KAAiC;AAC3C,SAAK,OAAO,MAAM,EAAE,IAAI,OAAO;AAC/B,WAAO,OAAO,GAAG,MAAS;AAAA,EAE5B;AAAA,EAEA,MAAM,QAAQ,KAAiC;AAC7C,WAAO,iBAAiB,YAAY;AAClC,WAAK,OAAO,MAAM,EAAE,IAAI,SAAS;AACjC,YAAM,KAAK,YAAY,GAAG;AAC1B,YAAM,KAAK,OAAO,OAAO,QAAQ,eAAe,KAAK,MAAM,GAAG,CAAC,EAAE,EAAE,IAAI;AAAA,IACzE,CAAC;AAAA,EACH;AACF;","names":[]}