@fireproof/core 0.20.4-dev-preview-3 → 0.20.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 +96 -0
package/index.js
CHANGED
@@ -4487,7 +4487,9 @@ async function processFileset(logger, store, blocks, files) {
|
|
4487
4487
|
async function getValueFromCrdt(blocks, head, key, logger) {
|
4488
4488
|
if (!head.length) throw logger.Debug().Msg("Getting from an empty ledger").AsError();
|
4489
4489
|
const link = await get(blocks, head, key);
|
4490
|
-
if (!link)
|
4490
|
+
if (!link) {
|
4491
|
+
throw new NotFoundError(`Not found: ${key}`);
|
4492
|
+
}
|
4491
4493
|
const ret = await getValueFromLink(blocks, link, logger);
|
4492
4494
|
return ret;
|
4493
4495
|
}
|
@@ -7223,7 +7225,7 @@ function buildResDelWAL(msgCtx, req, ctx) {
|
|
7223
7225
|
|
7224
7226
|
// src/version.ts
|
7225
7227
|
var PACKAGE_VERSION = Object.keys({
|
7226
|
-
"0.20.4
|
7228
|
+
"0.20.4": "xxxx"
|
7227
7229
|
})[0];
|
7228
7230
|
export {
|
7229
7231
|
CRDTImpl,
|