Socket
Socket
Sign inDemoInstall

raven

Package Overview
Dependencies
2
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.5 to 0.5.6

4

example/app.js

@@ -0,4 +1,6 @@

console.log(module);
// Set up Raven
var dsn = 'https://366f412ff7664f44891889321c8925eb:ff8d68e117804bd28776c0c2ee3cb9b1@app.getsentry.com/4291';
var raven = require('raven');
var raven = require('../');

@@ -5,0 +7,0 @@ // Express

@@ -0,1 +1,3 @@

console.log(module);
exports.broken = function brokenhandler(req, res) {

@@ -2,0 +4,0 @@ foo(req, res);

@@ -22,3 +22,3 @@ var utils = require('./utils');

if (frames[n].in_app) {
kwargs['culprit'] = frames[n].function;
kwargs['culprit'] = utils.getCulprit(frames[n]);
break;

@@ -25,0 +25,0 @@ }

@@ -60,2 +60,8 @@ var raven = require('./client');

module.exports.getCulprit = function getCulprit(frame) {
if (frame.module || frame['function'])
return (frame.module || '?') + ' at ' + (frame['function'] || '?');
return '<unknown>';
};
var module_cache;

@@ -122,3 +128,3 @@ module.exports.getModules = function getModules() {

lineno: line.getLineNumber(),
'function': getFunction(line)
'function': getFunction(line),
}, isInternal = line.isNative() ||

@@ -131,2 +137,5 @@ (frame.filename[0] !== '/' &&

// Extract a module name based on the filename
if (frame.filename) frame.module = path.basename(frame.filename, '.js');
// internal Node files are not full path names. Ignore them.

@@ -133,0 +142,0 @@ if (isInternal) {

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

"keywords": ["raven", "sentry", "python"],
"version": "0.5.5",
"version": "0.5.6",
"repository": "git://github.com/mattrobenolt/raven-node.git",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc