Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bugsnag

Package Overview
Dependencies
Maintainers
5
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bugsnag - npm Package Compare versions

Comparing version 1.6.5 to 1.6.6

4

CHANGELOG.md
Changelog
=========
1.6.6
-----
- Fix for accidental global variables.
1.6.5

@@ -5,0 +9,0 @@ -----

6

lib/utils.js

@@ -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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc