@fjell/core 4.4.54 → 4.4.56

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1337,6 +1337,7 @@ var NotFoundError = class extends ActionError {
1337
1337
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
1338
1338
  }
1339
1339
  });
1340
+ this.name = "NotFoundError";
1340
1341
  }
1341
1342
  };
1342
1343
 
@@ -1885,7 +1886,7 @@ function createGetWrapper(coordinate, implementation, options = {}) {
1885
1886
  };
1886
1887
  throw options.onError(error, context);
1887
1888
  }
1888
- if (error && error.constructor.name === "NotFoundError") {
1889
+ if (error instanceof NotFoundError) {
1889
1890
  throw error;
1890
1891
  }
1891
1892
  throw new Error(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fjell/core",
3
3
  "description": "Core Item and Key Framework for Fjell",
4
- "version": "4.4.54",
4
+ "version": "4.4.56",
5
5
  "keywords": [
6
6
  "core",
7
7
  "fjell"