@block65/custom-error
Advanced tools
@@ -1,2 +0,1 @@ | ||
| import { isNativeError } from 'node:util/types'; | ||
| import { serializeError as serialize } from 'serialize-error'; | ||
@@ -27,3 +26,3 @@ import { CustomError } from './custom-error.js'; | ||
| // isNativeError for compat inside jest | ||
| if (err instanceof Error || isNativeError(err)) { | ||
| if (err instanceof Error) { | ||
| const { name, message, stack, cause, code, ...debug } = serialize(err); | ||
@@ -30,0 +29,0 @@ return { |
+1
-1
| { | ||
| "name": "@block65/custom-error", | ||
| "version": "10.0.0", | ||
| "version": "10.0.1", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "license": "UNLICENSED", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%12969
-0.54%373
-0.27%