@fireproof/core 0.20.4-dev-preview-2 → 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.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) throw logger.Error().Str("key", key).Msg(`Missing key`).AsError();
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-dev-preview-2": "xxxx"
7228
+ "0.20.4-dev-preview-4": "xxxx"
7227
7229
  })[0];
7228
7230
  export {
7229
7231
  CRDTImpl,