browser-pack
Advanced tools
Comparing version 6.0.1 to 6.0.2
18
index.js
@@ -47,9 +47,9 @@ var JSONStream = require('JSONStream'); | ||
var pre = umd.prelude(opts.standalone).trim(); | ||
stream.push(Buffer(pre + 'return ')); | ||
stream.push(new Buffer(pre + 'return ')); | ||
} | ||
else if (first && stream.hasExports) { | ||
var pre = opts.externalRequireName || 'require'; | ||
stream.push(Buffer(pre + '=')); | ||
stream.push(new Buffer(pre + '=')); | ||
} | ||
if (first) stream.push(Buffer(prelude + '({')); | ||
if (first) stream.push(new Buffer(prelude + '({')); | ||
@@ -85,3 +85,3 @@ if (row.sourceFile && !row.nomap) { | ||
stream.push(Buffer(wrappedSource)); | ||
stream.push(new Buffer(wrappedSource)); | ||
lineno += newlinesIn(wrappedSource); | ||
@@ -98,9 +98,9 @@ | ||
function end () { | ||
if (first) stream.push(Buffer(prelude + '({')); | ||
if (first) stream.push(new Buffer(prelude + '({')); | ||
entries = entries.filter(function (x) { return x !== undefined }); | ||
stream.push(Buffer('},{},' + JSON.stringify(entries) + ')')); | ||
stream.push(new Buffer('},{},' + JSON.stringify(entries) + ')')); | ||
if (opts.standalone && !first) { | ||
stream.push(Buffer( | ||
stream.push(new Buffer( | ||
'(' + JSON.stringify(stream.standaloneModule) + ')' | ||
@@ -118,5 +118,5 @@ + umd.postlude(opts.standalone) | ||
} | ||
stream.push(Buffer('\n' + comment + '\n')); | ||
stream.push(new Buffer('\n' + comment + '\n')); | ||
} | ||
if (!sourcemap && !opts.standalone) stream.push(Buffer(';\n')); | ||
if (!sourcemap && !opts.standalone) stream.push(new Buffer(';\n')); | ||
@@ -123,0 +123,0 @@ stream.push(null); |
{ | ||
"name": "browser-pack", | ||
"version": "6.0.1", | ||
"version": "6.0.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
28038