@fireproof/core 0.19.8-dev-cra → 0.19.8-dev-getcon

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 CHANGED
@@ -3692,6 +3692,7 @@ var Database = class {
3692
3692
  });
3693
3693
  }
3694
3694
  async get(id) {
3695
+ if (!id) throw this.logger.Error().Str("db", this.name).Msg(`Doc id is required`).AsError();
3695
3696
  await this.ready();
3696
3697
  this.logger.Debug().Str("id", id).Msg("get");
3697
3698
  const got = await this._crdt.get(id).catch((e) => {
@@ -3844,6 +3845,6 @@ init_utils();
3844
3845
 
3845
3846
  // src/version.ts
3846
3847
  var PACKAGE_VERSION = Object.keys({
3847
- "0.19.8-dev-cra": "xxxx"
3848
+ "0.19.8-dev-getcon": "xxxx"
3848
3849
  })[0];
3849
3850
  //# sourceMappingURL=index.cjs.map