dependents-editor-backend
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
1
7590
8
6
180
1
+ Addeddependents@~3.1.1