error-serializer
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -19,3 +19,3 @@ import isPlainObj from"is-plain-obj"; | ||
const valueB=serializeRecurse(valueA,parentsA); | ||
return safeJsonValue(valueB).value; | ||
return safeJsonValue(valueB,{shallow:false}).value; | ||
}; | ||
@@ -30,3 +30,3 @@ | ||
const valueA=serializeError(value); | ||
return safeJsonValue(valueA).value; | ||
return safeJsonValue(valueA,{shallow:true}).value; | ||
}; | ||
@@ -33,0 +33,0 @@ |
{ | ||
"name": "error-serializer", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"type": "module", | ||
@@ -50,4 +50,4 @@ "exports": "./build/src/main.js", | ||
"is-plain-obj": "^4.1.0", | ||
"normalize-exception": "^2.5.1", | ||
"safe-json-value": "^1.7.0" | ||
"normalize-exception": "^2.6.0", | ||
"safe-json-value": "^1.8.0" | ||
}, | ||
@@ -54,0 +54,0 @@ "devDependencies": { |
@@ -164,3 +164,3 @@ [](https://codecov.io/gh/ehmicky/error-serializer) | ||
// Cycles make `JSON.stringify()` throw, so they are removed | ||
console.log(serialize(error).cycle) // {} | ||
console.log(serialize(error).cycle) // undefined | ||
``` | ||
@@ -316,6 +316,19 @@ | ||
<!-- ALL-CONTRIBUTORS-LIST:START --> | ||
<!-- prettier-ignore --> | ||
<!-- | ||
<table><tr><td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt="ehmicky"/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/error-serializer/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/error-serializer/commits?author=ehmicky" title="Documentation">📖</a></td></tr></table> | ||
--> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4?s=100" width="100px;" alt="ehmicky"/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/error-serializer/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/error-serializer/commits?author=ehmicky" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://github.com/papb"><img src="https://avatars.githubusercontent.com/u/20914054?v=4?s=100" width="100px;" alt="Pedro Augusto de Paula Barbosa"/><br /><sub><b>Pedro Augusto de Paula Barbosa</b></sub></a><br /><a href="https://github.com/ehmicky/error-serializer/issues?q=author%3Apapb" title="Bug reports">🐛</a> <a href="https://github.com/ehmicky/error-serializer/commits?author=papb" title="Documentation">📖</a></td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
</tfoot> | ||
</table> | ||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> |
37002
333
Updatednormalize-exception@^2.6.0
Updatedsafe-json-value@^1.8.0