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

fs-plus

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-plus - npm Package Compare versions

Comparing version 2.2.4 to 2.2.5

15

lib/fs-plus.js

@@ -292,5 +292,4 @@ (function() {

traverse = function(directoryPath, onFile, onDirectory) {
var childPath, file, linkStats, stats, _i, _len, _ref, _results;
var childPath, file, linkStats, stats, _i, _len, _ref;
_ref = fs.readdirSync(directoryPath);
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {

@@ -307,13 +306,9 @@ file = _ref[_i];

if (onDirectory(childPath)) {
_results.push(traverse(childPath, onFile, onDirectory));
} else {
_results.push(void 0);
traverse(childPath, onFile, onDirectory);
}
} else if (stats.isFile()) {
_results.push(onFile(childPath));
} else {
_results.push(void 0);
onFile(childPath);
}
}
return _results;
return void 0;
};

@@ -448,3 +443,3 @@ return traverse(rootPath, onFile, onDirectory);

isMarkdownExtension: function(ext) {
return _.indexOf(['.markdown', '.md', '.mdown', '.mkd', '.mkdown', '.ron'], ext, true) >= 0;
return _.indexOf(['.markdown', '.md', '.mdown', '.mkd', '.mkdown', '.rmd', '.ron'], ext, true) >= 0;
},

@@ -451,0 +446,0 @@ isCaseInsensitive: function() {

{
"name": "fs-plus",
"version": "2.2.4",
"version": "2.2.5",
"description": "node's fs with more helpers",

@@ -5,0 +5,0 @@ "main": "./lib/fs-plus.js",

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