backtrace-morgue
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -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 @@ /** |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4299939
23
1344