Comparing version 0.3.9 to 0.3.10
27
index.js
@@ -321,2 +321,15 @@ /** | ||
// Match one or more globbing patterns against one | ||
// or more file paths. | ||
file.match = function(patterns, filepaths, options) { | ||
var opts = _.extend({}, options); | ||
return glob.match(patterns, filepaths, opts); | ||
}; | ||
// Returns `true` if any files were matched | ||
file.isMatch = function(patterns, filepaths, options) { | ||
var opts = _.extend({}, options); | ||
return glob.isMatch(patterns, filepaths, opts); | ||
}; | ||
// Given a set of source file paths, returns an array | ||
@@ -328,3 +341,3 @@ // of src-dest file mapping objects. Example: | ||
opts.srcBase = opts.cwd; | ||
return glob.findMapping(filepaths, opts); | ||
return glob.mapping(filepaths, opts); | ||
}; | ||
@@ -340,15 +353,3 @@ | ||
// Match one or more globbing patterns against one | ||
// or more file paths. | ||
file.match = function(patterns, filepaths, options) { | ||
var opts = _.extend({}, options); | ||
return glob.match(patterns, filepaths, opts); | ||
}; | ||
// Returns `true` if any files were matched | ||
file.isMatch = function(patterns, filepaths, options) { | ||
var opts = _.extend({}, options); | ||
return glob.isMatch(patterns, filepaths, opts); | ||
}; | ||
// Returns the resolved filepath for a specific file using | ||
@@ -355,0 +356,0 @@ // globbing patterns. If multiple matches are found, only |
{ | ||
"name": "fs-utils", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "File system extras and utilities to extend the Node.js fs module.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -538,1 +538,12 @@ /** | ||
}); | ||
describe('cwd:', function() { | ||
it('should change the cwd', function() { | ||
var expected = file.normalizeSlash(path.join(cwd, 'test', 'fixtures')); | ||
file.setCWD('test', 'fixtures'); | ||
var actual = file.normalizeSlash(process.cwd()); | ||
expect(actual).to.eql(expected); | ||
file.setCWD('..', '..'); | ||
}); | ||
}); |
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
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
54136
1512