@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.js CHANGED
@@ -2688,6 +2688,7 @@ var Database = class {
2688
2688
  });
2689
2689
  }
2690
2690
  async get(id) {
2691
+ if (!id) throw this.logger.Error().Str("db", this.name).Msg(`Doc id is required`).AsError();
2691
2692
  await this.ready();
2692
2693
  this.logger.Debug().Str("id", id).Msg("get");
2693
2694
  const got = await this._crdt.get(id).catch((e) => {
@@ -2834,7 +2835,7 @@ function makeName(fnString) {
2834
2835
 
2835
2836
  // src/version.ts
2836
2837
  var PACKAGE_VERSION = Object.keys({
2837
- "0.19.8-dev-cra": "xxxx"
2838
+ "0.19.8-dev-getcon": "xxxx"
2838
2839
  })[0];
2839
2840
  export {
2840
2841
  CRDT,