@fireproof/core 0.0.0-dev → 0.0.0-smoke-1b31059-1752074105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/metafile-cjs.json DELETED
@@ -1 +0,0 @@
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":85,"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":333110},"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":65}},"bytes":158623}}}
package/metafile-esm.json DELETED
@@ -1 +0,0 @@
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":85,"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":220432},"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":65}},"bytes":96937},"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}}}
@@ -1,29 +0,0 @@
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
@@ -1 +0,0 @@
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":[]}
@@ -1,120 +0,0 @@
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
@@ -1 +0,0 @@
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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AS;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":[]}
@@ -1,137 +0,0 @@
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-meta-store.ts
12
- import { KeyedResolvOnce, Result } from "@adviser/cement";
13
- var MetaSQLRecordBuilder = class _MetaSQLRecordBuilder {
14
- constructor(record, textEncoder) {
15
- this.record = record;
16
- this.textEncoder = textEncoder;
17
- }
18
- static fromUploadMetaFnParams(data, params, textEncoder) {
19
- return new _MetaSQLRecordBuilder(
20
- {
21
- name: params.name,
22
- branch: params.branch,
23
- meta: data,
24
- updated_at: /* @__PURE__ */ new Date()
25
- },
26
- textEncoder
27
- );
28
- }
29
- static fromBytes(str, name, branch, textEncoder) {
30
- return new _MetaSQLRecordBuilder(
31
- {
32
- name,
33
- branch,
34
- meta: textEncoder.encode(str),
35
- updated_at: /* @__PURE__ */ new Date()
36
- },
37
- textEncoder
38
- );
39
- }
40
- build() {
41
- return this.record;
42
- }
43
- };
44
- var V0_18_0SQLiteMetaStore = class {
45
- constructor(dbConn) {
46
- this.dbConn = dbConn;
47
- this.logger = ensureLogger(dbConn.opts, "SQLiteMetaStore");
48
- this.logger.Debug().Msg("constructor");
49
- }
50
- async start(url) {
51
- this.logger.Debug().Url(url).Msg("starting");
52
- await this.dbConn.connect();
53
- await ensureSQLiteVersion(url, this.dbConn);
54
- this.logger.Debug().Url(url).Msg("started");
55
- }
56
- table(url) {
57
- return getStore(url, this.logger, (...x) => x.join("_"));
58
- }
59
- #createTable = new KeyedResolvOnce();
60
- async createTable(url) {
61
- return this.#createTable.get(this.table(url)).once(async (table) => {
62
- await this.dbConn.client.prepare(
63
- `CREATE TABLE IF NOT EXISTS ${table} (
64
- name TEXT not null,
65
- branch TEXT not null,
66
- meta BLOB NOT NULL,
67
- updated_at TEXT NOT NULL,
68
- PRIMARY KEY (name, branch)
69
- )`
70
- ).run();
71
- });
72
- }
73
- #insertStmt = new KeyedResolvOnce();
74
- async insertStmt(url) {
75
- return this.#insertStmt.get(this.table(url)).once(async (table) => {
76
- await this.createTable(url);
77
- return this.dbConn.client.prepare(`insert into ${table}
78
- (name, branch, meta, updated_at)
79
- values (?, ?, ?, ?)
80
- ON CONFLICT(name, branch) DO UPDATE SET meta=?, updated_at=?
81
- `);
82
- });
83
- }
84
- #selectStmt = new KeyedResolvOnce();
85
- async selectStmt(url) {
86
- return this.#selectStmt.get(this.table(url)).once(async (table) => {
87
- await this.createTable(url);
88
- return this.dbConn.client.prepare(`select name, branch, meta, updated_at from ${table} where name = ? and branch = ?`);
89
- });
90
- }
91
- #deleteStmt = new KeyedResolvOnce();
92
- async deleteStmt(url) {
93
- return this.#deleteStmt.get(this.table(url)).once(async (table) => {
94
- await this.createTable(url);
95
- return this.dbConn.client.prepare(`delete from ${table} where name = ? and branch = ?`);
96
- });
97
- }
98
- async insert(url, ose) {
99
- this.logger.Debug().Str("name", ose.name).Str("branch", ose.branch).Uint64("data-len", ose.meta.length).Msg("insert");
100
- const bufMeta = Buffer.from(ose.meta);
101
- return this.insertStmt(url).then(
102
- (i) => i.run(ose.name, ose.branch, bufMeta, ose.updated_at.toISOString(), bufMeta, ose.updated_at.toISOString())
103
- );
104
- }
105
- async select(url, key) {
106
- this.logger.Debug().Str("name", key.name).Str("branch", key.branch).Msg("select");
107
- return (await this.selectStmt(url).then((i) => i.all(key.name, key.branch))).map((irow) => {
108
- const row = irow;
109
- return {
110
- name: row.name,
111
- branch: row.branch,
112
- meta: Uint8Array.from(row.meta),
113
- updated_at: new Date(row.updated_at)
114
- };
115
- });
116
- }
117
- async delete(url, key) {
118
- this.logger.Debug().Str("name", key.name).Str("branch", key.branch).Msg("delete");
119
- return this.deleteStmt(url).then((i) => i.run(key.name, key.branch));
120
- }
121
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
122
- async close(url) {
123
- this.logger.Debug().Msg("close");
124
- return Result.Ok(void 0);
125
- }
126
- async destroy(url) {
127
- return exception2Result(async () => {
128
- this.logger.Debug().Msg("destroy");
129
- await this.dbConn.client.prepare(`delete from ${this.table(url)}`).run();
130
- });
131
- }
132
- };
133
- export {
134
- MetaSQLRecordBuilder,
135
- V0_18_0SQLiteMetaStore
136
- };
137
- //# sourceMappingURL=sqlite-meta-store-FJZSZG4R.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/runtime/store-sql/v0.19-sqlite/sqlite-meta-store.ts"],"sourcesContent":["import type { RunResult, Statement } from \"better-sqlite3\";\nimport { DBConnection, MetaRecord, MetaRecordKey, MetaSQLStore } from \"../types.js\";\nimport { SQLiteConnection } from \"../sqlite-adapter-better-sqlite3.js\";\nimport { KeyedResolvOnce, Logger, Result } from \"@adviser/cement\";\nimport { UploadMetaFnParams } from \"../../../blockstore/types.js\";\nimport { ensureSQLiteVersion } from \"./sqlite-ensure-version.js\";\nimport { ensureLogger, exception2Result, getStore } from \"../../../utils.js\";\n\nexport class MetaSQLRecordBuilder {\n readonly record: MetaRecord;\n readonly textEncoder: TextEncoder;\n\n constructor(record: MetaRecord, textEncoder: TextEncoder) {\n this.record = record;\n this.textEncoder = textEncoder;\n }\n\n static fromUploadMetaFnParams(data: Uint8Array, params: UploadMetaFnParams, textEncoder: TextEncoder): MetaSQLRecordBuilder {\n return new MetaSQLRecordBuilder(\n {\n name: params.name,\n branch: params.branch,\n meta: data,\n updated_at: new Date(),\n },\n textEncoder,\n );\n }\n\n static fromBytes(str: string, name: string, branch: string, textEncoder: TextEncoder): MetaSQLRecordBuilder {\n return new MetaSQLRecordBuilder(\n {\n name: name,\n branch: branch,\n meta: textEncoder.encode(str),\n updated_at: new Date(),\n },\n textEncoder,\n );\n }\n\n build(): MetaRecord {\n return this.record;\n }\n}\n\ninterface SQLiteMetaRecord {\n name: string;\n branch: string;\n meta: Buffer;\n updated_at: string;\n}\n\nexport class V0_18_0SQLiteMetaStore implements MetaSQLStore {\n readonly dbConn: SQLiteConnection;\n readonly logger: Logger;\n constructor(dbConn: DBConnection) {\n this.dbConn = dbConn as SQLiteConnection;\n this.logger = ensureLogger(dbConn.opts, \"SQLiteMetaStore\");\n this.logger.Debug().Msg(\"constructor\");\n }\n async start(url: URL): Promise<void> {\n this.logger.Debug().Url(url).Msg(\"starting\");\n await this.dbConn.connect();\n await ensureSQLiteVersion(url, this.dbConn);\n this.logger.Debug().Url(url).Msg(\"started\");\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 branch TEXT not null,\n meta BLOB NOT NULL,\n updated_at TEXT NOT NULL,\n PRIMARY KEY (name, branch)\n )`,\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(`insert into ${table}\n (name, branch, meta, updated_at)\n values (?, ?, ?, ?)\n ON CONFLICT(name, branch) DO UPDATE SET meta=?, updated_at=?\n `);\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, branch, meta, updated_at from ${table} where name = ? and branch = ?`);\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 name = ? and branch = ?`);\n });\n }\n\n async insert(url: URL, ose: MetaRecord): Promise<RunResult> {\n this.logger.Debug().Str(\"name\", ose.name).Str(\"branch\", ose.branch).Uint64(\"data-len\", ose.meta.length).Msg(\"insert\");\n const bufMeta = Buffer.from(ose.meta);\n return this.insertStmt(url).then((i) =>\n i.run(ose.name, ose.branch, bufMeta, ose.updated_at.toISOString(), bufMeta, ose.updated_at.toISOString()),\n );\n }\n async select(url: URL, key: MetaRecordKey): Promise<MetaRecord[]> {\n this.logger.Debug().Str(\"name\", key.name).Str(\"branch\", key.branch).Msg(\"select\");\n return (await this.selectStmt(url).then((i) => i.all(key.name, key.branch))).map((irow) => {\n const row = irow as SQLiteMetaRecord;\n return {\n name: row.name,\n branch: row.branch,\n meta: Uint8Array.from(row.meta),\n updated_at: new Date(row.updated_at),\n };\n });\n }\n\n async delete(url: URL, key: MetaRecordKey): Promise<RunResult> {\n this.logger.Debug().Str(\"name\", key.name).Str(\"branch\", key.branch).Msg(\"delete\");\n return this.deleteStmt(url).then((i) => i.run(key.name, key.branch));\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 // await this.dbConn.close();\n return Result.Ok(undefined);\n }\n async destroy(url: URL): Promise<Result<void>> {\n return exception2Result(async () => {\n this.logger.Debug().Msg(\"destroy\");\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,EAIhC,YAAY,QAAoB,aAA0B;AACxD,SAAK,SAAS;AACd,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,OAAO,uBAAuB,MAAkB,QAA4B,aAAgD;AAC1H,WAAO,IAAI;AAAA,MACT;AAAA,QACE,MAAM,OAAO;AAAA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