Socket
Socket
Sign inDemoInstall

dependents-editor-backend

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependents-editor-backend - npm Package Compare versions

Comparing version 1.13.2 to 1.13.3

16

bin/cli.js

@@ -8,3 +8,2 @@ #!/usr/bin/env node

var program = require('commander');
var isPlainObject = require('is-plain-object');

@@ -42,16 +41,3 @@ program

cli(program)
// TODO: consider moving into a cli.print method for testing
.then(function(result) {
if (!(result instanceof Array)) {
result = [result];
}
result.forEach(function(r) {
if (isPlainObject(r)) {
r = JSON.stringify(r);
}
console.log(r);
});
})
.then(cli.print)
.catch(function(message) {

@@ -58,0 +44,0 @@ console.error(message);

21

lib/cli.js

@@ -16,2 +16,3 @@ var Config = require('./Config');

var debug = require('debug')('backend');
var isPlainObject = require('is-plain-object');

@@ -41,3 +42,3 @@ module.exports = function(program) {

}
debug('processed config', config);
debug('processed config\n', config);

@@ -60,3 +61,3 @@ } catch (e) {

debug('command options', options);
debug('command options\n', options);

@@ -71,3 +72,3 @@ if (program.lookup) {

debug('performing a lookup with options: ', options);
debug('performing a lookup with options:\n', options);

@@ -189,1 +190,15 @@ var result = cabinet(options);

};
module.exports.print = function(result) {
if (!(result instanceof Array)) {
result = [result];
}
result.forEach(function(r) {
if (isPlainObject(r)) {
r = JSON.stringify(r);
}
console.log(r);
});
};
{
"name": "dependents-editor-backend",
"version": "1.13.2",
"version": "1.13.3",
"description": "The brains behind Dependents editor plugins",

@@ -28,12 +28,2 @@ "main": "lib/cli.js",

"homepage": "https://github.com/mrjoelkemp/node-dependents-editor-backend#readme",
"devDependencies": {
"babel": "~5.8.38",
"file-exists": "~1.0.0",
"jscs": "~2.1.0",
"jscs-preset-mrjoelkemp": "~1.0.0",
"jshint": "~2.8.0",
"mocha": "~2.2.5",
"os-tmpdir": "~1.0.1",
"rewire": "~2.5.1"
},
"dependencies": {

@@ -45,3 +35,3 @@ "callers": "~1.0.3",

"dependents": "~3.1.6",
"filing-cabinet": "~1.2.9",
"filing-cabinet": "~1.2.10",
"is-plain-object": "~2.0.1",

@@ -53,3 +43,14 @@ "mixpanel": "~0.4.0",

"tree-pic": "~1.0.1"
},
"devDependencies": {
"babel": "~5.8.38",
"file-exists": "~1.0.0",
"jscs": "~2.1.0",
"jscs-preset-mrjoelkemp": "~1.0.0",
"jshint": "~2.8.0",
"mocha": "~2.2.5",
"os-tmpdir": "~1.0.1",
"rewire": "~2.5.1",
"sinon": "~1.17.4"
}
}
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