@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.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-getid": "xxxx"
2838
2839
  })[0];
2839
2840
  export {
2840
2841
  CRDT,