@fireproof/core 0.20.0-dev-preview-18 → 0.20.0-dev-preview-20
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +124 -147
- package/index.cjs.map +1 -1
- package/index.d.cts +102 -97
- package/index.d.ts +102 -97
- package/index.js +124 -147
- package/index.js.map +1 -1
- package/{indexdb → indexeddb}/index.cjs +16 -16
- package/indexeddb/index.cjs.map +1 -0
- package/{indexdb → indexeddb}/index.d.cts +4 -4
- package/{indexdb → indexeddb}/index.d.ts +4 -4
- package/{indexdb → indexeddb}/index.js +15 -15
- package/indexeddb/index.js.map +1 -0
- package/indexeddb/metafile-cjs.json +1 -0
- package/indexeddb/metafile-esm.json +1 -0
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/package.json +10 -10
- package/react/index.d.cts +1 -1
- package/react/index.d.ts +1 -1
- package/tests/blockstore/interceptor-gateway.test.ts +17 -17
- package/tests/blockstore/{keyed-crypto-indexdb-file.test.ts → keyed-crypto-indexeddb-file.test.ts} +13 -12
- package/tests/blockstore/keyed-crypto.test.ts +20 -19
- package/tests/blockstore/store.test.ts +19 -11
- package/tests/fireproof/all-gateway.test.ts +67 -60
- package/tests/gateway/{indexdb → indexeddb}/loader-config.test.ts +10 -10
- package/tests/helpers.ts +1 -1
- package/indexdb/index.cjs.map +0 -1
- package/indexdb/index.js.map +0 -1
- package/indexdb/metafile-cjs.json +0 -1
- package/indexdb/metafile-esm.json +0 -1
@@ -17,20 +17,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
|
20
|
-
// src/runtime/gateways/
|
20
|
+
// src/runtime/gateways/indexeddb/index.ts
|
21
21
|
var index_exports = {};
|
22
22
|
__export(index_exports, {
|
23
|
-
GatewayImpl: () =>
|
24
|
-
KeyBagProviderImpl: () =>
|
25
|
-
|
23
|
+
GatewayImpl: () => IndexedDBGateway,
|
24
|
+
KeyBagProviderImpl: () => KeyBagProviderIndexedDB,
|
25
|
+
KeyBagProviderIndexedDB: () => KeyBagProviderIndexedDB
|
26
26
|
});
|
27
27
|
module.exports = __toCommonJS(index_exports);
|
28
28
|
|
29
|
-
// src/runtime/gateways/
|
29
|
+
// src/runtime/gateways/indexeddb/key-bag-indexeddb.ts
|
30
30
|
var import_idb = require("idb");
|
31
31
|
var import_cement = require("@adviser/cement");
|
32
32
|
var import_core = require("@fireproof/core");
|
33
|
-
var
|
33
|
+
var KeyBagProviderIndexedDB = class {
|
34
34
|
constructor(url, sthis) {
|
35
35
|
this._db = new import_cement.ResolveOnce();
|
36
36
|
this.sthis = sthis;
|
@@ -69,19 +69,19 @@ var KeyBagProviderIndexDB = class {
|
|
69
69
|
}
|
70
70
|
};
|
71
71
|
|
72
|
-
// src/runtime/gateways/
|
72
|
+
// src/runtime/gateways/indexeddb/gateway-impl.ts
|
73
73
|
var import_idb2 = require("idb");
|
74
74
|
var import_cement2 = require("@adviser/cement");
|
75
75
|
|
76
|
-
// src/runtime/gateways/
|
77
|
-
var
|
76
|
+
// src/runtime/gateways/indexeddb-version.ts
|
77
|
+
var INDEXEDDB_VERSION = "v0.19-indexeddb";
|
78
78
|
|
79
|
-
// src/runtime/gateways/
|
79
|
+
// src/runtime/gateways/indexeddb/gateway-impl.ts
|
80
80
|
var import_core2 = require("@fireproof/core");
|
81
81
|
function ensureVersion(url) {
|
82
|
-
return url.build().defParam(import_core2.PARAM.VERSION,
|
82
|
+
return url.build().defParam(import_core2.PARAM.VERSION, INDEXEDDB_VERSION).URI();
|
83
83
|
}
|
84
|
-
var
|
84
|
+
var onceIndexedDB = new import_cement2.KeyedResolvOnce();
|
85
85
|
function sanitzeKey(key) {
|
86
86
|
if (key.length === 1) {
|
87
87
|
key = key[0];
|
@@ -89,8 +89,8 @@ function sanitzeKey(key) {
|
|
89
89
|
return key;
|
90
90
|
}
|
91
91
|
async function connectIdb(url, sthis) {
|
92
|
-
const dbName =
|
93
|
-
const once = await
|
92
|
+
const dbName = getIndexedDBName(url, sthis);
|
93
|
+
const once = await onceIndexedDB.get(dbName.fullDb).once(async () => {
|
94
94
|
const db = await (0, import_idb2.openDB)(dbName.fullDb, 1, {
|
95
95
|
upgrade(db2) {
|
96
96
|
["version", "data", "wal", "meta", "idx.data", "idx.wal", "idx.meta"].map((store) => {
|
@@ -117,7 +117,7 @@ async function connectIdb(url, sthis) {
|
|
117
117
|
function joinDBName(...names) {
|
118
118
|
return names.map((i) => i.replace(/^[^a-zA-Z0-9]+/g, "").replace(/[^a-zA-Z0-9-]+/g, "_")).filter((i) => i.length).join(".");
|
119
119
|
}
|
120
|
-
function
|
120
|
+
function getIndexedDBName(iurl, sthis) {
|
121
121
|
const url = ensureVersion(iurl);
|
122
122
|
const fullDb = url.pathname.replace(/^\/+/, "").replace(/\?.*$/, "");
|
123
123
|
const dbName = url.getParam(import_core2.PARAM.NAME);
|
@@ -132,7 +132,7 @@ function getIndexDBName(iurl, sthis) {
|
|
132
132
|
dbName
|
133
133
|
};
|
134
134
|
}
|
135
|
-
var
|
135
|
+
var IndexedDBGateway = class {
|
136
136
|
constructor() {
|
137
137
|
this._db = {};
|
138
138
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/runtime/gateways/indexeddb/index.ts","../../../src/runtime/gateways/indexeddb/key-bag-indexeddb.ts","../../../src/runtime/gateways/indexeddb/gateway-impl.ts","../../../src/runtime/gateways/indexeddb-version.ts"],"sourcesContent":["// export * from \"./gateway-impl.js\";\n\nexport * from \"./key-bag-indexeddb.js\";\nimport { KeyBagProviderIndexedDB as KeyBagProviderImpl } from \"./key-bag-indexeddb.js\";\n\nexport { KeyBagProviderImpl };\n\nimport { IndexedDBGateway as GatewayImpl } from \"./gateway-impl.js\";\nexport { GatewayImpl };\n","import { IDBPDatabase, openDB } from \"idb\";\nimport { Logger, ResolveOnce, URI } from \"@adviser/cement\";\nimport { type SuperThis, rt } from \"@fireproof/core\";\n\nexport class KeyBagProviderIndexedDB implements rt.kb.KeyBagProvider {\n readonly _db: ResolveOnce<IDBPDatabase<unknown>> = new ResolveOnce<IDBPDatabase<unknown>>();\n\n readonly dbName: string;\n readonly url: URI;\n readonly logger: Logger;\n readonly sthis: SuperThis;\n constructor(url: URI, sthis: SuperThis) {\n this.sthis = sthis;\n this.logger = sthis.logger;\n this.url = url;\n this.dbName = rt.getPath(this.url, this.sthis);\n }\n\n async _prepare(): Promise<IDBPDatabase<unknown>> {\n return this._db.once(async () => {\n return await openDB(this.dbName, 1, {\n upgrade(db) {\n // console.log('upgrade:', dbName);\n [\"bag\"].map((store) => {\n db.createObjectStore(store, {\n autoIncrement: false,\n });\n });\n },\n });\n });\n }\n\n async get(id: string): Promise<rt.kb.KeyItem | undefined> {\n const db = await this._prepare();\n const tx = db.transaction([\"bag\"], \"readonly\");\n const keyItem = await tx.objectStore(\"bag\").get(id);\n await tx.done;\n if (!keyItem) {\n return undefined;\n }\n return keyItem;\n }\n\n async set(id: string, item: rt.kb.KeyItem): Promise<void> {\n const db = await this._prepare();\n const tx = db.transaction([\"bag\"], \"readwrite\");\n await tx.objectStore(\"bag\").put(item, id);\n await tx.done;\n }\n}\n","import { openDB, IDBPDatabase } from \"idb\";\nimport { exception2Result, KeyedResolvOnce, Result, URI } from \"@adviser/cement\";\n\nimport { INDEXEDDB_VERSION } from \"../indexeddb-version.js\";\nimport { NotFoundError, PARAM, exceptionWrapper, getKey, getStore, type SuperThis, bs } from \"@fireproof/core\";\n\nfunction ensureVersion(url: URI): URI {\n return url.build().defParam(PARAM.VERSION, INDEXEDDB_VERSION).URI();\n}\n\ninterface IDBConn {\n readonly db: IDBPDatabase<unknown>;\n readonly dbName: DbName;\n readonly version: string;\n readonly url: URI;\n}\nconst onceIndexedDB = new KeyedResolvOnce<IDBConn>();\n\nfunction sanitzeKey(key: string | string[]): string | string[] {\n if (key.length === 1) {\n key = key[0];\n }\n return key;\n}\n\nasync function connectIdb(url: URI, sthis: SuperThis): Promise<IDBConn> {\n const dbName = getIndexedDBName(url, sthis);\n const once = await onceIndexedDB.get(dbName.fullDb).once(async () => {\n const db = await openDB(dbName.fullDb, 1, {\n upgrade(db) {\n [\"version\", \"data\", \"wal\", \"meta\", \"idx.data\", \"idx.wal\", \"idx.meta\"].map((store) => {\n db.createObjectStore(store, {\n autoIncrement: false,\n });\n });\n },\n });\n const found = await db.get(\"version\", \"version\");\n const version = ensureVersion(url).getParam(PARAM.VERSION) as string;\n if (!found) {\n await db.put(\"version\", { version }, \"version\");\n } else if (found.version !== version) {\n sthis.logger.Warn().Url(url).Str(\"version\", version).Str(\"found\", found.version).Msg(\"version mismatch\");\n }\n return { db, dbName, version, url };\n });\n return {\n ...once,\n url: url.build().setParam(PARAM.VERSION, once.version).URI(),\n };\n}\n\nexport interface DbName {\n readonly fullDb: string;\n readonly objStore: string;\n readonly connectionKey: string;\n readonly dbName: string;\n}\n\nfunction joinDBName(...names: string[]): string {\n return names\n .map((i) => i.replace(/^[^a-zA-Z0-9]+/g, \"\").replace(/[^a-zA-Z0-9-]+/g, \"_\"))\n .filter((i) => i.length)\n .join(\".\");\n}\n\nexport function getIndexedDBName(iurl: URI, sthis: SuperThis): DbName {\n const url = ensureVersion(iurl);\n const fullDb = url.pathname.replace(/^\\/+/, \"\").replace(/\\?.*$/, \"\"); // cut leading slashes\n const dbName = url.getParam(PARAM.NAME);\n if (!dbName) throw sthis.logger.Error().Str(\"url\", url.toString()).Msg(`name not found`).AsError();\n const result = joinDBName(fullDb, dbName);\n const objStore = getStore(url, sthis, joinDBName).name;\n const connectionKey = [result, objStore].join(\":\");\n return {\n fullDb: result,\n objStore,\n connectionKey,\n dbName,\n };\n}\n\nexport class IndexedDBGateway implements bs.Gateway {\n _db: IDBPDatabase<unknown> = {} as IDBPDatabase<unknown>;\n\n async start(baseURL: URI, sthis: SuperThis): Promise<Result<URI>> {\n return exception2Result(async () => {\n await sthis.start();\n sthis.logger.Debug().Url(baseURL).Msg(\"starting\");\n const ic = await connectIdb(baseURL, sthis);\n this._db = ic.db;\n sthis.logger.Debug().Url(ic.url).Msg(\"started\");\n return ic.url;\n });\n }\n async close(): Promise<Result<void>> {\n return Result.Ok(undefined);\n }\n async destroy(baseUrl: URI, sthis: SuperThis): Promise<Result<void>> {\n return exception2Result(async () => {\n // return deleteDB(getIndexedDBName(this.url).fullDb);\n const type = getStore(baseUrl, sthis, joinDBName).name;\n // console.log(\"IndexedDBDataStore:destroy\", type);\n const idb = this._db;\n const trans = idb.transaction(type, \"readwrite\");\n const object_store = trans.objectStore(type);\n const toDelete = [];\n for (let cursor = await object_store.openCursor(); cursor; cursor = await cursor.continue()) {\n toDelete.push(cursor.primaryKey);\n }\n for (const key of toDelete) {\n await trans.db.delete(type, key);\n }\n await trans.done;\n });\n }\n\n buildUrl(baseUrl: URI, key: string): Promise<Result<URI>> {\n return Promise.resolve(Result.Ok(baseUrl.build().setParam(PARAM.KEY, key).URI()));\n }\n\n async get(url: URI, sthis: SuperThis): Promise<bs.GetResult> {\n return exceptionWrapper(async () => {\n const key = getKey(url, sthis.logger);\n const store = getStore(url, sthis, joinDBName).name;\n sthis.logger.Debug().Url(url).Str(\"key\", key).Str(\"store\", store).Msg(\"getting\");\n const tx = this._db.transaction([store], \"readonly\");\n const bytes = await tx.objectStore(store).get(sanitzeKey(key));\n await tx.done;\n if (!bytes) {\n return Result.Err(new NotFoundError(`missing ${key}`));\n }\n return Promise.resolve(Result.Ok(bytes));\n });\n }\n async put(url: URI, bytes: Uint8Array, sthis: SuperThis): Promise<Result<void>> {\n return exception2Result(async () => {\n const key = getKey(url, sthis.logger);\n const store = getStore(url, sthis, joinDBName).name;\n sthis.logger.Debug().Url(url).Str(\"key\", key).Str(\"store\", store).Msg(\"putting\");\n const tx = this._db.transaction([store], \"readwrite\");\n await tx.objectStore(store).put(bytes, sanitzeKey(key));\n await tx.done;\n });\n }\n async delete(url: URI, sthis: SuperThis) {\n return exception2Result(async () => {\n const key = getKey(url, sthis.logger);\n const store = getStore(url, sthis, joinDBName).name;\n sthis.logger.Debug().Url(url).Str(\"key\", key).Str(\"store\", store).Msg(\"deleting\");\n const tx = this._db.transaction([store], \"readwrite\");\n await tx.objectStore(store).delete(sanitzeKey(key));\n await tx.done;\n return Result.Ok(undefined);\n });\n }\n\n async getPlain(url: URI, key: string, sthis: SuperThis): Promise<Result<Uint8Array>> {\n const ic = await connectIdb(url, sthis);\n const store = getStore(ic.url, sthis, joinDBName).name;\n sthis.logger.Debug().Str(\"key\", key).Str(\"store\", store).Msg(\"getting\");\n let bytes = await ic.db.get(store, sanitzeKey(key));\n sthis.logger.Debug().Str(\"key\", key).Str(\"store\", store).Int(\"len\", bytes.length).Msg(\"got\");\n if (typeof bytes === \"string\") {\n bytes = sthis.txt.encode(bytes);\n }\n return Result.Ok(bytes as Uint8Array);\n }\n}\n","export const INDEXEDDB_VERSION = \"v0.19-indexeddb\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,iBAAqC;AACrC,oBAAyC;AACzC,kBAAmC;AAE5B,IAAM,0BAAN,MAA8D;AAAA,EAOnE,YAAY,KAAU,OAAkB;AANxC,SAAS,MAA0C,IAAI,0BAAmC;AAOxF,SAAK,QAAQ;AACb,SAAK,SAAS,MAAM;AACpB,SAAK,MAAM;AACX,SAAK,SAAS,eAAG,QAAQ,KAAK,KAAK,KAAK,KAAK;AAAA,EAC/C;AAAA,EAEA,MAAM,WAA2C;AAC/C,WAAO,KAAK,IAAI,KAAK,YAAY;AAC/B,aAAO,UAAM,mBAAO,KAAK,QAAQ,GAAG;AAAA,QAClC,QAAQ,IAAI;AAEV,WAAC,KAAK,EAAE,IAAI,CAAC,UAAU;AACrB,eAAG,kBAAkB,OAAO;AAAA,cAC1B,eAAe;AAAA,YACjB,CAAC;AAAA,UACH,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,IAAI,IAAgD;AACx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AAG,YAAY,KAAK,EAAE,OAAO,WAAW,GAAG,CAAC;AAClD,YAAM,GAAG;AACT,aAAO,sBAAO,GAAG,MAAS;AAAA,IAC5B,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,SAAS,KAAU,KAAa,OAA+C;AACnF,UAAM,KAAK,MAAM,WAAW,KAAK,KAAK;AACtC,UAAM,YAAQ,uBAAS,GAAG,KAAK,OAAO,UAAU,EAAE;AAClD,UAAM,OAAO,MAAM,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,SAAS,KAAK,EAAE,IAAI,SAAS;AACtE,QAAI,QAAQ,MAAM,GAAG,GAAG,IAAI,OAAO,WAAW,GAAG,CAAC;AAClD,UAAM,OAAO,MAAM,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,SAAS,KAAK,EAAE,IAAI,OAAO,MAAM,MAAM,EAAE,IAAI,KAAK;AAC3F,QAAI,OAAO,UAAU,UAAU;AAC7B,cAAQ,MAAM,IAAI,OAAO,KAAK;AAAA,IAChC;AACA,WAAO,sBAAO,GAAG,KAAmB;AAAA,EACtC;AACF;","names":["import_idb","import_cement","import_core","db"]}
|
@@ -2,7 +2,7 @@ import { IDBPDatabase } from 'idb';
|
|
2
2
|
import { ResolveOnce, URI, Logger, Result } from '@adviser/cement';
|
3
3
|
import { rt, SuperThis, bs } from '@fireproof/core';
|
4
4
|
|
5
|
-
declare class
|
5
|
+
declare class KeyBagProviderIndexedDB implements rt.kb.KeyBagProvider {
|
6
6
|
readonly _db: ResolveOnce<IDBPDatabase<unknown>>;
|
7
7
|
readonly dbName: string;
|
8
8
|
readonly url: URI;
|
@@ -14,7 +14,7 @@ declare class KeyBagProviderIndexDB implements rt.kb.KeyBagProvider {
|
|
14
14
|
set(id: string, item: rt.kb.KeyItem): Promise<void>;
|
15
15
|
}
|
16
16
|
|
17
|
-
declare class
|
17
|
+
declare class IndexedDBGateway implements bs.Gateway {
|
18
18
|
_db: IDBPDatabase<unknown>;
|
19
19
|
start(baseURL: URI, sthis: SuperThis): Promise<Result<URI>>;
|
20
20
|
close(): Promise<Result<void>>;
|
@@ -26,5 +26,5 @@ declare class IndexDBGateway implements bs.Gateway {
|
|
26
26
|
getPlain(url: URI, key: string, sthis: SuperThis): Promise<Result<Uint8Array>>;
|
27
27
|
}
|
28
28
|
|
29
|
-
export {
|
30
|
-
declare module '@fireproof/core/
|
29
|
+
export { IndexedDBGateway as GatewayImpl, KeyBagProviderIndexedDB as KeyBagProviderImpl, KeyBagProviderIndexedDB };
|
30
|
+
declare module '@fireproof/core/indexeddb'
|
@@ -2,7 +2,7 @@ import { IDBPDatabase } from 'idb';
|
|
2
2
|
import { ResolveOnce, URI, Logger, Result } from '@adviser/cement';
|
3
3
|
import { rt, SuperThis, bs } from '@fireproof/core';
|
4
4
|
|
5
|
-
declare class
|
5
|
+
declare class KeyBagProviderIndexedDB implements rt.kb.KeyBagProvider {
|
6
6
|
readonly _db: ResolveOnce<IDBPDatabase<unknown>>;
|
7
7
|
readonly dbName: string;
|
8
8
|
readonly url: URI;
|
@@ -14,7 +14,7 @@ declare class KeyBagProviderIndexDB implements rt.kb.KeyBagProvider {
|
|
14
14
|
set(id: string, item: rt.kb.KeyItem): Promise<void>;
|
15
15
|
}
|
16
16
|
|
17
|
-
declare class
|
17
|
+
declare class IndexedDBGateway implements bs.Gateway {
|
18
18
|
_db: IDBPDatabase<unknown>;
|
19
19
|
start(baseURL: URI, sthis: SuperThis): Promise<Result<URI>>;
|
20
20
|
close(): Promise<Result<void>>;
|
@@ -26,5 +26,5 @@ declare class IndexDBGateway implements bs.Gateway {
|
|
26
26
|
getPlain(url: URI, key: string, sthis: SuperThis): Promise<Result<Uint8Array>>;
|
27
27
|
}
|
28
28
|
|
29
|
-
export {
|
30
|
-
declare module '@fireproof/core/
|
29
|
+
export { IndexedDBGateway as GatewayImpl, KeyBagProviderIndexedDB as KeyBagProviderImpl, KeyBagProviderIndexedDB };
|
30
|
+
declare module '@fireproof/core/indexeddb'
|
@@ -1,8 +1,8 @@
|
|
1
|
-
// src/runtime/gateways/
|
1
|
+
// src/runtime/gateways/indexeddb/key-bag-indexeddb.ts
|
2
2
|
import { openDB } from "idb";
|
3
3
|
import { ResolveOnce } from "@adviser/cement";
|
4
4
|
import { rt } from "@fireproof/core";
|
5
|
-
var
|
5
|
+
var KeyBagProviderIndexedDB = class {
|
6
6
|
constructor(url, sthis) {
|
7
7
|
this._db = new ResolveOnce();
|
8
8
|
this.sthis = sthis;
|
@@ -41,19 +41,19 @@ var KeyBagProviderIndexDB = class {
|
|
41
41
|
}
|
42
42
|
};
|
43
43
|
|
44
|
-
// src/runtime/gateways/
|
44
|
+
// src/runtime/gateways/indexeddb/gateway-impl.ts
|
45
45
|
import { openDB as openDB2 } from "idb";
|
46
46
|
import { exception2Result, KeyedResolvOnce, Result } from "@adviser/cement";
|
47
47
|
|
48
|
-
// src/runtime/gateways/
|
49
|
-
var
|
48
|
+
// src/runtime/gateways/indexeddb-version.ts
|
49
|
+
var INDEXEDDB_VERSION = "v0.19-indexeddb";
|
50
50
|
|
51
|
-
// src/runtime/gateways/
|
51
|
+
// src/runtime/gateways/indexeddb/gateway-impl.ts
|
52
52
|
import { NotFoundError, PARAM, exceptionWrapper, getKey, getStore } from "@fireproof/core";
|
53
53
|
function ensureVersion(url) {
|
54
|
-
return url.build().defParam(PARAM.VERSION,
|
54
|
+
return url.build().defParam(PARAM.VERSION, INDEXEDDB_VERSION).URI();
|
55
55
|
}
|
56
|
-
var
|
56
|
+
var onceIndexedDB = new KeyedResolvOnce();
|
57
57
|
function sanitzeKey(key) {
|
58
58
|
if (key.length === 1) {
|
59
59
|
key = key[0];
|
@@ -61,8 +61,8 @@ function sanitzeKey(key) {
|
|
61
61
|
return key;
|
62
62
|
}
|
63
63
|
async function connectIdb(url, sthis) {
|
64
|
-
const dbName =
|
65
|
-
const once = await
|
64
|
+
const dbName = getIndexedDBName(url, sthis);
|
65
|
+
const once = await onceIndexedDB.get(dbName.fullDb).once(async () => {
|
66
66
|
const db = await openDB2(dbName.fullDb, 1, {
|
67
67
|
upgrade(db2) {
|
68
68
|
["version", "data", "wal", "meta", "idx.data", "idx.wal", "idx.meta"].map((store) => {
|
@@ -89,7 +89,7 @@ async function connectIdb(url, sthis) {
|
|
89
89
|
function joinDBName(...names) {
|
90
90
|
return names.map((i) => i.replace(/^[^a-zA-Z0-9]+/g, "").replace(/[^a-zA-Z0-9-]+/g, "_")).filter((i) => i.length).join(".");
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function getIndexedDBName(iurl, sthis) {
|
93
93
|
const url = ensureVersion(iurl);
|
94
94
|
const fullDb = url.pathname.replace(/^\/+/, "").replace(/\?.*$/, "");
|
95
95
|
const dbName = url.getParam(PARAM.NAME);
|
@@ -104,7 +104,7 @@ function getIndexDBName(iurl, sthis) {
|
|
104
104
|
dbName
|
105
105
|
};
|
106
106
|
}
|
107
|
-
var
|
107
|
+
var IndexedDBGateway = class {
|
108
108
|
constructor() {
|
109
109
|
this._db = {};
|
110
110
|
}
|
@@ -188,8 +188,8 @@ var IndexDBGateway = class {
|
|
188
188
|
}
|
189
189
|
};
|
190
190
|
export {
|
191
|
-
|
192
|
-
|
193
|
-
|
191
|
+
IndexedDBGateway as GatewayImpl,
|
192
|
+
KeyBagProviderIndexedDB as KeyBagProviderImpl,
|
193
|
+
KeyBagProviderIndexedDB
|
194
194
|
};
|
195
195
|
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/runtime/gateways/indexeddb/key-bag-indexeddb.ts","../../../src/runtime/gateways/indexeddb/gateway-impl.ts","../../../src/runtime/gateways/indexeddb-version.ts"],"sourcesContent":["import { IDBPDatabase, openDB } from \"idb\";\nimport { Logger, ResolveOnce, URI } from \"@adviser/cement\";\nimport { type SuperThis, rt } from \"@fireproof/core\";\n\nexport class KeyBagProviderIndexedDB implements rt.kb.KeyBagProvider {\n readonly _db: ResolveOnce<IDBPDatabase<unknown>> = new ResolveOnce<IDBPDatabase<unknown>>();\n\n readonly dbName: string;\n readonly url: URI;\n readonly logger: Logger;\n readonly sthis: SuperThis;\n constructor(url: URI, sthis: SuperThis) {\n this.sthis = sthis;\n this.logger = sthis.logger;\n this.url = url;\n this.dbName = rt.getPath(this.url, this.sthis);\n }\n\n async _prepare(): Promise<IDBPDatabase<unknown>> {\n return this._db.once(async () => {\n return await openDB(this.dbName, 1, {\n upgrade(db) {\n // console.log('upgrade:', dbName);\n [\"bag\"].map((store) => {\n db.createObjectStore(store, {\n autoIncrement: false,\n });\n });\n },\n });\n });\n }\n\n async get(id: string): Promise<rt.kb.KeyItem | undefined> {\n const db = await this._prepare();\n const tx = db.transaction([\"bag\"], \"readonly\");\n const keyItem = await tx.objectStore(\"bag\").get(id);\n await tx.done;\n if (!keyItem) {\n return undefined;\n }\n return keyItem;\n }\n\n async set(id: string, item: rt.kb.KeyItem): Promise<void> {\n const db = await this._prepare();\n const tx = db.transaction([\"bag\"], \"readwrite\");\n await tx.objectStore(\"bag\").put(item, id);\n await tx.done;\n }\n}\n","import { openDB, IDBPDatabase } from \"idb\";\nimport { exception2Result, KeyedResolvOnce, Result, URI } from \"@adviser/cement\";\n\nimport { INDEXEDDB_VERSION } from \"../indexeddb-version.js\";\nimport { NotFoundError, PARAM, exceptionWrapper, getKey, getStore, type SuperThis, bs } from \"@fireproof/core\";\n\nfunction ensureVersion(url: URI): URI {\n return url.build().defParam(PARAM.VERSION, INDEXEDDB_VERSION).URI();\n}\n\ninterface IDBConn {\n readonly db: IDBPDatabase<unknown>;\n readonly dbName: DbName;\n readonly version: string;\n readonly url: URI;\n}\nconst onceIndexedDB = new KeyedResolvOnce<IDBConn>();\n\nfunction sanitzeKey(key: string | string[]): string | string[] {\n if (key.length === 1) {\n key = key[0];\n }\n return key;\n}\n\nasync function connectIdb(url: URI, sthis: SuperThis): Promise<IDBConn> {\n const dbName = getIndexedDBName(url, sthis);\n const once = await onceIndexedDB.get(dbName.fullDb).once(async () => {\n const db = await openDB(dbName.fullDb, 1, {\n upgrade(db) {\n [\"version\", \"data\", \"wal\", \"meta\", \"idx.data\", \"idx.wal\", \"idx.meta\"].map((store) => {\n db.createObjectStore(store, {\n autoIncrement: false,\n });\n });\n },\n });\n const found = await db.get(\"version\", \"version\");\n const version = ensureVersion(url).getParam(PARAM.VERSION) as string;\n if (!found) {\n await db.put(\"version\", { version }, \"version\");\n } else if (found.version !== version) {\n sthis.logger.Warn().Url(url).Str(\"version\", version).Str(\"found\", found.version).Msg(\"version mismatch\");\n }\n return { db, dbName, version, url };\n });\n return {\n ...once,\n url: url.build().setParam(PARAM.VERSION, once.version).URI(),\n };\n}\n\nexport interface DbName {\n readonly fullDb: string;\n readonly objStore: string;\n readonly connectionKey: string;\n readonly dbName: string;\n}\n\nfunction joinDBName(...names: string[]): string {\n return names\n .map((i) => i.replace(/^[^a-zA-Z0-9]+/g, \"\").replace(/[^a-zA-Z0-9-]+/g, \"_\"))\n .filter((i) => i.length)\n .join(\".\");\n}\n\nexport function getIndexedDBName(iurl: URI, sthis: SuperThis): DbName {\n const url = ensureVersion(iurl);\n const fullDb = url.pathname.replace(/^\\/+/, \"\").replace(/\\?.*$/, \"\"); // cut leading slashes\n const dbName = url.getParam(PARAM.NAME);\n if (!dbName) throw sthis.logger.Error().Str(\"url\", url.toString()).Msg(`name not found`).AsError();\n const result = joinDBName(fullDb, dbName);\n const objStore = getStore(url, sthis, joinDBName).name;\n const connectionKey = [result, objStore].join(\":\");\n return {\n fullDb: result,\n objStore,\n connectionKey,\n dbName,\n };\n}\n\nexport class IndexedDBGateway implements bs.Gateway {\n _db: IDBPDatabase<unknown> = {} as IDBPDatabase<unknown>;\n\n async start(baseURL: URI, sthis: SuperThis): Promise<Result<URI>> {\n return exception2Result(async () => {\n await sthis.start();\n sthis.logger.Debug().Url(baseURL).Msg(\"starting\");\n const ic = await connectIdb(baseURL, sthis);\n this._db = ic.db;\n sthis.logger.Debug().Url(ic.url).Msg(\"started\");\n return ic.url;\n });\n }\n async close(): Promise<Result<void>> {\n return Result.Ok(undefined);\n }\n async destroy(baseUrl: URI, sthis: SuperThis): Promise<Result<void>> {\n return exception2Result(async () => {\n // return deleteDB(getIndexedDBName(this.url).fullDb);\n const type = getStore(baseUrl, sthis, joinDBName).name;\n // console.log(\"IndexedDBDataStore:destroy\", type);\n const idb = this._db;\n const trans = idb.transaction(type, \"readwrite\");\n const object_store = trans.objectStore(type);\n const toDelete = [];\n for (let cursor = await object_store.openCursor(); cursor; cursor = await cursor.continue()) {\n toDelete.push(cursor.primaryKey);\n }\n for (const key of toDelete) {\n await trans.db.delete(type, key);\n }\n await trans.done;\n });\n }\n\n buildUrl(baseUrl: URI, key: string): Promise<Result<URI>> {\n return Promise.resolve(Result.Ok(baseUrl.build().setParam(PARAM.KEY, key).URI()));\n }\n\n async get(url: URI, sthis: SuperThis): Promise<bs.GetResult> {\n return exceptionWrapper(async () => {\n const key = getKey(url, sthis.logger);\n const store = getStore(url, sthis, joinDBName).name;\n sthis.logger.Debug().Url(url).Str(\"key\", key).Str(\"store\", store).Msg(\"getting\");\n const tx = this._db.transaction([store], \"readonly\");\n const bytes = await tx.objectStore(store).get(sanitzeKey(key));\n await tx.done;\n if (!bytes) {\n return Result.Err(new NotFoundError(`missing ${key}`));\n }\n return Promise.resolve(Result.Ok(bytes));\n });\n }\n async put(url: URI, bytes: Uint8Array, sthis: SuperThis): Promise<Result<void>> {\n return exception2Result(async () => {\n const key = getKey(url, sthis.logger);\n const store = getStore(url, sthis, joinDBName).name;\n sthis.logger.Debug().Url(url).Str(\"key\", key).Str(\"store\", store).Msg(\"putting\");\n const tx = this._db.transaction([store], \"readwrite\");\n await tx.objectStore(store).put(bytes, sanitzeKey(key));\n await tx.done;\n });\n }\n async delete(url: URI, sthis: SuperThis) {\n return exception2Result(async () => {\n const key = getKey(url, sthis.logger);\n const store = getStore(url, sthis, joinDBName).name;\n sthis.logger.Debug().Url(url).Str(\"key\", key).Str(\"store\", store).Msg(\"deleting\");\n const tx = this._db.transaction([store], \"readwrite\");\n await tx.objectStore(store).delete(sanitzeKey(key));\n await tx.done;\n return Result.Ok(undefined);\n });\n }\n\n async getPlain(url: URI, key: string, sthis: SuperThis): Promise<Result<Uint8Array>> {\n const ic = await connectIdb(url, sthis);\n const store = getStore(ic.url, sthis, joinDBName).name;\n sthis.logger.Debug().Str(\"key\", key).Str(\"store\", store).Msg(\"getting\");\n let bytes = await ic.db.get(store, sanitzeKey(key));\n sthis.logger.Debug().Str(\"key\", key).Str(\"store\", store).Int(\"len\", bytes.length).Msg(\"got\");\n if (typeof bytes === \"string\") {\n bytes = sthis.txt.encode(bytes);\n }\n return Result.Ok(bytes as Uint8Array);\n }\n}\n","export const INDEXEDDB_VERSION = \"v0.19-indexeddb\";\n"],"mappings":";AAAA,SAAuB,cAAc;AACrC,SAAiB,mBAAwB;AACzC,SAAyB,UAAU;AAE5B,IAAM,0BAAN,MAA8D;AAAA,EAOnE,YAAY,KAAU,OAAkB;AANxC,SAAS,MAA0C,IAAI,YAAmC;AAOxF,SAAK,QAAQ;AACb,SAAK,SAAS,MAAM;AACpB,SAAK,MAAM;AACX,SAAK,SAAS,GAAG,QAAQ,KAAK,KAAK,KAAK,KAAK;AAAA,EAC/C;AAAA,EAEA,MAAM,WAA2C;AAC/C,WAAO,KAAK,IAAI,KAAK,YAAY;AAC/B,aAAO,MAAM,OAAO,KAAK,QAAQ,GAAG;AAAA,QAClC,QAAQ,IAAI;AAEV,WAAC,KAAK,EAAE,IAAI,CAAC,UAAU;AACrB,eAAG,kBAAkB,OAAO;AAAA,cAC1B,eAAe;AAAA,YACjB,CAAC;AAAA,UACH,CAAC;AAAA,QACH;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAAA,EAEA,MAAM,IAAI,IAAgD;AACxD,UAAM,KAAK,MAAM,KAAK,SAAS;AAC/B,UAAM,KAAK,GAAG,YAAY,CAAC,KAAK,GAAG,UAAU;AAC7C,UAAM,UAAU,MAAM,GAAG,YAAY,KAAK,EAA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AAC;AAAA,EACH;AAAA,EAEA,MAAM,SAAS,KAAU,KAAa,OAA+C;AACnF,UAAM,KAAK,MAAM,WAAW,KAAK,KAAK;AACtC,UAAM,QAAQ,SAAS,GAAG,KAAK,OAAO,UAAU,EAAE;AAClD,UAAM,OAAO,MAAM,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,SAAS,KAAK,EAAE,IAAI,SAAS;AACtE,QAAI,QAAQ,MAAM,GAAG,GAAG,IAAI,OAAO,WAAW,GAAG,CAAC;AAClD,UAAM,OAAO,MAAM,EAAE,IAAI,OAAO,GAAG,EAAE,IAAI,SAAS,KAAK,EAAE,IAAI,OAAO,MAAM,MAAM,EAAE,IAAI,KAAK;AAC3F,QAAI,OAAO,UAAU,UAAU;AAC7B,cAAQ,MAAM,IAAI,OAAO,KAAK;AAAA,IAChC;AACA,WAAO,OAAO,GAAG,KAAmB;AAAA,EACtC;AACF;","names":["openDB","openDB","db"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"inputs":{"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts":{"bytes":1516,"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/core","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/indexeddb-version.ts":{"bytes":52,"imports":[],"format":"esm"},"src/runtime/gateways/indexeddb/gateway-impl.ts":{"bytes":6189,"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/gateways/indexeddb-version.ts","kind":"import-statement","original":"../indexeddb-version.js"},{"path":"@fireproof/core","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/indexeddb/index.ts":{"bytes":293,"imports":[{"path":"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts","kind":"import-statement","original":"./key-bag-indexeddb.js"},{"path":"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts","kind":"import-statement","original":"./key-bag-indexeddb.js"},{"path":"src/runtime/gateways/indexeddb/gateway-impl.ts","kind":"import-statement","original":"./gateway-impl.js"}],"format":"esm"}},"outputs":{"dist/fireproof-core/indexeddb/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":14107},"dist/fireproof-core/indexeddb/index.cjs":{"imports":[{"path":"idb","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/core","kind":"require-call","external":true},{"path":"idb","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/core","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/runtime/gateways/indexeddb/index.ts","inputs":{"src/runtime/gateways/indexeddb/index.ts":{"bytesInOutput":249},"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts":{"bytesInOutput":1144},"src/runtime/gateways/indexeddb/gateway-impl.ts":{"bytesInOutput":5520},"src/runtime/gateways/indexeddb-version.ts":{"bytesInOutput":43}},"bytes":8003}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"inputs":{"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts":{"bytes":1516,"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/core","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/indexeddb-version.ts":{"bytes":52,"imports":[],"format":"esm"},"src/runtime/gateways/indexeddb/gateway-impl.ts":{"bytes":6189,"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/gateways/indexeddb-version.ts","kind":"import-statement","original":"../indexeddb-version.js"},{"path":"@fireproof/core","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/indexeddb/index.ts":{"bytes":293,"imports":[{"path":"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts","kind":"import-statement","original":"./key-bag-indexeddb.js"},{"path":"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts","kind":"import-statement","original":"./key-bag-indexeddb.js"},{"path":"src/runtime/gateways/indexeddb/gateway-impl.ts","kind":"import-statement","original":"./gateway-impl.js"}],"format":"esm"}},"outputs":{"dist/fireproof-core/indexeddb/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":13689},"dist/fireproof-core/indexeddb/index.js":{"imports":[{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/core","kind":"import-statement","external":true},{"path":"idb","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/core","kind":"import-statement","external":true}],"exports":["GatewayImpl","KeyBagProviderImpl","KeyBagProviderIndexedDB"],"entryPoint":"src/runtime/gateways/indexeddb/index.ts","inputs":{"src/runtime/gateways/indexeddb/key-bag-indexeddb.ts":{"bytesInOutput":1090},"src/runtime/gateways/indexeddb/index.ts":{"bytesInOutput":0},"src/runtime/gateways/indexeddb/gateway-impl.ts":{"bytesInOutput":5141},"src/runtime/gateways/indexeddb-version.ts":{"bytesInOutput":43}},"bytes":6599}}}
|
package/metafile-cjs.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"inputs":{"src/types.ts":{"bytes":16143,"imports":[],"format":"esm"},"src/utils.ts":{"bytes":12062,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"multiformats/bases/base58","kind":"import-statement","external":true}],"format":"esm"},"src/write-queue.ts":{"bytes":3208,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/files.ts":{"bytes":2391,"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":"@fireproof/vendor/ipfs-unixfs-exporter","kind":"import-statement","external":true},{"path":"../blockstore/index.js","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/file/sys-file-system-factory.ts":{"bytes":502,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/core/node","kind":"dynamic-import","external":true},{"path":"@fireproof/core/deno","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/gateways/file/key-bag-file.ts":{"bytes":1699,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../types.js","kind":"import-statement","external":true},{"path":"../../key-bag.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"},{"path":"src/runtime/gateways/file/sys-file-system-factory.ts","kind":"import-statement","original":"./sys-file-system-factory.js"}],"format":"esm"},"src/runtime/key-bag-memory.ts":{"bytes":903,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./key-bag.js","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/key-bag.ts":{"bytes":9031,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"multiformats/bases/base58","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/gateways/file/key-bag-file.ts","kind":"import-statement","original":"./gateways/file/key-bag-file.js"},{"path":"src/runtime/key-bag-memory.ts","kind":"import-statement","original":"./key-bag-memory.js"},{"path":"@fireproof/core/indexdb","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/gateways/file/version.ts":{"bytes":47,"imports":[],"format":"esm"},"src/runtime/gateways/indexdb-version.ts":{"bytes":48,"imports":[],"format":"esm"},"src/runtime/gateways/file/utils.ts":{"bytes":1328,"imports":[{"path":"@fireproof/core","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/file/gateway-impl.ts":{"bytes":5435,"imports":[{"path":"src/runtime/gateways/file/version.ts","kind":"import-statement","original":"./version.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/gateways/file/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/types.ts","kind":"import-statement","original":"../../../types.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/gateways/memory/version.ts":{"bytes":46,"imports":[],"format":"esm"},"src/runtime/gateways/memory/gateway.ts":{"bytes":2075,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../blockstore/gateway.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../../../types.js"},{"path":"src/runtime/gateways/memory/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"},{"path":"../../../blockstore/serde-gateway.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/fp-envelope.ts":{"bytes":4329,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/fp-envelope-serialize.ts":{"bytes":9490,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"../../blockstore/fp-envelope.js"},{"path":"src/types.ts","kind":"import-statement","original":"../../types.js"},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"multiformats/bases/base64","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock/api","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../utils.js"}],"format":"esm"},"src/runtime/gateways/def-serde-gateway.ts":{"bytes":3636,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"../../blockstore/fp-envelope.js"},{"path":"src/runtime/gateways/fp-envelope-serialize.ts","kind":"import-statement","original":"./fp-envelope-serialize.js"},{"path":"../../blockstore/types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/register-store-protocol.ts":{"bytes":5252,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/gateways/file/version.ts","kind":"import-statement","original":"../runtime/gateways/file/version.js"},{"path":"src/runtime/gateways/indexdb-version.ts","kind":"import-statement","original":"../runtime/gateways/indexdb-version.js"},{"path":"src/runtime/gateways/file/gateway-impl.ts","kind":"import-statement","original":"../runtime/gateways/file/gateway-impl.js"},{"path":"src/runtime/gateways/memory/gateway.ts","kind":"import-statement","original":"../runtime/gateways/memory/gateway.js"},{"path":"src/runtime/gateways/file/sys-file-system-factory.ts","kind":"import-statement","original":"../runtime/gateways/file/sys-file-system-factory.js"},{"path":"src/runtime/gateways/def-serde-gateway.ts","kind":"import-statement","original":"../runtime/gateways/def-serde-gateway.js"},{"path":"@fireproof/core/indexdb","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/wait-pr-multiformats/block.ts":{"bytes":3974,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"./codec-interface.js","kind":"import-statement","external":true}],"format":"esm"},"src/indexer-helpers.ts":{"bytes":7613,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"./runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@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":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/indexer.ts":{"bytes":11892,"imports":[{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/indexer-helpers.ts","kind":"import-statement","original":"./indexer-helpers.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/database.ts":{"bytes":5135,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/blockstore/types.ts":{"bytes":13825,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"./transaction.js","kind":"import-statement","external":true},{"path":"./commit-queue.js","kind":"import-statement","external":true},{"path":"../runtime/key-bag.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"./task-manager.js","kind":"import-statement","external":true},{"path":"./serde-gateway.js","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/car","kind":"import-statement","external":true},{"path":"../context.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/loader-helpers.ts":{"bytes":2137,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"../runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/car/reader","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/transaction.ts":{"bytes":10479,"imports":[{"path":"@fireproof/vendor/@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@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":"src/types.ts","kind":"import-statement","original":"../types.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":1375,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/commitor.ts":{"bytes":6253,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"src/blockstore/types.ts","kind":"import-statement","original":"./types.js"},{"path":"@fireproof/vendor/@ipld/car/buffer-writer","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"../runtime/wait-pr-multiformats/block.js"},{"path":"../runtime/wait-pr-multiformats/codec-interface.js","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./transaction.js"}],"format":"esm"},"src/blockstore/task-manager.ts":{"bytes":2098,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/loader.ts":{"bytes":17078,"imports":[{"path":"p-limit","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/car/reader","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"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":"src/runtime/key-bag.ts","kind":"import-statement","original":"../runtime/key-bag.js"},{"path":"src/blockstore/commitor.ts","kind":"import-statement","original":"./commitor.js"},{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"../runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"src/blockstore/task-manager.ts","kind":"import-statement","original":"./task-manager.js"}],"format":"esm"},"src/runtime/keyed-crypto.ts":{"bytes":7496,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../blockstore/index.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"./key-bag.js","kind":"import-statement","external":true},{"path":"multiformats/bases/base58","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/cborg","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"}],"format":"esm"},"src/blockstore/interceptor-gateway.ts":{"bytes":5847,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./serde-gateway.js","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true},{"path":"./fp-envelope.js","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/store.ts":{"bytes":20964,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"./serde-gateway.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.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"},{"path":"src/runtime/keyed-crypto.ts","kind":"import-statement","original":"../runtime/keyed-crypto.js"},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"./fp-envelope.js"},{"path":"@fireproof/vendor/@web3-storage/pail/clock/api","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"import-statement","external":true},{"path":"p-retry","kind":"import-statement","external":true},{"path":"p-map","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"src/blockstore/interceptor-gateway.ts","kind":"import-statement","original":"./interceptor-gateway.js"}],"format":"esm"},"src/blockstore/store-factory.ts":{"bytes":6070,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/files.ts","kind":"import-statement","original":"../runtime/files.js"},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/blockstore/register-store-protocol.ts","kind":"import-statement","original":"./register-store-protocol.js"},{"path":"./serde-gateway.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/serde-gateway.ts":{"bytes":4359,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../utils.js","kind":"import-statement","external":true},{"path":"./fp-envelope.js","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/gateway.ts":{"bytes":1431,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/store-remote.ts":{"bytes":1861,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/context.ts":{"bytes":407,"imports":[],"format":"esm"},"src/blockstore/connection-base.ts":{"bytes":6252,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"./task-manager.js","kind":"import-statement","external":true},{"path":"src/blockstore/store-remote.ts","kind":"import-statement","original":"./store-remote.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/context.ts","kind":"import-statement","original":"../context.js"}],"format":"esm"},"src/blockstore/index.ts":{"bytes":771,"imports":[{"path":"src/blockstore/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/blockstore/serde-gateway.ts","kind":"import-statement","original":"./serde-gateway.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./gateway.js"},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"./fp-envelope.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/blockstore/interceptor-gateway.ts","kind":"import-statement","original":"./interceptor-gateway.js"},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"src/blockstore/register-store-protocol.ts","kind":"import-statement","original":"./register-store-protocol.js"},{"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/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":12549,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"./runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/batch","kind":"import-statement","external":true},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./blockstore/transaction.js"}],"format":"esm"},"src/apply-head-queue.ts":{"bytes":2240,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/crdt-clock.ts":{"bytes":5766,"imports":[{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@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/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":6275,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/crdt-helpers.ts","kind":"import-statement","original":"./crdt-helpers.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/crdt-clock.ts","kind":"import-statement","original":"./crdt-clock.js"}],"format":"esm"},"src/ledger.ts":{"bytes":9772,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/write-queue.ts","kind":"import-statement","original":"./write-queue.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/runtime/files.ts","kind":"import-statement","original":"./runtime/files.js"},{"path":"src/runtime/key-bag.ts","kind":"import-statement","original":"./runtime/key-bag.js"},{"path":"src/blockstore/register-store-protocol.ts","kind":"import-statement","original":"./blockstore/register-store-protocol.js"},{"path":"src/database.ts","kind":"import-statement","original":"./database.js"},{"path":"src/crdt.ts","kind":"import-statement","original":"./crdt.js"},{"path":"src/context.ts","kind":"import-statement","original":"./context.js"}],"format":"esm"},"src/runtime/wait-pr-multiformats/codec-interface.ts":{"bytes":665,"imports":[],"format":"esm"},"src/runtime/wait-pr-multiformats/index.ts":{"bytes":84,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"./block.js"},{"path":"src/runtime/wait-pr-multiformats/codec-interface.ts","kind":"import-statement","original":"./codec-interface.js"}],"format":"esm"},"src/runtime/gateways/file/index.ts":{"bytes":81,"imports":[{"path":"src/runtime/gateways/file/key-bag-file.ts","kind":"import-statement","original":"./key-bag-file.js"},{"path":"src/runtime/gateways/file/sys-file-system-factory.ts","kind":"import-statement","original":"./sys-file-system-factory.js"}],"format":"esm"},"src/runtime/gateways/index.ts":{"bytes":172,"imports":[{"path":"src/runtime/gateways/fp-envelope-serialize.ts","kind":"import-statement","original":"./fp-envelope-serialize.js"},{"path":"src/runtime/gateways/file/index.ts","kind":"import-statement","original":"./file/index.js"},{"path":"src/runtime/gateways/memory/gateway.ts","kind":"import-statement","original":"./memory/gateway.js"},{"path":"src/runtime/gateways/def-serde-gateway.ts","kind":"import-statement","original":"./def-serde-gateway.js"}],"format":"esm"},"src/runtime/index.ts":{"bytes":620,"imports":[{"path":"src/runtime/gateways/file/utils.ts","kind":"import-statement","original":"./gateways/file/utils.js"},{"path":"src/runtime/files.ts","kind":"import-statement","original":"./files.js"},{"path":"src/runtime/key-bag.ts","kind":"import-statement","original":"./key-bag.js"},{"path":"src/runtime/keyed-crypto.ts","kind":"import-statement","original":"./keyed-crypto.js"},{"path":"src/runtime/wait-pr-multiformats/index.ts","kind":"import-statement","original":"./wait-pr-multiformats/index.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/gateways/index.ts","kind":"import-statement","original":"./gateways/index.js"},{"path":"src/runtime/key-bag.ts","kind":"import-statement","original":"./key-bag.js"},{"path":"src/runtime/gateways/file/version.ts","kind":"import-statement","original":"./gateways/file/version.js"},{"path":"src/runtime/gateways/indexdb-version.ts","kind":"import-statement","original":"./gateways/indexdb-version.js"}],"format":"esm"},"src/version.ts":{"bytes":97,"imports":[],"format":"esm"},"src/index.ts":{"bytes":455,"imports":[{"path":"src/ledger.ts","kind":"import-statement","original":"./ledger.js"},{"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/write-queue.ts","kind":"import-statement","original":"./write-queue.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/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":375293},"dist/fireproof-core/index.cjs":{"imports":[{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/bases/base58","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":"@fireproof/vendor/ipfs-unixfs-exporter","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/bases/base58","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/core/node","kind":"dynamic-import","external":true},{"path":"@fireproof/core/deno","kind":"dynamic-import","external":true},{"path":"@fireproof/core/indexdb","kind":"dynamic-import","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/core","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":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"multiformats/bases/base64","kind":"require-call","external":true},{"path":"multiformats","kind":"require-call","external":true},{"path":"multiformats/link","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"require-call","external":true},{"path":"@fireproof/core/indexdb","kind":"dynamic-import","external":true},{"path":"multiformats","kind":"require-call","external":true},{"path":"multiformats/block","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@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":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"p-limit","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/car/reader","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/block","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/car/buffer-writer","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"multiformats/bases/base58","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/cborg","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"require-call","external":true},{"path":"p-retry","kind":"require-call","external":true},{"path":"p-map","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/link","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/batch","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":1398},"src/ledger.ts":{"bytesInOutput":7266},"src/utils.ts":{"bytesInOutput":9157},"src/types.ts":{"bytesInOutput":925},"src/write-queue.ts":{"bytesInOutput":2096},"src/runtime/files.ts":{"bytesInOutput":2184},"src/runtime/key-bag.ts":{"bytesInOutput":7078},"src/runtime/gateways/file/sys-file-system-factory.ts":{"bytesInOutput":428},"src/runtime/gateways/file/key-bag-file.ts":{"bytesInOutput":1052},"src/runtime/key-bag-memory.ts":{"bytesInOutput":557},"src/blockstore/register-store-protocol.ts":{"bytesInOutput":3026},"src/runtime/gateways/file/version.ts":{"bytesInOutput":38},"src/runtime/gateways/indexdb-version.ts":{"bytesInOutput":39},"src/runtime/gateways/file/gateway-impl.ts":{"bytesInOutput":4360},"src/runtime/gateways/file/utils.ts":{"bytesInOutput":769},"src/runtime/gateways/memory/gateway.ts":{"bytesInOutput":1666},"src/runtime/gateways/memory/version.ts":{"bytesInOutput":37},"src/runtime/gateways/def-serde-gateway.ts":{"bytesInOutput":2291},"src/blockstore/fp-envelope.ts":{"bytesInOutput":523},"src/runtime/gateways/fp-envelope-serialize.ts":{"bytesInOutput":5620},"src/runtime/wait-pr-multiformats/block.ts":{"bytesInOutput":2210},"src/indexer-helpers.ts":{"bytesInOutput":4341},"src/indexer.ts":{"bytesInOutput":8173},"src/database.ts":{"bytesInOutput":3408},"src/crdt.ts":{"bytesInOutput":4109},"src/blockstore/index.ts":{"bytesInOutput":1065},"src/blockstore/types.ts":{"bytesInOutput":444},"src/blockstore/store-factory.ts":{"bytesInOutput":4112},"src/blockstore/store.ts":{"bytesInOutput":16851},"src/blockstore/loader.ts":{"bytesInOutput":13508},"src/blockstore/loader-helpers.ts":{"bytesInOutput":576},"src/blockstore/transaction.ts":{"bytesInOutput":6908},"src/blockstore/commit-queue.ts":{"bytesInOutput":1251},"src/blockstore/commitor.ts":{"bytesInOutput":3601},"src/blockstore/task-manager.ts":{"bytesInOutput":1622},"src/runtime/keyed-crypto.ts":{"bytesInOutput":5563},"src/blockstore/interceptor-gateway.ts":{"bytesInOutput":4290},"src/blockstore/connection-base.ts":{"bytesInOutput":4411},"src/blockstore/store-remote.ts":{"bytesInOutput":272},"src/context.ts":{"bytesInOutput":236},"src/crdt-helpers.ts":{"bytesInOutput":8774},"src/crdt-clock.ts":{"bytesInOutput":4457},"src/apply-head-queue.ts":{"bytesInOutput":1260},"src/runtime/index.ts":{"bytesInOutput":680},"src/runtime/wait-pr-multiformats/index.ts":{"bytesInOutput":153},"src/runtime/wait-pr-multiformats/codec-interface.ts":{"bytesInOutput":34},"src/runtime/gateways/index.ts":{"bytesInOutput":340},"src/runtime/gateways/file/index.ts":{"bytesInOutput":151},"src/version.ts":{"bytesInOutput":77}},"bytes":156898}}}
|
1
|
+
{"inputs":{"src/types.ts":{"bytes":16143,"imports":[],"format":"esm"},"src/utils.ts":{"bytes":12062,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"multiformats/bases/base58","kind":"import-statement","external":true}],"format":"esm"},"src/write-queue.ts":{"bytes":3208,"imports":[{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/files.ts":{"bytes":2391,"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":"@fireproof/vendor/ipfs-unixfs-exporter","kind":"import-statement","external":true},{"path":"../blockstore/index.js","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/file/sys-file-system-factory.ts":{"bytes":502,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/core/node","kind":"dynamic-import","external":true},{"path":"@fireproof/core/deno","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/gateways/file/key-bag-file.ts":{"bytes":1699,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../types.js","kind":"import-statement","external":true},{"path":"../../key-bag.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"},{"path":"src/runtime/gateways/file/sys-file-system-factory.ts","kind":"import-statement","original":"./sys-file-system-factory.js"}],"format":"esm"},"src/runtime/key-bag-memory.ts":{"bytes":903,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./key-bag.js","kind":"import-statement","external":true},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/key-bag.ts":{"bytes":9039,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../blockstore/types.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"multiformats/bases/base58","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/gateways/file/key-bag-file.ts","kind":"import-statement","original":"./gateways/file/key-bag-file.js"},{"path":"src/runtime/key-bag-memory.ts","kind":"import-statement","original":"./key-bag-memory.js"},{"path":"@fireproof/core/indexeddb","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/gateways/file/version.ts":{"bytes":47,"imports":[],"format":"esm"},"src/runtime/gateways/indexeddb-version.ts":{"bytes":52,"imports":[],"format":"esm"},"src/runtime/gateways/file/utils.ts":{"bytes":1328,"imports":[{"path":"@fireproof/core","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/file/gateway-impl.ts":{"bytes":5435,"imports":[{"path":"src/runtime/gateways/file/version.ts","kind":"import-statement","original":"./version.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/gateways/file/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/types.ts","kind":"import-statement","original":"../../../types.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"}],"format":"esm"},"src/runtime/gateways/memory/version.ts":{"bytes":46,"imports":[],"format":"esm"},"src/runtime/gateways/memory/gateway.ts":{"bytes":2075,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../../../blockstore/gateway.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../../../types.js"},{"path":"src/runtime/gateways/memory/version.ts","kind":"import-statement","original":"./version.js"},{"path":"src/utils.ts","kind":"import-statement","original":"../../../utils.js"},{"path":"../../../blockstore/serde-gateway.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/fp-envelope.ts":{"bytes":4329,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/runtime/gateways/fp-envelope-serialize.ts":{"bytes":9500,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"../../blockstore/fp-envelope.js"},{"path":"src/types.ts","kind":"import-statement","original":"../../types.js"},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"multiformats/bases/base64","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock/api","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../../utils.js"}],"format":"esm"},"src/runtime/gateways/def-serde-gateway.ts":{"bytes":3183,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"../../blockstore/fp-envelope.js"},{"path":"src/runtime/gateways/fp-envelope-serialize.ts","kind":"import-statement","original":"./fp-envelope-serialize.js"}],"format":"esm"},"src/blockstore/register-store-protocol.ts":{"bytes":5266,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/runtime/gateways/file/version.ts","kind":"import-statement","original":"../runtime/gateways/file/version.js"},{"path":"src/runtime/gateways/indexeddb-version.ts","kind":"import-statement","original":"../runtime/gateways/indexeddb-version.js"},{"path":"src/runtime/gateways/file/gateway-impl.ts","kind":"import-statement","original":"../runtime/gateways/file/gateway-impl.js"},{"path":"src/runtime/gateways/memory/gateway.ts","kind":"import-statement","original":"../runtime/gateways/memory/gateway.js"},{"path":"src/runtime/gateways/file/sys-file-system-factory.ts","kind":"import-statement","original":"../runtime/gateways/file/sys-file-system-factory.js"},{"path":"src/runtime/gateways/def-serde-gateway.ts","kind":"import-statement","original":"../runtime/gateways/def-serde-gateway.js"},{"path":"@fireproof/core/indexeddb","kind":"dynamic-import","external":true}],"format":"esm"},"src/runtime/wait-pr-multiformats/block.ts":{"bytes":3974,"imports":[{"path":"multiformats","kind":"import-statement","external":true},{"path":"multiformats/block","kind":"import-statement","external":true},{"path":"./codec-interface.js","kind":"import-statement","external":true}],"format":"esm"},"src/indexer-helpers.ts":{"bytes":7613,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"./runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@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":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/indexer.ts":{"bytes":11892,"imports":[{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/indexer-helpers.ts","kind":"import-statement","original":"./indexer-helpers.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/database.ts":{"bytes":5135,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"}],"format":"esm"},"src/blockstore/types.ts":{"bytes":13828,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"./transaction.js","kind":"import-statement","external":true},{"path":"./commit-queue.js","kind":"import-statement","external":true},{"path":"../runtime/key-bag.js","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"./task-manager.js","kind":"import-statement","external":true},{"path":"./serde-gateway.js","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/car","kind":"import-statement","external":true},{"path":"../context.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/loader-helpers.ts":{"bytes":2137,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"../runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/car/reader","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/transaction.ts":{"bytes":10479,"imports":[{"path":"@fireproof/vendor/@web3-storage/pail/block","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@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":"src/types.ts","kind":"import-statement","original":"../types.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":1375,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/commitor.ts":{"bytes":6253,"imports":[{"path":"../types.js","kind":"import-statement","external":true},{"path":"src/blockstore/types.ts","kind":"import-statement","original":"./types.js"},{"path":"@fireproof/vendor/@ipld/car/buffer-writer","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"../runtime/wait-pr-multiformats/block.js"},{"path":"../runtime/wait-pr-multiformats/codec-interface.js","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./transaction.js"}],"format":"esm"},"src/blockstore/task-manager.ts":{"bytes":2098,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/loader.ts":{"bytes":17090,"imports":[{"path":"p-limit","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/car/reader","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/blockstore/loader-helpers.ts","kind":"import-statement","original":"./loader-helpers.js"},{"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":"src/runtime/key-bag.ts","kind":"import-statement","original":"../runtime/key-bag.js"},{"path":"src/blockstore/commitor.ts","kind":"import-statement","original":"./commitor.js"},{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"../runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"src/blockstore/task-manager.ts","kind":"import-statement","original":"./task-manager.js"}],"format":"esm"},"src/runtime/keyed-crypto.ts":{"bytes":7496,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../blockstore/index.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.js"},{"path":"./key-bag.js","kind":"import-statement","external":true},{"path":"multiformats/bases/base58","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/cborg","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"}],"format":"esm"},"src/blockstore/interceptor-gateway.ts":{"bytes":5562,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./fp-envelope.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/store.ts":{"bytes":20825,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"./serde-gateway.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"../utils.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"},{"path":"src/runtime/keyed-crypto.ts","kind":"import-statement","original":"../runtime/keyed-crypto.js"},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"./fp-envelope.js"},{"path":"@fireproof/vendor/@web3-storage/pail/clock/api","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"import-statement","external":true},{"path":"p-retry","kind":"import-statement","external":true},{"path":"p-map","kind":"import-statement","external":true},{"path":"multiformats","kind":"import-statement","external":true},{"path":"src/blockstore/interceptor-gateway.ts","kind":"import-statement","original":"./interceptor-gateway.js"}],"format":"esm"},"src/blockstore/store-factory.ts":{"bytes":6146,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/files.ts","kind":"import-statement","original":"../runtime/files.js"},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"./types.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"src/blockstore/register-store-protocol.ts","kind":"import-statement","original":"./register-store-protocol.js"},{"path":"./serde-gateway.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/serde-gateway.ts":{"bytes":4290,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"../utils.js","kind":"import-statement","external":true},{"path":"./fp-envelope.js","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true},{"path":"../runtime/gateways/fp-envelope-serialize.js","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/gateway.ts":{"bytes":1431,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true}],"format":"esm"},"src/blockstore/store-remote.ts":{"bytes":1861,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"../types.js","kind":"import-statement","external":true}],"format":"esm"},"src/context.ts":{"bytes":407,"imports":[],"format":"esm"},"src/blockstore/connection-base.ts":{"bytes":6248,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"../types.js"},{"path":"./task-manager.js","kind":"import-statement","external":true},{"path":"src/blockstore/store-remote.ts","kind":"import-statement","original":"./store-remote.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/context.ts","kind":"import-statement","original":"../context.js"}],"format":"esm"},"src/blockstore/index.ts":{"bytes":771,"imports":[{"path":"src/blockstore/types.ts","kind":"import-statement","original":"./types.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/blockstore/serde-gateway.ts","kind":"import-statement","original":"./serde-gateway.js"},{"path":"src/blockstore/gateway.ts","kind":"import-statement","original":"./gateway.js"},{"path":"src/blockstore/fp-envelope.ts","kind":"import-statement","original":"./fp-envelope.js"},{"path":"src/blockstore/store-factory.ts","kind":"import-statement","original":"./store-factory.js"},{"path":"src/blockstore/interceptor-gateway.ts","kind":"import-statement","original":"./interceptor-gateway.js"},{"path":"src/blockstore/store.ts","kind":"import-statement","original":"./store.js"},{"path":"src/blockstore/register-store-protocol.ts","kind":"import-statement","original":"./register-store-protocol.js"},{"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/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":12549,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"./runtime/wait-pr-multiformats/block.js"},{"path":"multiformats/link","kind":"import-statement","external":true},{"path":"multiformats/hashes/sha2","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/batch","kind":"import-statement","external":true},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/api","kind":"import-statement","external":true},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/transaction.ts","kind":"import-statement","original":"./blockstore/transaction.js"}],"format":"esm"},"src/apply-head-queue.ts":{"bytes":2240,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/crdt-clock.ts":{"bytes":5766,"imports":[{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"import-statement","external":true},{"path":"@fireproof/vendor/@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/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":6275,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/blockstore/index.ts","kind":"import-statement","original":"./blockstore/index.js"},{"path":"src/crdt-helpers.ts","kind":"import-statement","original":"./crdt-helpers.js"},{"path":"src/indexer.ts","kind":"import-statement","original":"./indexer.js"},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/crdt-clock.ts","kind":"import-statement","original":"./crdt-clock.js"}],"format":"esm"},"src/ledger.ts":{"bytes":9772,"imports":[{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/write-queue.ts","kind":"import-statement","original":"./write-queue.js"},{"path":"src/types.ts","kind":"import-statement","original":"./types.js"},{"path":"./blockstore/index.js","kind":"import-statement","external":true},{"path":"src/utils.ts","kind":"import-statement","original":"./utils.js"},{"path":"src/runtime/files.ts","kind":"import-statement","original":"./runtime/files.js"},{"path":"src/runtime/key-bag.ts","kind":"import-statement","original":"./runtime/key-bag.js"},{"path":"src/blockstore/register-store-protocol.ts","kind":"import-statement","original":"./blockstore/register-store-protocol.js"},{"path":"src/database.ts","kind":"import-statement","original":"./database.js"},{"path":"src/crdt.ts","kind":"import-statement","original":"./crdt.js"},{"path":"src/context.ts","kind":"import-statement","original":"./context.js"}],"format":"esm"},"src/runtime/wait-pr-multiformats/codec-interface.ts":{"bytes":665,"imports":[],"format":"esm"},"src/runtime/wait-pr-multiformats/index.ts":{"bytes":84,"imports":[{"path":"src/runtime/wait-pr-multiformats/block.ts","kind":"import-statement","original":"./block.js"},{"path":"src/runtime/wait-pr-multiformats/codec-interface.ts","kind":"import-statement","original":"./codec-interface.js"}],"format":"esm"},"src/runtime/gateways/file/index.ts":{"bytes":81,"imports":[{"path":"src/runtime/gateways/file/key-bag-file.ts","kind":"import-statement","original":"./key-bag-file.js"},{"path":"src/runtime/gateways/file/sys-file-system-factory.ts","kind":"import-statement","original":"./sys-file-system-factory.js"}],"format":"esm"},"src/runtime/gateways/index.ts":{"bytes":172,"imports":[{"path":"src/runtime/gateways/fp-envelope-serialize.ts","kind":"import-statement","original":"./fp-envelope-serialize.js"},{"path":"src/runtime/gateways/file/index.ts","kind":"import-statement","original":"./file/index.js"},{"path":"src/runtime/gateways/memory/gateway.ts","kind":"import-statement","original":"./memory/gateway.js"},{"path":"src/runtime/gateways/def-serde-gateway.ts","kind":"import-statement","original":"./def-serde-gateway.js"}],"format":"esm"},"src/runtime/index.ts":{"bytes":624,"imports":[{"path":"src/runtime/gateways/file/utils.ts","kind":"import-statement","original":"./gateways/file/utils.js"},{"path":"src/runtime/files.ts","kind":"import-statement","original":"./files.js"},{"path":"src/runtime/key-bag.ts","kind":"import-statement","original":"./key-bag.js"},{"path":"src/runtime/keyed-crypto.ts","kind":"import-statement","original":"./keyed-crypto.js"},{"path":"src/runtime/wait-pr-multiformats/index.ts","kind":"import-statement","original":"./wait-pr-multiformats/index.js"},{"path":"@adviser/cement","kind":"import-statement","external":true},{"path":"src/runtime/gateways/index.ts","kind":"import-statement","original":"./gateways/index.js"},{"path":"src/runtime/key-bag.ts","kind":"import-statement","original":"./key-bag.js"},{"path":"src/runtime/gateways/file/version.ts","kind":"import-statement","original":"./gateways/file/version.js"},{"path":"src/runtime/gateways/indexeddb-version.ts","kind":"import-statement","original":"./gateways/indexeddb-version.js"}],"format":"esm"},"src/version.ts":{"bytes":97,"imports":[],"format":"esm"},"src/index.ts":{"bytes":455,"imports":[{"path":"src/ledger.ts","kind":"import-statement","original":"./ledger.js"},{"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/write-queue.ts","kind":"import-statement","original":"./write-queue.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/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":374665},"dist/fireproof-core/index.cjs":{"imports":[{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/bases/base58","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":"@fireproof/vendor/ipfs-unixfs-exporter","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/bases/base58","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/core/node","kind":"dynamic-import","external":true},{"path":"@fireproof/core/deno","kind":"dynamic-import","external":true},{"path":"@fireproof/core/indexeddb","kind":"dynamic-import","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/core","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":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"multiformats/bases/base64","kind":"require-call","external":true},{"path":"multiformats","kind":"require-call","external":true},{"path":"multiformats/link","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"require-call","external":true},{"path":"@fireproof/core/indexeddb","kind":"dynamic-import","external":true},{"path":"multiformats","kind":"require-call","external":true},{"path":"multiformats/block","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@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":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"p-limit","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/car/reader","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/block","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/car/buffer-writer","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"multiformats/bases/base58","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/cborg","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-json","kind":"require-call","external":true},{"path":"p-retry","kind":"require-call","external":true},{"path":"p-map","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"multiformats/link","kind":"require-call","external":true},{"path":"multiformats/hashes/sha2","kind":"require-call","external":true},{"path":"@fireproof/vendor/@ipld/dag-cbor","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt/batch","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/clock","kind":"require-call","external":true},{"path":"@fireproof/vendor/@web3-storage/pail/crdt","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true},{"path":"@adviser/cement","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":1398},"src/ledger.ts":{"bytesInOutput":7266},"src/utils.ts":{"bytesInOutput":9157},"src/types.ts":{"bytesInOutput":925},"src/write-queue.ts":{"bytesInOutput":2096},"src/runtime/files.ts":{"bytesInOutput":2184},"src/runtime/key-bag.ts":{"bytesInOutput":7086},"src/runtime/gateways/file/sys-file-system-factory.ts":{"bytesInOutput":428},"src/runtime/gateways/file/key-bag-file.ts":{"bytesInOutput":1052},"src/runtime/key-bag-memory.ts":{"bytesInOutput":557},"src/blockstore/register-store-protocol.ts":{"bytesInOutput":3034},"src/runtime/gateways/file/version.ts":{"bytesInOutput":38},"src/runtime/gateways/indexeddb-version.ts":{"bytesInOutput":43},"src/runtime/gateways/file/gateway-impl.ts":{"bytesInOutput":4360},"src/runtime/gateways/file/utils.ts":{"bytesInOutput":769},"src/runtime/gateways/memory/gateway.ts":{"bytesInOutput":1666},"src/runtime/gateways/memory/version.ts":{"bytesInOutput":37},"src/runtime/gateways/def-serde-gateway.ts":{"bytesInOutput":2014},"src/blockstore/fp-envelope.ts":{"bytesInOutput":523},"src/runtime/gateways/fp-envelope-serialize.ts":{"bytesInOutput":5620},"src/runtime/wait-pr-multiformats/block.ts":{"bytesInOutput":2210},"src/indexer-helpers.ts":{"bytesInOutput":4341},"src/indexer.ts":{"bytesInOutput":8173},"src/database.ts":{"bytesInOutput":3408},"src/crdt.ts":{"bytesInOutput":4109},"src/blockstore/index.ts":{"bytesInOutput":1065},"src/blockstore/types.ts":{"bytesInOutput":444},"src/blockstore/store-factory.ts":{"bytesInOutput":4165},"src/blockstore/store.ts":{"bytesInOutput":16715},"src/blockstore/loader.ts":{"bytesInOutput":13520},"src/blockstore/loader-helpers.ts":{"bytesInOutput":576},"src/blockstore/transaction.ts":{"bytesInOutput":6908},"src/blockstore/commit-queue.ts":{"bytesInOutput":1251},"src/blockstore/commitor.ts":{"bytesInOutput":3601},"src/blockstore/task-manager.ts":{"bytesInOutput":1622},"src/runtime/keyed-crypto.ts":{"bytesInOutput":5563},"src/blockstore/interceptor-gateway.ts":{"bytesInOutput":4025},"src/blockstore/connection-base.ts":{"bytesInOutput":4407},"src/blockstore/store-remote.ts":{"bytesInOutput":272},"src/context.ts":{"bytesInOutput":236},"src/crdt-helpers.ts":{"bytesInOutput":8774},"src/crdt-clock.ts":{"bytesInOutput":4457},"src/apply-head-queue.ts":{"bytesInOutput":1260},"src/runtime/index.ts":{"bytesInOutput":684},"src/runtime/wait-pr-multiformats/index.ts":{"bytesInOutput":153},"src/runtime/wait-pr-multiformats/codec-interface.ts":{"bytesInOutput":34},"src/runtime/gateways/index.ts":{"bytesInOutput":340},"src/runtime/gateways/file/index.ts":{"bytesInOutput":151},"src/version.ts":{"bytesInOutput":77}},"bytes":156307}}}
|