New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

http-errors

Package Overview
Dependencies
Maintainers
4
Versions
30
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
2.0.0
to
2.0.1
+6
-0
HISTORY.md

@@ -0,1 +1,7 @@

2.0.1 / 2025-11-20
==================
* deps: use tilde notation for dependencies
* deps: update statuses to 2.0.2
2.0.0 / 2021-12-17

@@ -2,0 +8,0 @@ ==================

+4
-3

@@ -282,2 +282,5 @@ /*!

* Get a class name from a name identifier.
*
* @param {string} name
* @returns {string}
* @private

@@ -287,5 +290,3 @@ */

function toClassName (name) {
return name.substr(-5) !== 'Error'
? name + 'Error'
: name
return name.slice(-5) === 'Error' ? name : name + 'Error'
}
{
"name": "http-errors",
"description": "Create HTTP error objects",
"version": "2.0.0",
"version": "2.0.1",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",

@@ -12,8 +12,12 @@ "contributors": [

"repository": "jshttp/http-errors",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
},
"dependencies": {
"depd": "2.0.0",
"inherits": "2.0.4",
"setprototypeof": "1.2.0",
"statuses": "2.0.1",
"toidentifier": "1.0.1"
"depd": "~2.0.0",
"inherits": "~2.0.4",
"setprototypeof": "~1.2.0",
"statuses": "~2.0.2",
"toidentifier": "~1.0.1"
},

@@ -23,3 +27,3 @@ "devDependencies": {

"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-markdown": "2.2.1",

@@ -37,3 +41,3 @@ "eslint-plugin-node": "11.1.0",

"lint": "eslint . && node ./scripts/lint-readme-list.js",
"test": "mocha --reporter spec --bail",
"test": "mocha --reporter spec",
"test-ci": "nyc --reporter=lcov --reporter=text npm test",

@@ -40,0 +44,0 @@ "test-cov": "nyc --reporter=html --reporter=text npm test",