Socket
Socket
Sign inDemoInstall

http-errors

Package Overview
Dependencies
2
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

5

HISTORY.md

@@ -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 @@ ==================

7

index.js

@@ -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 @@ };

2

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc