[Pkg-javascript-commits] [node-module-deps] 14/444: row.deps is sometimes undefined
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:47:39 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 ae6445c35b53a13f42ae695b7093842f81834c30
Author: James Halliday <mail at substack.net>
Date: Tue Feb 19 12:00:29 2013 +1000
row.deps is sometimes undefined
---
index.js | 4 ++--
package.json | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index af57493..b406953 100644
--- a/index.js
+++ b/index.js
@@ -64,7 +64,7 @@ module.exports = function (mains) {
var r = files[row.filename] = {
id: row.filename,
source: row.source,
- deps: row.deps.reduce(function (acc, dep) {
+ deps: (row.deps || []).reduce(function (acc, dep) {
acc[dep.id] = dep.filename;
return acc;
}, {})
@@ -74,7 +74,7 @@ module.exports = function (mains) {
}
output.emit('data', r);
- walk(row.deps);
+ walk(row.deps || []);
});
}
};
diff --git a/package.json b/package.json
index c74c72c..0a0d433 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "module-deps",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "walk the dependency graph to generate json output that can be fed into browser-pack",
"main": "index.js",
"bin": {
--
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