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

backtrace-morgue

Package Overview
Dependencies
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backtrace-morgue - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

bin/A

38

bin/morgue.js

@@ -506,2 +506,4 @@ #!/usr/bin/env node

fold(query, argv.head, 'head', unaryPrint);
if (argv.object)
fold(query, argv.object, 'object', noFormatPrint);
if (argv.histogram)

@@ -705,2 +707,7 @@ fold(query, argv.histogram, 'histogram', histogramPrint);

function noFormatPrint(field, unused, format) {
console.log(field[0]);
return true;
}
function callstackPrint(cs) {

@@ -739,8 +746,30 @@ var callstack;

var label = frames[i];
var base = frames[i].indexOf('@');
if (base > -1) {
var split = frames[i].split('@');
if (split[1] === ':') {
label = split[0];
} else if (split[1] && split[1].length > 1) {
var comma;
base = split[1].lastIndexOf('/');
if (base && split[1].length > base)
base = split[1].substring(base + 1, base.length);
comma = base.lastIndexOf(':');
if (base.length === comma + 1)
base = base.substring(0, base.length - 1);
label = split[0] + '@' + base;
}
}
if (i === frames.length - 1) {
process.stdout.write(frames[i]);
break;
process.stdout.write(label);
} else {
process.stdout.write(label + ' ← ');
}
process.stdout.write(frames[i] + ' ← ');
}

@@ -892,2 +921,3 @@

unique: unaryPrint,
object: noFormatPrint,
sum: unaryPrint,

@@ -894,0 +924,0 @@ histogram: histogramPrint,

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

"use strict";
const http = require('http');

@@ -2,0 +4,0 @@ const https = require('https');

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

"use strict";
class Response {

@@ -2,0 +4,0 @@ /**

2

package.json
{
"name": "backtrace-morgue",
"version": "0.6.0",
"version": "0.7.0",
"description": "command line interface to the Backtrace object store",

@@ -5,0 +5,0 @@ "main": "./lib/coroner.js",

Sorry, the diff of this file is not supported yet

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