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.1.0 to 1.2.0

19

lib/cli.js

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

var Config = require('./Config');
var cabinet = require('filing-cabinet');
var Config = require('./Config');
var findDependents = require('dependents');
var q = require('q');

@@ -27,6 +29,5 @@ var path = require('path');

filename: program.filename,
excludes: config.excludes,
exclude: config.exclude,
config: config.requireConfig,
webpackConfig: config.webpackConfig,
target: program.args[0]
webpackConfig: config.webpackConfig
};

@@ -37,3 +38,3 @@

if (program.lookup) {
options.target = options.target.replace(/["|'|;]/g, '');
options.target = program.args[0].replace(/["|'|;]/g, '');
debug('performing a lookup');

@@ -60,2 +61,10 @@ var result = lookup(options);

deferred.resolve(result);
} else if (program.findDependents) {
debug('finding the dependents of the given file: ' + options.filename);
findDependents(options, function(err, dependents) {
debug('found the following dependents: ', dependents);
deferred.resolve(dependents);
});
}

@@ -62,0 +71,0 @@

{
"name": "dependents-editor-backend",
"version": "1.1.0",
"version": "1.2.0",
"description": "The brains behind Dependents editor plugins",
"main": "lib/cli.js",
"scripts": {
"test": "jscs lib test/test.js test/lib bin && jshint && ./node_modules/.bin/mocha --compilers js:babel/register test/test.js 'test/lib/**/*.js'"
"test": "jscs lib test/test.js test/lib test/features bin && jshint && ./node_modules/.bin/mocha --compilers js:babel/register test/test.js 'test/lib/**/*.js' 'test/features/**/*.js'",
"debug-test": "DEBUG=*,-mocha:*,-babel,-parse npm test"
},

@@ -37,2 +38,3 @@ "bin": {

"debug": "~2.2.0",
"dependents": "~3.1.1",
"file-exists": "~1.0.0",

@@ -39,0 +41,0 @@ "filing-cabinet": "~1.2.1",

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