sindresorhus/
Serialize an error into a plain object
USD raised
Recent activities
Feat: Add a option to indicate how deep to scan Error object
change in v5: `const {inspect} = require('util');` can lead to web bundle bloat
Consider making common error properties non enumerable
v7 doesn't work as described
`serializeError` converts a `Date` object into an empty plain object
Dual package with native ES Modules output
OutOfMemory exception on errors containing Buffers
Consider Object.toJSON() method
In-browser use error: ReferenceError: Buffer is not defined
Nested Error's are not deserialized
Add `isErrorObject` type guard / function
Error subclasses are lost when deserializing
Merge stack traces
Add support for (or document) Error#cause
Can type-fest be moved to devDependencies?
Use stricter type for JsonObject
CommonJS
AWS SDK v3 exposes Readable in Error object
Error [ERR_REQUIRE_ESM]: require() of ES
Error: Cannot read property 'pipe' of null
Version 9.1.1 with CRA default Babel config gives "Module parse failed"
Jest encountered an unexpected token
Optionally ignore `toJSON`
`toJSON` example is confusing
Nested errors are still not serialized
Unknown object type "asyncfunction"
Wrong typescript definition for serializeError
Jest encounters `SyntaxError: Cannot use import statement outside a module` while trying to test code that uses `serialize-error`
Error require of ES Module not supported
Visibility of undefined values in the objects
Keep old versions of the lib on a separate branch
`option` to treat undefined as null
Received error object is not extensible when calling serialize error
ERR_REQUIRE_ESM
ESBuild error when importing serialize-error
`cause` prop is not being serialized
Remove direct usage of Buffer
v9+ throws ERR_REQUIRE_ESM when imported
Ā© 2019 BoostIO, Inc.