From e9fe543a8ff45b125273159dbd1477f2b9cc4759 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 14 Mar 2015 20:31:16 +0200 Subject: [PATCH] Update index.js Fixes bug with JSON requires from JS files not being modularised cleanly. --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 7dd8964..233c188 100644 --- a/index.js +++ b/index.js @@ -5,13 +5,13 @@ var chokidar = require('chokidar'); module.exports = watchify; module.exports.args = { - cache: {}, packageCache: {}, fullPaths: true + _cache: {}, _packageCache: {}, fullPaths: true }; function watchify (b, opts) { if (!opts) opts = {}; - var cache = b._options.cache; - var pkgcache = b._options.packageCache; + var cache = b._options._cache; + var pkgcache = b._options._packageCache; var changingDeps = {}; var pending = false;