main-bower-files
Advanced tools
Comparing version 2.8.0 to 2.8.1
module.exports = process.env.LIB_COV ? require('./lib-cov') : require('./lib'); |
var fs = require('fs'), | ||
exists = require('path-exists').sync, | ||
path = require('path'), | ||
globule = require('globule'), | ||
multimatch = require('multimatch'), | ||
PackageCollection = require('./package_collection'); | ||
@@ -98,3 +98,3 @@ | ||
if (typeof opts.filter === 'string' || Array.isArray(opts.filter)) { | ||
files = globule.match(opts.filter, files); | ||
files = multimatch(files, opts.filter); | ||
} else if (opts.filter instanceof RegExp) { | ||
@@ -101,0 +101,0 @@ files = files.filter(function(file) { |
@@ -0,0 +0,0 @@ require('colors'); |
var path = require('path'), | ||
fs = require('fs'), | ||
exists = require('path-exists').sync, | ||
stripJsonComments = require('strip-json-comments'), | ||
_ = require('lodash'), | ||
extend = require('extend'), | ||
Package = require('./package'), | ||
@@ -66,3 +67,3 @@ logger = require('./logger'), | ||
collectPackages: function() { | ||
if (!fs.existsSync(this.opts.paths.bowerJson)) { | ||
if (!exists(this.opts.paths.bowerJson)) { | ||
throw new Error('bower.json does not exist at: ' + this.opts.paths.bowerJson); | ||
@@ -85,3 +86,3 @@ } | ||
this.overrides = _.defaults(bowerJson.overrides || {}, this.overrides); | ||
this.overrides = extend(bowerJson.overrides || {}, this.overrides); | ||
@@ -88,0 +89,0 @@ if (includeDev !== 'exclusive') { |
var path = require('path'), | ||
fs = require('fs'), | ||
exists = require('path-exists').sync, | ||
glob = require('glob'), | ||
globby = require('globby').sync, | ||
logger = require('./logger'), | ||
@@ -140,3 +140,3 @@ Package; | ||
main.forEach(function(pattern) { | ||
var _files = glob.sync(pattern, { | ||
var _files = globby(pattern, { | ||
cwd: this.path | ||
@@ -143,0 +143,0 @@ }); |
{ | ||
"name": "main-bower-files", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"description": "Get main files from your installed bower packages.", | ||
@@ -27,6 +27,5 @@ "main": "index.js", | ||
"colors": "^0.6.2", | ||
"glob": "^4.0.3", | ||
"globule": "^0.2.0", | ||
"lodash": "^3.8.0", | ||
"minimatch": "^1.0.0", | ||
"extend": "^2.0.1", | ||
"globby": "^2.0.0", | ||
"multimatch": "^2.0.0", | ||
"path-exists": "^1.0.0", | ||
@@ -33,0 +32,0 @@ "strip-json-comments": "^1.0.2", |
@@ -134,3 +134,3 @@ main-bower-files | ||
"development": "file.js", | ||
"production": "file.min.js", | ||
"production": "file.min.js" | ||
} | ||
@@ -137,0 +137,0 @@ } |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
{ | ||
"main": "main.js" | ||
} |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
// I do nothing |
@@ -0,0 +0,0 @@ { |
// I do nothing |
{ | ||
"main": "./decoy.js" | ||
} |
// I do nothing |
// I do nothing and should not be listed. |
{ | ||
"main": "lib/deeppaths.js" | ||
} |
{ | ||
"main": "default.js" | ||
} |
//I also do nothing |
@@ -0,0 +0,0 @@ { |
// I do nothing and should not be on the list, because I was ignored by the bower.json |
{ | ||
"main": "./includeDev.js" | ||
} |
// I do nothing |
@@ -0,0 +0,0 @@ { |
// I do nothing |
{ | ||
"main": "not-existing-file.js" | ||
} |
{ | ||
"name": "not-existing-main" | ||
} |
// I do nothing, but I am on the list! |
{ | ||
"main": "./overwritten.js" | ||
} |
// I do nothing and should not be on the list, because I was overwritten by the bower.json |
@@ -0,0 +0,0 @@ { |
// I do nothing |
{ | ||
"main": "./simple.js" | ||
} |
// I do nothing |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38983
7
795
63
1
+ Addedextend@^2.0.1
+ Addedglobby@^2.0.0
+ Addedmultimatch@^2.0.0
+ Addedarray-differ@1.0.0(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedasync@1.5.2(transitive)
+ Addedextend@2.0.2(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedglobby@2.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmultimatch@2.1.0(transitive)
+ Addedobject-assign@3.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
- Removedglob@^4.0.3
- Removedglobule@^0.2.0
- Removedlodash@^3.8.0
- Removedminimatch@^1.0.0
- Removedglob@3.2.11(transitive)
- Removedglobule@0.2.0(transitive)
- Removedlodash@2.4.23.10.1(transitive)
- Removedminimatch@0.3.01.0.0(transitive)