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.9.5 to 0.10.0

.babelrc

28

bin/morgue.js

@@ -51,3 +51,4 @@ #!/usr/bin/env node

console.error("");
console.error("There are more options available for querying. See documentation for details.");
console.error("Documentation is available at:");
console.error("https://github.com/backtrace-labs/backtrace-morgue#readme");
process.exit(1);

@@ -379,6 +380,8 @@ }

const debug = argv.debug;
var formats = { 'btt' : true, 'minidump' : true, 'json' : true };
var formats = { 'btt' : true, 'minidump' : true, 'json' : true, 'symbols' : true };
var universe, project;
var concurrency = 1;
var n_samples = 32;
var supported_compression = {'gzip' : true, 'deflate' : true};
var kvs = null;

@@ -391,6 +394,15 @@ if (!config.submissionEndpoint) {

if (!argv.format || !formats[argv.format]) {
console.error('Error: format must be one of btt, json or minidump'.error);
console.error('Error: format must be one of btt, json, symbols or minidump'.error);
process.exit(1);
}
if (argv.compression && !supported_compression[argv.compression]) {
console.error('Error: supported compression are gzip and deflate'.error);
process.exit(1);
}
if (argv.kv) {
kvs = argv.kv;
}
if (Array.isArray(argv._) === true) {

@@ -473,3 +485,3 @@ var split;

format: argv.format
}, function(error, result) {
}, argv.compression, function(error, result) {
samples.push(nsToUs(process.hrtime()) - s_st);

@@ -506,4 +518,5 @@

project: project,
format: argv.format
}, function(error, result) {
format: argv.format,
kvs: kvs
}, argv.compression, function(error, result) {
if (error) {

@@ -1150,2 +1163,5 @@ console.error((error + '').error)

sf = 'unique(' + sort + ')';
} else if (array[0][1]['sum(' + sort + ')']) {
transform = unique_compare;
sf = 'sum(' + sort + ')';
}

@@ -1152,0 +1168,0 @@

@@ -113,2 +113,14 @@ "use strict";

var kvs;
if (params && params.kvs) {
kvs = params.kvs.split(",");
kvs.forEach(function(kv) {
var pair = kv.split(":");
if (pair.length == 2) {
params[pair[0]] = pair[1];
}
});
delete params.kvs;
}
var fullParams;

@@ -155,2 +167,5 @@ if (params) {

};
if (opt && opt.compression) {
options.headers["Content-Encoding"] = opt.compression;
}
options.rejectUnauthorized = !this.insecure;

@@ -239,5 +254,5 @@

CoronerClient.prototype.put = function(object, options, callback) {
CoronerClient.prototype.put = function(object, options, compression, callback) {
this.post("/api/post", options, object, { binary: true }, callback);
this.post("/api/post", options, object, { binary: true, compression: compression }, callback);
};

@@ -244,0 +259,0 @@

{
"name": "backtrace-morgue",
"version": "0.9.5",
"version": "0.10.0",
"description": "command line interface to the Backtrace object store",
"main": "./lib/coroner.js",
"main": "./dist/lib/coroner.js",
"keywords": [

@@ -16,3 +16,3 @@ "backtrace",

},
"author": "Andrew Kelley <akelley@backtrace.io>",
"author": "Backtrace <team@backtrace.io>",
"license": "GPL-2.0",

@@ -22,2 +22,6 @@ "bugs": {

},
"scripts": {
"prepublish": "gulp compile",
"gulp": "gulp"
},
"homepage": "https://github.com/backtrace-labs/backtrace-morgue#readme",

@@ -38,4 +42,10 @@ "dependencies": {

"bin": {
"morgue": "./bin/morgue.js"
"morgue": "./dist/bin/morgue.js"
},
"devDependencies": {
"babel-preset-env": "^1.1.8",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2"
}
}

@@ -26,2 +26,8 @@ # morgue

### login
```
Usage: morgue login <url>
```
The first step to using `morgue` is to log into a server.

@@ -66,2 +72,11 @@

### put
```
Usage: morgue put <[<universe>/]project> <file> <--format=btt|minidump|json|symbols> [--compression=gzip|deflate] [--kv=key1:value1,key2:value2,...]
```
Uploads object file to the Backtrace object store. User has options to upload
compressed file and add key-values to the object.
### list

@@ -168,7 +183,1 @@

```
### login
```
Usage: morgue login <url>
```

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