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

Sign up to get free protection for your applications and to get access to all the features.
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-getid": "xxxx"
3848
3849
  })[0];
3849
3850
  //# sourceMappingURL=index.cjs.map