Comparing version 1.1.3 to 1.1.4
Changelog | ||
========= | ||
1.1.4 | ||
----- | ||
- Send hostname to Bugsnag | ||
1.1.1 | ||
@@ -40,2 +44,2 @@ ----- | ||
- Change default notifyReleaseStages to notify in "development" as well as "production" by default. | ||
- Execute onUncaughtErrorHandler in the callback from notifyBugsnag, in case exit is called in the handler. | ||
- Execute onUncaughtErrorHandler in the callback from notifyBugsnag, in case exit is called in the handler. |
@@ -30,2 +30,4 @@ var Configuration, Logger, Utils, path; | ||
Configuration.hostname = process.env.DYNO ? null : require("os").hostname(); | ||
Configuration.apiKey = process.env.BUGSNAG_API_KEY; | ||
@@ -71,2 +73,3 @@ | ||
Configuration.onUncaughtError = options.onUncaughtError || Configuration.onUncaughtError; | ||
Configuration.hostname = options.hostname || Configuration.hostname; | ||
if (options.projectRoot != null) { | ||
@@ -73,0 +76,0 @@ Configuration.projectRoot = Utils.fullPath(options.projectRoot); |
@@ -31,3 +31,3 @@ var Logger, | ||
output = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
if (this.logLevel === "warn" || this.logLevel === "log") { | ||
if (this.logLevel === "warn" || this.logLevel === "info") { | ||
return console.log.apply(console, ["" + LOG_PREFIX + ": "].concat(__slice.call(output))); | ||
@@ -34,0 +34,0 @@ } |
@@ -51,2 +51,7 @@ var Configuration, Logger, Notification, Utils, path, requestInfo; | ||
} | ||
if (Configuration.hostname) { | ||
event.device = { | ||
hostname: Configuration.hostname | ||
}; | ||
} | ||
if (options.req) { | ||
@@ -53,0 +58,0 @@ this.processRequest(event, requestInfo(options.req)); |
{ | ||
"name": "bugsnag", | ||
"description": "Bugsnag notifier for node.js scripts", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"main": "./lib/bugsnag.js", | ||
@@ -6,0 +6,0 @@ "homepage": "http://bugsnag.com", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
70786
570
6