http-errors
Advanced tools
+6
-0
@@ -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' | ||
| } |
+12
-8
| { | ||
| "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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
19064
1.36%234
0.43%1
Infinity%+ Added
- Removed
Updated
Updated
Updated
Updated
Updated