@fireproof/core 0.20.0-dev-preview-10 → 0.20.0-dev-preview-11
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +4 -10
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -5
- package/index.d.ts +1 -5
- package/index.js +4 -10
- package/index.js.map +1 -1
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/react/index.cjs +1 -1
- package/react/index.cjs.map +1 -1
- package/react/index.js +1 -1
- package/react/index.js.map +1 -1
- package/react/metafile-cjs.json +1 -1
- package/react/metafile-esm.json +1 -1
- package/tests/blockstore/interceptor-gateway.test.ts +1 -1
- package/tests/fireproof/all-gateway.test.ts +2 -2
- package/tests/fireproof/database.test.ts +9 -9
- package/tests/fireproof/fireproof.test.ts +19 -19
- package/tests/fireproof/hello.test.ts +5 -5
- package/tests/fireproof/indexer.test.ts +7 -7
- package/tests/fireproof/multiple-ledger.test.ts +1 -1
- package/tests/gateway/file/loader-config.test.ts +4 -4
- package/tests/gateway/indexdb/loader-config.test.ts +1 -1
package/index.d.cts
CHANGED
@@ -1313,11 +1313,7 @@ declare class LedgerImpl implements Ledger {
|
|
1313
1313
|
private _no_update_notify;
|
1314
1314
|
}
|
1315
1315
|
declare function toStoreURIRuntime(sthis: SuperThis, name?: string, sopts?: StoreUrlsOpts): StoreURIRuntime;
|
1316
|
-
declare
|
1317
|
-
Ledger(name: string, opts?: ConfigOpts): Ledger;
|
1318
|
-
DB(name: string, opts?: ConfigOpts): Database;
|
1319
|
-
}
|
1320
|
-
declare const fireproof: Fireproof;
|
1316
|
+
declare function fireproof(name: string, opts?: ConfigOpts): Database;
|
1321
1317
|
|
1322
1318
|
declare function isDatabase(db: unknown): db is Database;
|
1323
1319
|
declare class DatabaseImpl implements Database {
|
package/index.d.ts
CHANGED
@@ -1313,11 +1313,7 @@ declare class LedgerImpl implements Ledger {
|
|
1313
1313
|
private _no_update_notify;
|
1314
1314
|
}
|
1315
1315
|
declare function toStoreURIRuntime(sthis: SuperThis, name?: string, sopts?: StoreUrlsOpts): StoreURIRuntime;
|
1316
|
-
declare
|
1317
|
-
Ledger(name: string, opts?: ConfigOpts): Ledger;
|
1318
|
-
DB(name: string, opts?: ConfigOpts): Database;
|
1319
|
-
}
|
1320
|
-
declare const fireproof: Fireproof;
|
1316
|
+
declare function fireproof(name: string, opts?: ConfigOpts): Database;
|
1321
1317
|
|
1322
1318
|
declare function isDatabase(db: unknown): db is Database;
|
1323
1319
|
declare class DatabaseImpl implements Database {
|
package/index.js
CHANGED
@@ -4538,15 +4538,9 @@ function toStoreURIRuntime(sthis, name, sopts) {
|
|
4538
4538
|
}
|
4539
4539
|
};
|
4540
4540
|
}
|
4541
|
-
|
4542
|
-
|
4543
|
-
|
4544
|
-
}
|
4545
|
-
DB(name, opts) {
|
4546
|
-
return new DatabaseImpl(this.Ledger(name, opts));
|
4547
|
-
}
|
4548
|
-
};
|
4549
|
-
var fireproof = new Fireproof();
|
4541
|
+
function fireproof(name, opts) {
|
4542
|
+
return new DatabaseImpl(LedgerFactory(name, opts));
|
4543
|
+
}
|
4550
4544
|
|
4551
4545
|
// src/runtime/index.ts
|
4552
4546
|
var runtime_exports = {};
|
@@ -4598,7 +4592,7 @@ __export(file_exports, {
|
|
4598
4592
|
|
4599
4593
|
// src/version.ts
|
4600
4594
|
var PACKAGE_VERSION = Object.keys({
|
4601
|
-
"0.20.0-dev-preview-
|
4595
|
+
"0.20.0-dev-preview-11": "xxxx"
|
4602
4596
|
})[0];
|
4603
4597
|
export {
|
4604
4598
|
CRDTImpl,
|