fileset
Advanced tools
Comparing version 1.0.1 to 2.0.2
@@ -5,2 +5,10 @@ # Change Log | ||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/mklabs/node-fileset/compare/v1.0.1...v2.0.2) (2016-06-27) | ||
<a name="2.0.0"></a> | ||
## [2.0.0](https://github.com/mklabs/node-fileset/compare/v1.0.1...v2.0.0) (2016-06-26) | ||
<a name="1.0.1"></a> | ||
@@ -7,0 +15,0 @@ ## [1.0.1](https://github.com/mklabs/node-fileset/compare/v1.0.0...v1.0.1) (2016-06-01) |
{ | ||
"name": "fileset", | ||
"version": "1.0.1", | ||
"version": "2.0.2", | ||
"description": "Wrapper around miniglob / minimatch combo to allow multiple patterns matching and include-exclude ability", | ||
"main": "./lib/fileset", | ||
"scripts": { | ||
"test": "bake test" | ||
"test": "make test" | ||
}, | ||
"dependencies": { | ||
"glob": "^7.0.3", | ||
"minimatch": "^3.0.0" | ||
"minimatch": "^3.0.2" | ||
}, | ||
@@ -34,2 +34,2 @@ "devDependencies": { | ||
"author": "mklabs" | ||
} | ||
} |
@@ -10,3 +10,3 @@ var assert = require('assert'); | ||
assert.ok(results.length, 'should return at least one element'); | ||
assert.equal(results.length, 2, 'actually, should return only two'); | ||
assert.equal(results.length, 1, 'actually, should return only one'); | ||
}); | ||
@@ -21,4 +21,3 @@ }); | ||
assert.ok(results.length, 'should return at least one element'); | ||
assert.equal(results.length, 7, 'actually, should return only 7'); | ||
assert.equal(results.length, 3, 'actually, should return only 3'); | ||
}); | ||
@@ -30,7 +29,7 @@ }); | ||
it('returns the list of matching file in this repo', function(done) { | ||
fileset('*.md', function(err, results) { | ||
fileset('*.js', function(err, results) { | ||
if(err) return done(err); | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.ok(results.length, 'should return at least one element'); | ||
assert.equal(results.length, 2, 'actually, should return only two'); | ||
assert.equal(results.length, 1, 'actually, should return only two'); | ||
done(); | ||
@@ -46,3 +45,3 @@ }); | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 11); | ||
assert.equal(results.length, 2); | ||
done(); | ||
@@ -56,3 +55,3 @@ }); | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 11); | ||
assert.equal(results.length, 2); | ||
done(); | ||
@@ -67,18 +66,7 @@ }); | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 13); | ||
assert.equal(results.length, 2); | ||
assert.deepEqual(results, [ | ||
'CHANGELOG.md', | ||
'README.md', | ||
'lib/fileset.js', | ||
'test/fixtures/an (odd) filename.js', | ||
'test/fixtures/glob/common.js', | ||
'test/fixtures/glob/glob.js', | ||
'test/fixtures/glob/sync.js', | ||
'test/fixtures/minimatch/minimatch.js', | ||
'test/mocha.js', | ||
'tests/fixtures/an (odd) filename.js', | ||
'tests/helper.js', | ||
'tests/test-sync.js', | ||
'tests/test.js' | ||
'fixtures/an (odd) filename.js', | ||
'mocha.js' | ||
]); | ||
@@ -94,13 +82,7 @@ | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 8); | ||
assert.equal(results.length, 2); | ||
assert.deepEqual(results, [ | ||
'lib/fileset.js', | ||
'test/fixtures/an (odd) filename.js', | ||
'test/fixtures/glob/common.js', | ||
'test/fixtures/glob/glob.js', | ||
'test/fixtures/glob/sync.js', | ||
'test/fixtures/minimatch/minimatch.js', | ||
'test/mocha.js', | ||
'tests/fixtures/an (odd) filename.js', | ||
'fixtures/an (odd) filename.js', | ||
'mocha.js' | ||
]); | ||
@@ -119,3 +101,3 @@ | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 11); | ||
assert.equal(results.length, 2); | ||
done(); | ||
@@ -130,18 +112,7 @@ }); | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 13); | ||
assert.equal(results.length, 2); | ||
assert.deepEqual(results, [ | ||
'CHANGELOG.md', | ||
'README.md', | ||
'lib/fileset.js', | ||
'test/fixtures/an (odd) filename.js', | ||
'test/fixtures/glob/common.js', | ||
'test/fixtures/glob/glob.js', | ||
'test/fixtures/glob/sync.js', | ||
'test/fixtures/minimatch/minimatch.js', | ||
'test/mocha.js', | ||
'tests/fixtures/an (odd) filename.js', | ||
'tests/helper.js', | ||
'tests/test-sync.js', | ||
'tests/test.js' | ||
'fixtures/an (odd) filename.js', | ||
'mocha.js' | ||
]); | ||
@@ -156,10 +127,9 @@ | ||
it('match files passed as an array with odd filenames', function(done) { | ||
fileset(['lib/*.js', 'test/fixtures/an (odd) filename.js'], ['node_modules/**']) | ||
fileset(['fixtures/*.md', 'fixtures/an (odd) filename.js'], ['*.md']) | ||
.on('error', done) | ||
.on('end', function(results) { | ||
assert.ok(Array.isArray(results), 'should be an array'); | ||
assert.equal(results.length, 2); | ||
assert.equal(results.length, 1); | ||
assert.deepEqual(results, [ | ||
'lib/fileset.js', | ||
'test/fixtures/an (odd) filename.js', | ||
'fixtures/an (odd) filename.js', | ||
]); | ||
@@ -166,0 +136,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
0
15249
14
195
Updatedminimatch@^3.0.2