New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

factor-bundle

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factor-bundle - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

test/common-deps.js

11

index.js

@@ -68,8 +68,8 @@ var Transform = require('stream').Transform;

addGroups(row.id);
}
else if (this._groups[row.id]) {
} else {
this._buffered[row.id] = row;
this._groups[row.id].forEach(addGroups);
if (this._groups[row.id]) {
this._groups[row.id].forEach(addGroups);
}
}
else this.push(row);

@@ -101,4 +101,5 @@ next();

var row = self._buffered[file];
var groups = nub(self._groups[file]);
var groups = nub(self._groups[file] || []);
if (groups.length === 0) ensureCommon[file] = true;
if (ensureCommon[file] || self._threshold(row, groups)) {

@@ -105,0 +106,0 @@ Object.keys(row.deps).forEach(function(k) {

{
"name": "factor-bundle",
"version": "0.1.0",
"version": "0.1.1",
"description": "factor browser-pack bundles into common shared bundles",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,3 +12,3 @@ var test = require('tape');

var files = [ 'x.js', 'y.js' ].map(function (file) {
return path.join(__dirname, '../example', file);
return path.join(__dirname, 'deps', file);
});

@@ -105,3 +105,3 @@ var expected = {

function norm (file) {
return path.normalize(__dirname + '/../example/' + file);
return path.normalize(__dirname + '/deps/' + file);
}
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