[Pkg-javascript-commits] [node-module-deps] 213/444: cache fix

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:47:56 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 179707858fe37192c938a4ee63820a03f509f325
Author: James Halliday <mail at substack.net>
Date:   Fri May 9 14:49:39 2014 -0700

    cache fix
---
 index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 5ee38b7..4984c01 100644
--- a/index.js
+++ b/index.js
@@ -148,7 +148,8 @@ Deps.prototype.resolve = function (id, parent, cb) {
 Deps.prototype.readFile = function (file, pkg) {
     if (this.cache && this.cache[file]) {
         var tr = through();
-        tr.push(this.cache[file]);
+        tr.push(this.cache[file].source);
+        tr.push(null);
         return tr;
     }
     var rs = fs.createReadStream(file);

-- 
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