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.1 to 0.6.2

bin/raven

12

lib/client.js

@@ -55,3 +55,3 @@ var parsers = require('./parsers');

kwargs['extra']['node'] = process.version;
kwargs['logger'] = this.loggerName;
kwargs['logger'] = kwargs['logger'] || this.loggerName;
kwargs['event_id'] = uuid().replace(/-/g, '');

@@ -63,9 +63,11 @@ kwargs['timestamp'] = new Date().toISOString().split('.')[0];

var ident = {'id': kwargs['event_id']};
// this will happen asynchronously. We don't care about it's response.
this._enabled && this.send(kwargs);
this._enabled && this.send(kwargs, ident);
return {'id': kwargs['event_id']};
return ident;
};
_.send = function send(kwargs) {
_.send = function send(kwargs, ident) {
var self = this;

@@ -92,3 +94,3 @@

self.transport.send(self, message, headers);
self.transport.send(self, message, headers, ident);
});

@@ -95,0 +97,0 @@ };

@@ -14,3 +14,3 @@ var events = require('events');

util.inherits(HTTPTransport, Transport);
HTTPTransport.prototype.send = function(client, message, headers) {
HTTPTransport.prototype.send = function(client, message, headers, ident) {
var options = {

@@ -25,3 +25,3 @@ hostname: client.dsn.host,

if(res.statusCode >= 200 && res.statusCode < 300) {
client.emit('logged');
client.emit('logged', ident);
} else {

@@ -58,3 +58,3 @@ var reason = res.headers['x-sentry-error'];

util.inherits(UDPTransport, Transport);
UDPTransport.prototype.send = function(client, message, headers) {
UDPTransport.prototype.send = function(client, message, headers, ident) {
message = new Buffer(headers['X-Sentry-Auth'] + '\n\n'+ message);

@@ -67,3 +67,3 @@

}
client.emit('logged');
client.emit('logged', ident);
udp.close();

@@ -70,0 +70,0 @@ });

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

response.path = parsed.pathname.substr(0, index+1);
response.project_id = ~~parsed.pathname.substr(index+1);
response.project_id = parsed.pathname.substr(index+1);
response.port = ~~parsed.port || protocolMap[response.protocol] || 443;

@@ -50,0 +50,0 @@ return response;

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

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

@@ -11,2 +11,5 @@ "author": "Matt Robenolt <matt@ydekproductions.com>",

"main": "index",
"bin": {
"raven": "./bin/raven"
},
"scripts": {

@@ -21,3 +24,3 @@ "test": "NODE_ENV=test mocha --reporter dot && NODE_ENV=test coffee ./test/run.coffee"

"stack-trace": "0.0.7",
"lsmod": "0.0.2",
"lsmod": "~0.0.3",
"cookie": "0.1.0"

@@ -24,0 +27,0 @@ },

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