@fireproof/core 0.20.4-dev-preview-3 → 0.20.4-dev-preview-4
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.cjs +4 -2
- package/index.cjs.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/metafile-cjs.json +1 -1
- package/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/tests/react/use-document-with-nonexistent-id.test.tsx +113 -0
package/index.cjs
CHANGED
@@ -4540,7 +4540,9 @@ async function processFileset(logger, store, blocks, files) {
|
|
4540
4540
|
async function getValueFromCrdt(blocks, head, key, logger) {
|
4541
4541
|
if (!head.length) throw logger.Debug().Msg("Getting from an empty ledger").AsError();
|
4542
4542
|
const link = await (0, import_crdt.get)(blocks, head, key);
|
4543
|
-
if (!link)
|
4543
|
+
if (!link) {
|
4544
|
+
throw new NotFoundError(`Not found: ${key}`);
|
4545
|
+
}
|
4544
4546
|
const ret = await getValueFromLink(blocks, link, logger);
|
4545
4547
|
return ret;
|
4546
4548
|
}
|
@@ -7268,6 +7270,6 @@ function buildResDelWAL(msgCtx, req, ctx) {
|
|
7268
7270
|
|
7269
7271
|
// src/version.ts
|
7270
7272
|
var PACKAGE_VERSION = Object.keys({
|
7271
|
-
"0.20.4-dev-preview-
|
7273
|
+
"0.20.4-dev-preview-4": "xxxx"
|
7272
7274
|
})[0];
|
7273
7275
|
//# sourceMappingURL=index.cjs.map
|