make-error-cause

Make your own nested errors

OTHER License

Downloads
2.1M
Stars
67
Committers
7

Bot releases are hidden (Show)

make-error-cause - Output Extra Property with Inspect Latest Release

Published by blakeembrey almost 5 years ago

Fixed

  • Render extra properties in fullStack()

Changed

  • (Possible breaking change, non API change) cause is non-configurable and non-enumerable
make-error-cause - Mark Message as Optional in TypeScript Constructor

Published by blakeembrey over 5 years ago

Fixed

  • Mark message as optional in constructor
make-error-cause - Custom Inspect

Published by blakeembrey over 6 years ago

Fixed

  • Use inspect.custom over deprecated inspect method when available (new node.js versions)
make-error-cause - JavaScript Normal Full Stack Order

Published by blakeembrey over 6 years ago

Changed

  • Report stack trace errors from most recent to oldest (deepest in the stack) - this is consistent with err.stack reporting
make-error-cause - ES2015 Only

Published by blakeembrey over 6 years ago

Added

  • Native full stack trace output in node.js by defining inspect() to return fullStack(this)
  • Export fullStack() method for getting the full stack trace from any error (returns err.stack when no err.cause is available)

Changed

  • Remove ES5 usage and require inheritance from BaseError export
  • Remove toString() chained behaviour
make-error-cause - Fix Main Function Overload

Published by blakeembrey almost 8 years ago

Fixed

  • Correct the TypeScript function overload of export =
make-error-cause - Add Typings

Published by blakeembrey about 8 years ago

Fixed

  • Add typings field to package.json
make-error-cause - Native Types

Published by blakeembrey about 8 years ago

Changed

  • Update make-error, enabling support for native type definitions without typings.json
make-error-cause - Inline Sources

Published by blakeembrey over 8 years ago

Changed

  • Inline source map sources with package
make-error-cause - Updated `make-error`

Published by blakeembrey over 8 years ago

Changed

  • Update make-error dependency
make-error-cause - Optional Cause Type Signature

Published by blakeembrey almost 9 years ago

Fixed

  • Make the cause parameter optional in type signature of BaseError
make-error-cause - Nested toString

Published by blakeembrey almost 9 years ago

Fixed

  • When causes are nested, using toString allows recursive output
make-error-cause - Initial Release

Published by blakeembrey almost 9 years ago