Comparing version 1.6.5 to 1.6.6
Changelog | ||
========= | ||
1.6.6 | ||
----- | ||
- Fix for accidental global variables. | ||
1.6.5 | ||
@@ -5,0 +9,0 @@ ----- |
@@ -17,3 +17,3 @@ var path = require("path"); | ||
} | ||
myClass = Object.prototype.toString.call(obj); | ||
var myClass = Object.prototype.toString.call(obj); | ||
if (myClass in classToType) { | ||
@@ -81,3 +81,3 @@ return classToType[myClass]; | ||
if (Utils.checkOwnProperty(source, key)) { | ||
val = source[key]; | ||
var val = source[key]; | ||
if (Utils.typeOf(val) === "object" && dest[key]) { | ||
@@ -108,3 +108,3 @@ if (alreadyMerged.indexOf(val) === -1) { | ||
} | ||
alreadyFiltered = options.alreadyFiltered || []; | ||
var alreadyFiltered = options.alreadyFiltered || []; | ||
Object.keys(object).forEach(function (key) { | ||
@@ -111,0 +111,0 @@ if (Utils.checkOwnProperty(object, key)) { |
{ | ||
"name": "bugsnag", | ||
"description": "Bugsnag notifier for node.js scripts", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"main": "./lib/bugsnag.js", | ||
@@ -6,0 +6,0 @@ "homepage": "http://bugsnag.com", |
@@ -290,2 +290,10 @@ Bugsnag Notifier for Node.js | ||
### hostname | ||
By default we'll fetch the hostname using Node's [os.hostname()](https://nodejs.org/api/os.html#os_os_hostname), but you can override this as follows: | ||
```javascript | ||
bugsnag.register("your-api-key-here", { hostname: "web1.example.com" } | ||
``` | ||
### onBeforeNotify | ||
@@ -387,3 +395,3 @@ | ||
bugsnag.notify(new Error("Something went badly wrong"), function (error, response) { | ||
if(err) { | ||
if(error) { | ||
// Something went wrong | ||
@@ -390,0 +398,0 @@ } else { |
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
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
75849
429