[Pkg-javascript-commits] [node-module-deps] 25/444: check for undefined instead of falsy row.source since the empty string is a valid value

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:40 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 6fab99e83ec63a421d2b3c1dc4a159cecb43d8bb
Author: James Halliday <mail at substack.net>
Date:   Sat Feb 23 00:52:54 2013 -0800

    check for undefined instead of falsy row.source since the empty string is a valid value
---
 index.js     | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index ac19b87..3d700d1 100644
--- a/index.js
+++ b/index.js
@@ -63,7 +63,7 @@ module.exports = function (mains, opts) {
     
     function walk (rows) {
         rows.forEach(function (row) {
-            if (!row.source || files[row.filename]) return;
+            if (row.source === undefined || files[row.filename]) return;
             var r = files[row.filename] = {
                 id: row.filename,
                 source: row.source,
diff --git a/package.json b/package.json
index db24d10..683448a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "module-deps",
-    "version": "0.2.4",
+    "version": "0.2.5",
     "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