@fireproof/core 0.20.0-dev-preview-16 → 0.20.0-dev-preview-18

Sign up to get free protection for your applications and to get access to all the features.
package/index.cjs CHANGED
@@ -733,7 +733,7 @@ var KeyBag = class {
733
733
  name,
734
734
  key
735
735
  };
736
- const bag = await this.rt.getBag();
736
+ const bag = await this.rt.getBagProvider();
737
737
  this.logger.Debug().Str("name", name).Msg("setNamedKey");
738
738
  await bag.set(name, item);
739
739
  return await this.toKeyWithFingerPrint(item.key);
@@ -758,7 +758,7 @@ var KeyBag = class {
758
758
  async getNamedKey(name, failIfNotFound = false) {
759
759
  const id = this.rt.sthis.nextId(4).str;
760
760
  return this._seq.add(async () => {
761
- const bag = await this.rt.getBag();
761
+ const bag = await this.rt.getBagProvider();
762
762
  const named = await bag.get(name);
763
763
  if (named) {
764
764
  const fpr = await this.toKeyWithFingerPrint(named.key);
@@ -861,7 +861,7 @@ function defaultKeyBagOpts(sthis, kbo) {
861
861
  sthis,
862
862
  logger,
863
863
  keyLength: kbo.keyLength || 16,
864
- getBag: () => kitem.factory(url, sthis),
864
+ getBagProvider: () => kitem.factory(url, sthis),
865
865
  id: () => {
866
866
  return url.toString();
867
867
  }
@@ -4474,6 +4474,9 @@ var LedgerShell = class {
4474
4474
  this.name = ref.name;
4475
4475
  ref.addShell(this);
4476
4476
  }
4477
+ get opts() {
4478
+ return this.ref.opts;
4479
+ }
4477
4480
  get context() {
4478
4481
  return this.ref.context;
4479
4482
  }
@@ -4531,7 +4534,7 @@ var LedgerImpl = class {
4531
4534
  this.crdt.clock.onTock(() => this._no_update_notify());
4532
4535
  }
4533
4536
  get name() {
4534
- return this.opts.storeUrls.data.data.getParam("name" /* NAME */) || "default";
4537
+ return this.opts.storeUrls.data.data.getParam("name" /* NAME */) ?? "default";
4535
4538
  }
4536
4539
  addShell(shell) {
4537
4540
  this.shells.add(shell);
@@ -4710,6 +4713,8 @@ var import_cement21 = require("@adviser/cement");
4710
4713
  var gateways_exports = {};
4711
4714
  __export(gateways_exports, {
4712
4715
  DefSerdeGateway: () => DefSerdeGateway,
4716
+ dbMetaEvent2Serialized: () => dbMetaEvent2Serialized,
4717
+ decode2DbMetaEvents: () => decode2DbMetaEvents,
4713
4718
  file: () => file_exports,
4714
4719
  fpDeserialize: () => fpDeserialize,
4715
4720
  fpSerialize: () => fpSerialize,
@@ -4725,6 +4730,6 @@ __export(file_exports, {
4725
4730
 
4726
4731
  // src/version.ts
4727
4732
  var PACKAGE_VERSION = Object.keys({
4728
- "0.20.0-dev-preview-16": "xxxx"
4733
+ "0.20.0-dev-preview-18": "xxxx"
4729
4734
  })[0];
4730
4735
  //# sourceMappingURL=index.cjs.map