[Pkg-javascript-commits] [node-module-deps] 168/444: fix a mismatch between mine() results and cached entries
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 690fd7f90ba89a3cce4b50cf053a4b2c6218edb1
Author: James Halliday <mail at substack.net>
Date: Sat Feb 8 03:53:25 2014 -0800
fix a mismatch between mine() results and cached entries
---
index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 5aecac4..5ff793d 100644
--- a/index.js
+++ b/index.js
@@ -236,20 +236,20 @@ module.exports = function (mains, opts) {
deps = [];
}
else {
- try { deps = mine(src) }
+ try { var depRows = mine(src) }
catch (ex) {
var message = ex && ex.message ? ex.message : ex;
return output.emit('error', new Error(
'Parsing file ' + file + ': ' + message
));
}
+ deps = depRows.map(function (d) { return d.name });
}
var p = deps.length;
var current = { id: file, filename: file, paths: [], package: pkg };
var resolved = {};
- deps.forEach(function (dep) {
- var id = dep.name;
+ deps.forEach(function (id) {
if (opts.filter && !opts.filter(id)) {
resolved[id] = false;
if (--p === 0) done();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list