browserify
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -77,5 +77,9 @@ var fs = require('fs'); | ||
using = true; | ||
return self; | ||
}; | ||
self.on = ee.on.bind(ee); | ||
self.on = function () { | ||
ee.on.apply(ee, arguments); | ||
return self; | ||
}; | ||
@@ -82,0 +86,0 @@ self.source = function () { |
{ | ||
"name" : "browserify", | ||
"version" : "0.4.8", | ||
"version" : "0.4.9", | ||
"description" : "Browser-side require() for js directories and npm modules", | ||
@@ -5,0 +5,0 @@ "main" : "./index.js", |
@@ -6,13 +6,14 @@ var assert = require('assert'); | ||
exports.middleware = function () { | ||
var bundle = browserify(__dirname + '/middleware'); | ||
bundle.use(function (src, next) { | ||
setTimeout(function () { | ||
next(src + '\nvar yyy = 444;'); | ||
}, 50); | ||
}); | ||
bundle.use(function (src, next) { | ||
setTimeout(function () { | ||
next(src + '\nvar zzz = yyy + 111;'); | ||
}, 50); | ||
}); | ||
var bundle = browserify(__dirname + '/middleware') | ||
.use(function (src, next) { | ||
setTimeout(function () { | ||
next(src + '\nvar yyy = 444;'); | ||
}, 50); | ||
}) | ||
.use(function (src, next) { | ||
setTimeout(function () { | ||
next(src + '\nvar zzz = yyy + 111;'); | ||
}, 50); | ||
}) | ||
; | ||
@@ -19,0 +20,0 @@ var to = setTimeout(function () { |
Sorry, the diff of this file is not supported yet
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
83365
2057
334