Socket
Socket
Sign inDemoInstall

browserify

Package Overview
Dependencies
Maintainers
40
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify - npm Package Compare versions

Comparing version 14.5.0 to 15.0.0

assets/browserify.png

14

index.js

@@ -266,2 +266,9 @@ var mdeps = require('module-deps');

if (!opts) opts = {};
if (isArray(file)) {
var self = this;
file.forEach(function(file) {
self.exclude(file, opts);
});
return this;
}
var basedir = defined(opts.basedir, process.cwd());

@@ -275,2 +282,9 @@ this._exclude.push(file);

if (!opts) opts = {};
if (isArray(file)) {
var self = this;
file.forEach(function(file) {
self.ignore(file, opts);
});
return this;
}
var basedir = defined(opts.basedir, process.cwd());

@@ -277,0 +291,0 @@

12

package.json
{
"name": "browserify",
"version": "14.5.0",
"version": "15.0.0",
"description": "browser-side require() the node way",

@@ -11,4 +11,7 @@ "main": "index.js",

"type": "git",
"url": "http://github.com/substack/node-browserify.git"
"url": "http://github.com/browserify/browserify.git"
},
"engines": {
"node": ">= 4.0"
},
"keywords": [

@@ -47,3 +50,3 @@ "browser",

"labeled-stream-splicer": "^2.0.0",
"module-deps": "^4.0.8",
"module-deps": "^5.0.0",
"os-browserify": "~0.3.0",

@@ -78,6 +81,5 @@ "parents": "^1.0.1",

"coffeeify": "~1.1.0",
"es6ify": "~0.4.8",
"isstream": "^0.1.2",
"seq": "0.3.5",
"tap": "^2.2.0",
"tap": "^10.7.2",
"temp": "^0.8.1",

@@ -84,0 +86,0 @@ "through": "^2.3.4"

@@ -7,7 +7,7 @@ var browserify = require('../');

t.plan(1);
var b = browserify();
b.add(__dirname + '/ignore/main.js');
b.ignore( __dirname + '/ignore/skip.js');
b.bundle(function (err, src) {

@@ -19,5 +19,23 @@ if (err) t.fail(err);

test('ignore array', function(t) {
t.plan(2);
var b = browserify();
b.add(__dirname + '/ignore/array.js');
b.ignore([
__dirname + '/ignore/skip.js',
__dirname + '/ignore/skip2.js'
]);
b.bundle(function (err, src) {
if (err) {
t.fail(err);
}
vm.runInNewContext(src, { t: t });
});
});
test('ignore by package or id', function (t) {
t.plan(3);
var b = browserify();

@@ -24,0 +42,0 @@ b.add(__dirname + '/ignore/by-id.js');

@@ -8,3 +8,2 @@ var browserify = require('../');

var b = browserify(__dirname + '/yield/main.js');
b.transform('es6ify');

@@ -11,0 +10,0 @@ b.bundle(function (err, src) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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