finalhandler
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,6 @@ | ||
v1.2.1 / 2024-09-02 | ||
================== | ||
* Gracefully handle when handling an error and socket is null | ||
1.2.0 / 2022-03-22 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -128,3 +128,5 @@ /*! | ||
debug('cannot %d after headers sent', status) | ||
req.socket.destroy() | ||
if (req.socket) { | ||
req.socket.destroy() | ||
} | ||
return | ||
@@ -131,0 +133,0 @@ } |
{ | ||
"name": "finalhandler", | ||
"description": "Node.js final http responder", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
"eslint-config-standard": "14.1.1", | ||
"eslint-plugin-import": "2.25.4", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-markdown": "2.2.1", | ||
@@ -26,7 +26,7 @@ "eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-standard": "4.1.0", | ||
"mocha": "9.2.2", | ||
"mocha": "10.0.0", | ||
"nyc": "15.1.0", | ||
"readable-stream": "2.3.6", | ||
"safe-buffer": "5.2.1", | ||
"supertest": "6.2.2" | ||
"supertest": "6.2.4" | ||
}, | ||
@@ -44,6 +44,7 @@ "files": [ | ||
"lint": "eslint .", | ||
"test": "mocha --reporter spec --bail --check-leaks test/", | ||
"test": "mocha --reporter spec --check-leaks test/", | ||
"test-ci": "nyc --reporter=lcovonly --reporter=text npm test", | ||
"test-cov": "nyc --reporter=html --reporter=text npm test" | ||
"test-cov": "nyc --reporter=html --reporter=text npm test", | ||
"test-inspect": "mocha --reporter spec --inspect --inspect-brk test/" | ||
} | ||
} |
@@ -146,3 +146,3 @@ # finalhandler | ||
[downloads-url]: https://npmjs.org/package/finalhandler | ||
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/pillarjs/finalhandler/ci/master?label=ci | ||
[github-actions-ci-url]: https://github.com/jshttp/pillarjs/finalhandler?query=workflow%3Aci | ||
[github-actions-ci-image]: https://github.com/pillarjs/finalhandler/actions/workflows/ci.yml/badge.svg | ||
[github-actions-ci-url]: https://github.com/pillarjs/finalhandler/actions/workflows/ci.yml |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18837
277
1