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

bugsnag

Package Overview
Dependencies
Maintainers
7
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 2.4.0 to 2.4.1

5

CHANGELOG.md
Changelog
=========
## 2.4.1 (2018-06-07)
### Fixed
- TypeScript definitions updated to match current configuration options (#144) (@amrocha)
## 2.4.0 (2018-06-01)

@@ -5,0 +10,0 @@

12

examples/express/api.js

@@ -25,7 +25,9 @@ const bugsnag = require("./bugsnag");

// In that case we can attach some user data to the request, so we know which user was affected by the error.
bugsnag.requestData.user = {
id: 1,
name: "james",
plan: "beast-mode",
};
if (bugsnag.requestData) {
bugsnag.requestData.user = {
id: 1,
name: "james",
plan: "beast-mode",
};
}
next(null);

@@ -32,0 +34,0 @@ }

@@ -8,4 +8,2 @@ const express = require("express");

app.use(bodyParser.json());
// We need to add the Bugsnag request handler middleware, so when an async error occurs we're

@@ -15,2 +13,5 @@ // able to notify any middleware in the chain (in this case the Bugsnag error handler).

// Parse the request body into JSON
app.use(bodyParser.json());
// In your application, it's likely you have some form of session system. For this example, we're

@@ -17,0 +18,0 @@ // just adding some fake user information to any unhandled errors, so we can track what kind of

@@ -27,23 +27,40 @@ // Type definitions for bugsnag-node v1.9.1

interface ConfigurationOptions {
logger?: any;
logLevel?: string;
releaseStage?: string;
appType?: string;
appVersion?: string;
autoCaptureSessions?: boolean;
autoNotify?: boolean;
useSSL?: boolean;
autoNotifyUnhandledRejection?: boolean;
endpoints?: Endpoints;
filters?: string[];
notifyReleaseStages?: string[];
headers?: { [key: string]: string };
hostname?: string;
logger?: Logger;
logLevel?: string;
metaData?: { [key: string]: any };
notifyHost?: string;
notifyPath?: string;
notifyPort?: number;
notifyPath?: string;
metaData?: { [key: string]: any };
notifyReleaseStages?: string[];
onUncaughtError?(error: string | Error): void;
hostname?: string;
packageJSON?: string;
projectRoot?: string;
proxy?: string;
headers?: { [key: string]: string };
projectRoot?: string;
packageJSON?: string;
releaseStage?: string;
sendCode?: boolean;
sessionEndpoint?: string;
useSSL?: boolean;
}
interface Logger {
info();
warn();
error();
debug();
}
interface Endpoints {
notify: string;
sessions?: string;
}
interface NotifyOptions {

@@ -50,0 +67,0 @@ errorName?: string;

module.exports = {
name: "Bugsnag Node Notifier",
version: "2.4.0",
version: "2.4.1",
url: "https://github.com/bugsnag/bugsnag-node"
}
{
"name": "bugsnag",
"description": "Bugsnag notifier for node.js scripts",
"version": "2.4.0",
"version": "2.4.1",
"main": "./lib/bugsnag.js",

@@ -6,0 +6,0 @@ "typings": "./lib/bugsnag.d.ts",

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