Comparing version 1.8.0 to 1.9.0
Changelog | ||
========= | ||
## 1.9.0 (2016-11-07) | ||
### Enhancements | ||
* Added `createErrorHandler` and `createRequestHandler` express middleware factories | ||
[Jonathan Samines](https://github.com/jonathansamines) | ||
[#88](https://github.com/bugsnag/bugsnag-node/pull/88) | ||
## 1.8.0 (2016-08-26) | ||
@@ -5,0 +13,0 @@ |
@@ -125,2 +125,6 @@ var domain = require("domain"), | ||
Bugsnag.createErrorHandler = function() { | ||
return Bugsnag.register.apply(Bugsnag, arguments).errorHandler; | ||
}; | ||
// The request middleware for express/connect. Ensures next(err) is called when there is an error, and | ||
@@ -138,2 +142,6 @@ // tracks the request for manual notifies. | ||
Bugsnag.createRequestHandler = function() { | ||
return Bugsnag.register.apply(Bugsnag, arguments).requestHandler; | ||
}; | ||
Bugsnag.restifyHandler = function(req, res, route, err) { | ||
@@ -140,0 +148,0 @@ Bugsnag.notify(err, { |
{ | ||
"name": "bugsnag", | ||
"description": "Bugsnag notifier for node.js scripts", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"main": "./lib/bugsnag.js", | ||
@@ -6,0 +6,0 @@ "homepage": "http://bugsnag.com", |
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
69207
1452
2