browserify
Advanced tools
Comparing version 14.5.0 to 15.0.0
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 @@ |
{ | ||
"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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
350043
9
490
5546
822
134
+ Addeddetective@5.2.1(transitive)
+ Addedmodule-deps@5.0.1(transitive)
- Removedacorn@5.7.4(transitive)
- Removeddetective@4.7.1(transitive)
- Removedmodule-deps@4.1.1(transitive)
Updatedmodule-deps@^5.0.0