Comparing version 0.0.9 to 0.1.0
@@ -81,2 +81,3 @@ var fs = require('fs'); | ||
node.update(JSON.stringify(src)); | ||
tr.emit('file', fpath); | ||
if (--pending === 0) finish(output); | ||
@@ -83,0 +84,0 @@ }); |
{ | ||
"name": "brfs", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"description": "browserify fs.readFileSync() static asset inliner", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"tap": "~0.4.0", | ||
"browserify": "~2.22.0", | ||
"browserify": "~3.25.2", | ||
"concat-stream": "~1.0.0" | ||
@@ -17,0 +17,0 @@ }, |
@@ -10,3 +10,3 @@ var test = require('tap').test; | ||
test('parse non-js, non-json files', function (t) { | ||
t.plan(1); | ||
t.plan(2); | ||
@@ -29,6 +29,11 @@ var b = browserify(); | ||
b.bundle(function (err, src) { | ||
var bs = b.bundle(function (err, src) { | ||
if (err) t.fail(err); | ||
vm.runInNewContext(src, { console: { log: log } }); | ||
}); | ||
bs.on('transform', function (tr) { | ||
tr.on('file', function (file) { | ||
t.equal(file, __dirname + '/files/tr.html'); | ||
}); | ||
}); | ||
@@ -35,0 +40,0 @@ function log (msg) { |
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
15635
320
126