Comparing version 0.10.0 to 0.10.1
10
index.js
@@ -10,5 +10,5 @@ var through = require('through'); | ||
function watchify (opts) { | ||
function watchify (files, opts) { | ||
if (!opts) opts = {}; | ||
var b = typeof opts.bundle === 'function' ? opts : browserify(opts); | ||
var b = typeof files.bundle === 'function' ? files : browserify(files, opts); | ||
var cache = {}; | ||
@@ -55,5 +55,5 @@ var pkgcache = {}; | ||
function watchFile (file) { | ||
if (fwatchers[file]) return; | ||
if (!fwatchers[file]) fwatchers[file] = []; | ||
if (!fwatcherFiles[file]) fwatcherFiles[file] = []; | ||
if (fwatcherFiles[file].indexOf(file) >= 0) return; | ||
@@ -66,6 +66,8 @@ var w = chokidar.watch(file, {persistent: true}); | ||
fwatchers[file].push(w); | ||
fwatcherFiles[file].push(file); | ||
} | ||
function watchDepFile(mfile, file) { | ||
if (!fwatchers[mfile]) return; | ||
if (!fwatchers[mfile]) fwatchers[mfile] = []; | ||
if (!fwatcherFiles[mfile]) fwatcherFiles[mfile] = []; | ||
if (fwatcherFiles[mfile].indexOf(file) >= 0) return; | ||
@@ -72,0 +74,0 @@ |
{ | ||
"name": "watchify", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "watch mode for browserify builds", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23967
604