error-serializer
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -12,3 +12,3 @@ import{UNSET_CORE_PROPS,getNonCoreProps}from"../core.js"; | ||
export const parseError=function(object,types){ | ||
if(object instanceof Error){ | ||
if(Object.prototype.toString.call(object)==="[object Error]"){ | ||
return object; | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "error-serializer", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"type": "module", | ||
@@ -49,3 +49,3 @@ "exports": "./build/src/main.js", | ||
"dependencies": { | ||
"normalize-exception": "^1.5.0", | ||
"normalize-exception": "^1.6.0", | ||
"safe-json-value": "^1.6.0" | ||
@@ -52,0 +52,0 @@ }, |
[](https://codecov.io/gh/ehmicky/error-serializer) | ||
[](https://www.npmjs.com/package/error-serializer) | ||
[](/src/main.d.ts) | ||
[](/src/main.d.ts) | ||
[](https://www.npmjs.com/package/error-serializer) | ||
[](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
@@ -170,4 +170,5 @@ [](https://medium.com/@ehmicky) | ||
like it's 2022 🔮 | ||
- [`error-type`](https://github.com/ehmicky/error-type): Create custom error | ||
types | ||
- [`create-error-types`](https://github.com/ehmicky/create-error-types): Create | ||
multiple error types | ||
- [`error-type`](https://github.com/ehmicky/error-type): Create one error type | ||
- [`normalize-exception`](https://github.com/ehmicky/normalize-exception): | ||
@@ -183,2 +184,4 @@ Normalize exceptions/errors | ||
serialization should never fail | ||
- [`log-process-errors`](https://github.com/ehmicky/log-process-errors): Show | ||
some ❤ to Node.js process errors | ||
@@ -185,0 +188,0 @@ # Support |
26641
213
Updatednormalize-exception@^1.6.0