Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsonify-error

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonify-error - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

15

CHANGELOG.md

@@ -9,5 +9,11 @@ # Changelog

## [1.2.1] - 2018-08-11
### Changed
- `jsDelivr` is now suggested in readme instead of `rawgit`
- Fixed issue links in changelog
- (nothing changed in the code itself)
## [1.2.0] - 2018-08-11
### Added
- Source maps for all dists (#2)
- Source maps for all dists ([#2](https://github.com/papb/jsonify-error/issues/2))
- Property `.className` in the json output (from `error.constructor.name`)

@@ -17,4 +23,4 @@ - Dists are included in npm distribution now (with a `"browser"` entry on `package.json`)

### Changed
- Improved `<no stack trace available>` output (#3)
- It is now transparent to non-errors (#1)
- Improved `<no stack trace available>` output ([#3](https://github.com/papb/jsonify-error/issues/3))
- It is now transparent to non-errors ([#1](https://github.com/papb/jsonify-error/issues/1))

@@ -36,5 +42,6 @@ ## [1.1.2] - 2018-08-04

[Unreleased]: https://github.com/papb/jsonify-error/compare/v1.2.0...HEAD
[Unreleased]: https://github.com/papb/jsonify-error/compare/v1.2.1...HEAD
[1.2.0]: https://github.com/papb/jsonify-error/compare/v1.2.0...v1.2.1
[1.2.0]: https://github.com/papb/jsonify-error/compare/v1.1.2...v1.2.0
[1.1.2]: https://github.com/papb/jsonify-error/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/papb/jsonify-error/compare/v1.0.0...v1.1.1
{
"name": "jsonify-error",
"version": "1.2.0",
"version": "1.2.1",
"description": "Get a plain object fully representing the error for better logs and server responses.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,2 +12,3 @@ jsonify-error

[![contributions welcome][contrib-welcome-badge]](https://github.com/papb/jsonify-error/issues)
[![jsDelivr hits][jsdelivr-badge]](https://www.jsdelivr.com/package/npm/jsonify-error)

@@ -22,6 +23,6 @@ It's 2018 and neither `JSON.stringify(e)` nor `console.log(e)` behave as nicely as they could when `e` is an error.

For browsers, simply include one of the dists in your entry point, such as `dist/jsonify-error.js`:
For browsers, simply include one of the dists in your entry point, such as `dist/jsonify-error.js`. The dists are available in [jsDelivr](https://cdn.jsdelivr.net/npm/jsonify-error/):
```html
<script src="https://rawgit.com/papb/jsonify-error/1.2.0/dist/jsonify-error.js" integrity="sha384-k2RD7Ck9pL0UdHYGtnrPC014SjdObcGt9D5LP/CAqFdwee9qcTYt0BzTCiI8PGFn" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jsonify-error@1.2.1/dist/jsonify-error.js" integrity="sha384-k2RD7Ck9pL0UdHYGtnrPC014SjdObcGt9D5LP/CAqFdwee9qcTYt0BzTCiI8PGFn" crossorigin="anonymous"></script>
```

@@ -141,4 +142,5 @@

[license-badge]: https://badgen.net/npm/license/jsonify-error
[jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/jsonify-error/badge?style=rounded
[license-url]: LICENSE
[better-promise-error-log]: https://npmjs.org/package/better-promise-error-log
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc