Serialize/deserialize an error into a plain object
MIT License
Bot releases are hidden (Show)
https://github.com/sindresorhus/serialize-error/compare/v11.0.2...v11.0.3
DOMException
26fc52bhttps://github.com/sindresorhus/serialize-error/compare/v11.0.1...v11.0.2
https://github.com/sindresorhus/serialize-error/compare/v11.0.0...v11.0.1
message
property at a minimum to be interpreted as an Error (#77) 0720121https://github.com/sindresorhus/serialize-error/compare/v10.0.0...v11.0.0
TypeError
might have been deserialized as a Error
before, but is now deserialized as a TypeError
.useToJSON
option (#71) e9e8666isErrorLike()
method (#68) bb6d9d6cause
property (#65) 7e8be51https://github.com/sindresorhus/serialize-error/compare/v9.1.1...v10.0.0
https://github.com/sindresorhus/serialize-error/compare/v9.1.0...v9.1.1
'[object Stream]'
(#57) b589f8ehttps://github.com/sindresorhus/serialize-error/compare/v9.0.0...v9.1.0
https://github.com/sindresorhus/serialize-error/compare/v8.1.0...v9.0.0
maxDepth
option (#43) f15af7dhttps://github.com/sindresorhus/serialize-error/compare/v8.0.1...v8.1.0
https://github.com/sindresorhus/serialize-error/compare/v8.0.0...v8.0.1
Object#toJSON()
method to serialize properties if the method is defined (#38) 34655ebError
properties are not serialized and instead replaced with '[object Buffer]'
(#39) d58ce16https://github.com/sindresorhus/serialize-error/compare/v7.0.1...v8.0.0
https://github.com/sindresorhus/serialize-error/compare/v7.0.0...v7.0.1
https://github.com/sindresorhus/serialize-error/compare/v6.0.0...v7.0.0
JSON.stringify()
instead of util.inspect()
.https://github.com/sindresorhus/serialize-error/compare/v5.0.0...v6.0.0
The default export is now a named export 9da0ddb
- const serializeError = require('serialize-error');
+ const {serializeError} = require('serialize-error');
deserializeError
method (#24) 9da0ddbhttps://github.com/sindresorhus/serialize-error/compare/v4.1.0...v5.0.0
https://github.com/sindresorhus/serialize-error/compare/v4.0.0...v4.1.0
Breaking:
Enhancements:
https://github.com/sindresorhus/serialize-error/compare/v3.0.0...v4.0.0