[Pkg-javascript-commits] [node-deps-sort] 39/79: only include fully-resolved deps
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:41:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-deps-sort.
commit 477324f318ee3504c0feb2c613d1c04b1c016f9f
Author: James Halliday <mail at substack.net>
Date: Wed Jul 23 04:45:59 2014 -0700
only include fully-resolved deps
---
index.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 5d437ac..76983e2 100644
--- a/index.js
+++ b/index.js
@@ -64,7 +64,9 @@ function sorter (rows, tr, opts) {
row.indexDeps = {};
Object.keys(row.deps).forEach(function (key) {
var id = row.deps[key];
- row.indexDeps[key] = index[id];
+ if (has(index, id)) {
+ row.indexDeps[key] = index[id];
+ }
});
if (row.dedupe) {
row.dedupeIndex = index[row.dedupe];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-deps-sort.git
More information about the Pkg-javascript-commits
mailing list