🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

connect-airbrake

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-airbrake - npm Package Compare versions

Comparing version

to
0.2.0

2

lib/connect-airbrake.js

@@ -66,3 +66,3 @@ /*!

Logger = function(verbose){
if (verbose != null){
if (verbose == true){
return function(msg){

@@ -69,0 +69,0 @@ console.log(msg);

{
"name": "connect-airbrake",
"description": "airbrake app middleware for Connect",
"version": "0.1.0",
"version": "0.2.0",
"author": "Van Nguyen <thegoleffect@gmail.com>",

@@ -6,0 +6,0 @@ "dependencies": { "airbrake": ">= 0.2.1" },

@@ -17,2 +17,13 @@

Airbrake({ api_key: "" }),
);
);
That's it! It should report any exceptions/errors to Airbrake. You can pass in an additional option so that the errors are also logged to stdout:
var Airbrake = require('connect-airbrake');
var server = connect.createServer(
Airbrake({ api_key: "", verbose: true}),
);
## TODO:
* Unit tests