dependents-editor-backend
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -6,2 +6,4 @@ var Config = require('./Config'); | ||
var findDependents = require('dependents'); | ||
var callers = require('callers'); | ||
var q = require('q'); | ||
@@ -78,2 +80,17 @@ var path = require('path'); | ||
})); | ||
} else if (program.findCallers) { | ||
options.functionName = program.args[0].replace(/["|'|;]/g, ''); | ||
options.success = function(err, callers) { | ||
if (err) { | ||
deferred.reject(err.message || err); | ||
} else { | ||
deferred.resolve(callers); | ||
} | ||
}; | ||
debug('finding the callers of "' + options.functionName + '" with options: ', options); | ||
callers(options); | ||
} | ||
@@ -80,0 +97,0 @@ |
{ | ||
"name": "dependents-editor-backend", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "The brains behind Dependents editor plugins", | ||
@@ -36,2 +36,3 @@ "main": "lib/cli.js", | ||
"dependencies": { | ||
"callers": "~1.0.3", | ||
"commander": "~2.8.1", | ||
@@ -38,0 +39,0 @@ "debug": "~2.2.0", |
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
9057
217
9
7
+ Addedcallers@~1.0.3
+ Addedacorn@2.7.0(transitive)
+ Addedacorn-jsx@2.0.1(transitive)
+ Addedcallers@1.0.3(transitive)
+ Addedis-calling-function@1.0.4(transitive)
+ Addednode-source-walk@2.1.0(transitive)