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

strong-error-handler

Package Overview
Dependencies
Maintainers
7
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strong-error-handler - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

.travis.yml

8

CHANGES.md

@@ -0,1 +1,9 @@

2019-09-30, Version 3.3.0
=========================
* fix: handle Error objects with circular properties (dkrantsberg)
* chore: update copyrights years (Agnes Lin)
2018-08-30, Version 3.2.0

@@ -2,0 +10,0 @@ =========================

@@ -0,1 +1,6 @@

// Copyright IBM Corp. 2016. All Rights Reserved.
// Node module: strong-error-handler
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';

@@ -2,0 +7,0 @@ module.exports = cloneAllProperties;

2

lib/content-negotiation.js

@@ -1,2 +0,2 @@

// Copyright IBM Corp. 2016. All Rights Reserved.
// Copyright IBM Corp. 2016,2018. All Rights Reserved.
// Node module: strong-error-handler

@@ -3,0 +3,0 @@ // This file is licensed under the MIT License.

@@ -1,2 +0,2 @@

// Copyright IBM Corp. 2016. All Rights Reserved.
// Copyright IBM Corp. 2016,2018. All Rights Reserved.
// Node module: strong-error-handler

@@ -3,0 +3,0 @@ // This file is licensed under the MIT License.

@@ -1,2 +0,2 @@

// Copyright IBM Corp. 2016. All Rights Reserved.
// Copyright IBM Corp. 2016,2018. All Rights Reserved.
// Node module: strong-error-handler

@@ -3,0 +3,0 @@ // This file is licensed under the MIT License.

@@ -8,6 +8,8 @@ // Copyright IBM Corp. 2016. All Rights Reserved.

var safeStringify = require('fast-safe-stringify');
module.exports = function sendJson(res, data) {
var content = JSON.stringify({error: data});
var content = safeStringify({error: data});
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.end(content, 'utf-8');
};

@@ -1,2 +0,2 @@

// Copyright IBM Corp. 2016. All Rights Reserved.
// Copyright IBM Corp. 2017. All Rights Reserved.
// Node module: strong-error-handler

@@ -3,0 +3,0 @@ // This file is licensed under the MIT License.

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "3.2.0",
"version": "3.3.0",
"engines": {

@@ -25,2 +25,3 @@ "node": ">=6"

"ejs": "^2.6.1",
"fast-safe-stringify": "^2.0.6",
"http-status": "^1.1.2",

@@ -45,3 +46,4 @@ "js2xmlparser": "^3.0.0",

]
}
},
"author": "IBM Corp."
}
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