Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fs-utils

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-utils - npm Package Compare versions

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('..', '..');
});
});
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