browserify
Advanced tools
Comparing version 1.2.6 to 1.2.7
16
index.js
@@ -57,8 +57,12 @@ var wrap = require('./lib/wrap'); | ||
if (typeof opts.watch === 'object') { | ||
fs.watchFile(file, opts.watch, watcher); | ||
} | ||
else { | ||
fs.watchFile(file, watcher); | ||
} | ||
process.nextTick(function () { | ||
if (w.files[file] && w.files[file].synthetic) return; | ||
if (typeof opts.watch === 'object') { | ||
fs.watchFile(file, opts.watch, watcher); | ||
} | ||
else { | ||
fs.watchFile(file, watcher); | ||
} | ||
}); | ||
@@ -65,0 +69,0 @@ return body; |
@@ -206,5 +206,9 @@ var detective = require('detective'); | ||
Wrap.prototype.include = function (file, target, body) { | ||
var synthetic = !file; | ||
if (!file) file = Math.floor(Math.random() * Math.pow(2,32)).toString(16); | ||
this.files[file] = { | ||
body : this.wrap(target, body), | ||
target : target | ||
target : target, | ||
synthetic : synthetic | ||
}; | ||
@@ -211,0 +215,0 @@ return this; |
{ | ||
"name" : "browserify", | ||
"version" : "1.2.6", | ||
"version" : "1.2.7", | ||
"description" : "Browser-side require() for js directories and npm modules", | ||
@@ -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
65397
1583