browser-pack
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -9,3 +9,4 @@ var JSONStream = require('JSONStream'); | ||
var prelude = fs.readFileSync(path.join(__dirname, '_prelude.js'), 'utf8'); | ||
var defaultPrelude = fs.readFileSync( | ||
path.join(__dirname, '_prelude.js'), 'utf8'); | ||
@@ -30,2 +31,3 @@ function newlinesIn(src) { | ||
var entries = []; | ||
var prelude = opts.prelude || defaultPrelude; | ||
@@ -39,3 +41,3 @@ var lineno = 1 + newlinesIn(prelude); | ||
function write (row) { | ||
if (first) stream.queue((opts.prelude || prelude) + '({'); | ||
if (first) stream.queue(prelude + '({'); | ||
@@ -42,0 +44,0 @@ if (row.sourceFile && !seenSourceFiles[row.sourceFile]) { |
{ | ||
"name": "browser-pack", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "pack node-style source files from a json stream into a browser bundle", | ||
@@ -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
22196
483