http-errors
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,6 @@ | ||
2015-02-02 / 1.3.1 | ||
================== | ||
* Fix regression where status can be overwritten in `createError` `props` | ||
2015-02-01 / 1.3.0 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -58,3 +58,8 @@ | ||
for (var key in props) err[key] = props[key]; | ||
for (var key in props) { | ||
if (key !== 'status' && key !== 'statusCode') { | ||
err[key] = props[key] | ||
} | ||
} | ||
return err; | ||
@@ -61,0 +66,0 @@ }; |
{ | ||
"name": "http-errors", | ||
"description": "Create HTTP error objects", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
8311
106