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

raven

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raven - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

7

lib/transports.js

@@ -31,2 +31,5 @@ var events = require('events');

e.reason = reason;
e.sendMessage = message;
e.requestHeaders = headers;
e.ident = ident;
client.emit('error', e);

@@ -43,3 +46,3 @@ }

req.end(message);
}
};

@@ -69,3 +72,3 @@ var https = require('https');

});
}
};

@@ -72,0 +75,0 @@ module.exports.http = new HTTPTransport();

@@ -85,3 +85,3 @@ var raven = require('./client');

var main_module = path.dirname(require.main.filename) + '/';
var main_module = (require.main && path.dirname(require.main.filename) || process.cwd()) + '/';

@@ -88,0 +88,0 @@ function getModule(filename, base) {

@@ -5,3 +5,3 @@ {

"keywords": ["raven", "sentry", "python", "errors", "debugging", "exceptions"],
"version": "0.6.2",
"version": "0.6.3",
"repository": "git://github.com/mattrobenolt/raven-node.git",

@@ -8,0 +8,0 @@ "author": "Matt Robenolt <matt@ydekproductions.com>",

@@ -21,2 +21,10 @@ # Raven [![Build Status](https://secure.travis-ci.org/mattrobenolt/raven-node.png?branch=master)](http://travis-ci.org/mattrobenolt/raven-node)

## Methods
```javascript
new raven.Client(String dsn[, Object options])
client.captureMessage(String message[[, Object options], Function callback])
client.captureError(Error error[[, Object options], Function callback])
client.captureQuery(String query[[, String type], Function callback])
```
## Basic Usage

@@ -29,3 +37,29 @@ ```javascript

```
You can specify a level in the second optional parameter. Default level is `error`
**There are 5 logging levels (in order):**
* debug (the least serious)
* info
* warning
* error
* fatal (the most serious)
```javascript
var raven = require('raven');
var client = new raven.Client('{{ SENTRY_DSN }}');
client.captureMessage("Another message", {level: 'info'})
```
**Adding extra info to messages**
```javascript
var raven = require('raven');
var client = new raven.Client('{{ SENTRY_DSN }}');
client.captureMessage("Another message", {level: 'info', extra: {'key': 'value'}})
```
## Logging an error

@@ -105,3 +139,3 @@ ```javascript

client.patchGlobal(function() {
console.log('Bye, bye, world.')
console.log('Bye, bye, world.');
process.exit(1);

@@ -113,10 +147,2 @@ });

## Methods
```javascript
new raven.Client(dsn[, options])
client.captureMessage(string[,callback])
client.captureError(Error[,callback])
client.captureQuery(string, string[,callback])
```
## Integrations

@@ -123,0 +149,0 @@ ### Connect/Express middleware

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