strong-error-handler
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -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; |
@@ -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." | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
63902
36
1307
1
1
8
+ Addedfast-safe-stringify@^2.0.6
+ Addedfast-safe-stringify@2.1.1(transitive)