Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browser-pack

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-pack - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc