@fireproof/core 0.20.0-dev-preview-26 → 0.20.0-dev-preview-27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +7 -6
- package/index.cjs.map +1 -1
- package/index.d.cts +2 -2
- package/index.d.ts +2 -2
- package/index.js +7 -6
- package/index.js.map +1 -1
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/tests/fireproof/crdt.test.ts +9 -0
- package/tests/fireproof/fireproof.test.ts +35 -0
- package/tests/fireproof/indexer.test.ts +1 -0
package/index.cjs
CHANGED
@@ -637,7 +637,7 @@ var KeyBagProviderFile = class {
|
|
637
637
|
if (isNotFoundError(e)) {
|
638
638
|
return void 0;
|
639
639
|
}
|
640
|
-
throw this.logger.Error().Err(e).
|
640
|
+
throw this.logger.Error().Err(e).Any("file", ctx).Msg("read bag failed").AsError();
|
641
641
|
}
|
642
642
|
}
|
643
643
|
async set(item) {
|
@@ -768,7 +768,7 @@ var keysByFingerprint = class _keysByFingerprint {
|
|
768
768
|
if (found) {
|
769
769
|
return found;
|
770
770
|
}
|
771
|
-
throw this.keybag.logger.Error().Msg("
|
771
|
+
throw this.keybag.logger.Error().Str("fpr", fingerPrint).Any("fprs", Object.keys(this.keys)).Msg("keysByFingerprint: not found").AsError();
|
772
772
|
}
|
773
773
|
async upsert(materialStrOrUint8, def, keyBagAction = true) {
|
774
774
|
def = !!def;
|
@@ -885,7 +885,7 @@ var KeyBag = class {
|
|
885
885
|
const keyName = `@${keyFactory()}@`;
|
886
886
|
const ret = await this.getNamedKey(keyName);
|
887
887
|
if (ret.isErr()) {
|
888
|
-
return ret;
|
888
|
+
return import_cement4.Result.Err(ret);
|
889
889
|
}
|
890
890
|
const urb = url.build().setParam(PARAM.STORE_KEY, keyName);
|
891
891
|
return import_cement4.Result.Ok(urb.URI());
|
@@ -893,7 +893,7 @@ var KeyBag = class {
|
|
893
893
|
if (storeKey.startsWith("@") && storeKey.endsWith("@")) {
|
894
894
|
const ret = await this.getNamedKey(storeKey);
|
895
895
|
if (ret.isErr()) {
|
896
|
-
return ret;
|
896
|
+
return import_cement4.Result.Err(ret);
|
897
897
|
}
|
898
898
|
}
|
899
899
|
return import_cement4.Result.Ok(url);
|
@@ -1257,6 +1257,7 @@ var MEMORY_VERSION = "v0.19-memory";
|
|
1257
1257
|
|
1258
1258
|
// src/runtime/gateways/memory/gateway.ts
|
1259
1259
|
var MemoryGateway = class {
|
1260
|
+
// readonly logger: Logger;
|
1260
1261
|
constructor(sthis, memorys) {
|
1261
1262
|
this.memorys = memorys;
|
1262
1263
|
this.sthis = sthis;
|
@@ -4752,7 +4753,7 @@ var LedgerImpl = class {
|
|
4752
4753
|
this.crdt.clock.onTock(() => this._no_update_notify());
|
4753
4754
|
}
|
4754
4755
|
get name() {
|
4755
|
-
return this.opts.
|
4756
|
+
return this.opts.name;
|
4756
4757
|
}
|
4757
4758
|
addShell(shell) {
|
4758
4759
|
this.shells.add(shell);
|
@@ -4950,6 +4951,6 @@ __export(file_exports, {
|
|
4950
4951
|
|
4951
4952
|
// src/version.ts
|
4952
4953
|
var PACKAGE_VERSION = Object.keys({
|
4953
|
-
"0.20.0-dev-preview-
|
4954
|
+
"0.20.0-dev-preview-27": "xxxx"
|
4954
4955
|
})[0];
|
4955
4956
|
//# sourceMappingURL=index.cjs.map
|