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

browser-pack

Package Overview
Dependencies
Maintainers
1
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 0.10.1 to 0.10.2

6

index.js

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

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