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

httperrors

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httperrors - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

1

lib/httpErrors.js

@@ -75,2 +75,3 @@ (function (root, factory) {

statusCode: statusCode,
status: statusCode,
name: name

@@ -77,0 +78,0 @@ });

@@ -5,4 +5,13 @@ {

"description": "Handy JavaScript Error classes representing the standard HTTP errors. Easily extensible and subclassable.",
"keywords": ["http", "errors", "error", "request", "proxy", "client", "class", "errorclass"],
"version": "0.4.0",
"keywords": [
"http",
"errors",
"error",
"request",
"proxy",
"client",
"class",
"errorclass"
],
"version": "0.4.1",
"repository": {

@@ -9,0 +18,0 @@ "type": "git",

@@ -9,2 +9,3 @@ var expect = require('unexpected'),

expect(err.statusCode, 'to equal', 404);
expect(err.status, 'to equal', 404);
expect(err.message, 'to equal', 'sadface');

@@ -11,0 +12,0 @@ expect(err.name, 'to equal', 'NotFound');

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