@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 +2 -1
- package/index.cjs.map +1 -1
- package/index.global.js +2 -1
- package/index.global.js.map +1 -1
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/metafile-iife.json +1 -1
- package/package.json +1 -1
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-
|
2838
|
+
"0.19.8-dev-getid": "xxxx"
|
2838
2839
|
})[0];
|
2839
2840
|
export {
|
2840
2841
|
CRDT,
|