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

http-errors

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-errors - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc