@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.global.js CHANGED
@@ -24340,6 +24340,7 @@ You can use close({ resize: true }) to resize header`);
24340
24340
  });
24341
24341
  }
24342
24342
  async get(id) {
24343
+ if (!id) throw this.logger.Error().Str("db", this.name).Msg(`Doc id is required`).AsError();
24343
24344
  await this.ready();
24344
24345
  this.logger.Debug().Str("id", id).Msg("get");
24345
24346
  const got = await this._crdt.get(id).catch((e) => {
@@ -24492,7 +24493,7 @@ You can use close({ resize: true }) to resize header`);
24492
24493
 
24493
24494
  // src/version.ts
24494
24495
  var PACKAGE_VERSION = Object.keys({
24495
- "0.19.8-dev-cra": "xxxx"
24496
+ "0.19.8-dev-getid": "xxxx"
24496
24497
  })[0];
24497
24498
  return __toCommonJS(src_exports5);
24498
24499
  })();