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

gutil

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gutil - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

.idea/.name

24

lib/util/walk.js

@@ -30,5 +30,11 @@ var fs = require("fs");

var _walkSync = function(dir, done) {
var results = [];
var list = fs.readdirSync(dir);
var _walkSync = function(dir, results, filters) {
for(var j=0; j<filters.length; j++) {
if(dir.indexOf(filters[j]) != -1) {
return
}
}
var list = fs.readdirSync(dir);
for(var i=0; i<list.length; i++) {

@@ -39,7 +45,7 @@ var file = list[i];

} else {
file = dir + '/' + file;
file = path.join(dir, file);
var stat = fs.statSync(file);
if (stat && stat.isDirectory()) {
var res = _walkSync(file);
results = results.concat(res);
var res = _walkSync(file, results, filters);
} else {

@@ -65,6 +71,8 @@ results.push(file);

var walk = function(dir) {
return _walkSync(dir);
var walk = function(dir, filters) {
var result = [];
_walkSync(dir, result, filters);
return result;
}
module.exports=walk;
{
"name": "gutil",
"description": "GUtil",
"version": "1.6.1",
"version": "1.6.2",
"private": false,

@@ -6,0 +6,0 @@ "licenses": [

@@ -75,2 +75,2 @@ gutil

- **walk**
- **string** : utils functions for String
- **string** : utils functions for String
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