fs-jetpack
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -70,5 +70,7 @@ "use strict"; | ||
callback(fileItemPath, fileItem); | ||
if (fileItem.type === "dir" && currentLevel < options.maxLevelsDeep) { | ||
walkSync(fileItemPath, currentLevel + 1); | ||
if (fileItem !== undefined) { | ||
callback(fileItemPath, fileItem); | ||
if (fileItem.type === "dir" && currentLevel < options.maxLevelsDeep) { | ||
walkSync(fileItemPath, currentLevel + 1); | ||
} | ||
} | ||
@@ -169,11 +171,13 @@ }); | ||
.then(fileItem => { | ||
if (performInspectOnEachNode) { | ||
callback(fileItemPath, fileItem); | ||
} else { | ||
callback(fileItemPath, { | ||
name: fileItem.name, | ||
type: fileItem.type | ||
}); | ||
if (fileItem !== undefined) { | ||
if (performInspectOnEachNode) { | ||
callback(fileItemPath, fileItem); | ||
} else { | ||
callback(fileItemPath, { | ||
name: fileItem.name, | ||
type: fileItem.type | ||
}); | ||
} | ||
goDeeperIfDir(fileItemPath, fileItem); | ||
} | ||
goDeeperIfDir(fileItemPath, fileItem); | ||
concurrentOperationDone(); | ||
@@ -180,0 +184,0 @@ }) |
{ | ||
"name": "fs-jetpack", | ||
"description": "Better file system API", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"author": "Jakub Szwacz <jakub@szwacz.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -1,4 +0,4 @@ | ||
# fs-jetpack [![Build Status](https://travis-ci.com/szwacz/fs-jetpack.svg?branch=master)](https://travis-ci.com/szwacz/fs-jetpack) [![Build status](https://ci.appveyor.com/api/projects/status/er206e91fpuuqf58?svg=true)](https://ci.appveyor.com/project/szwacz/fs-jetpack) [![codecov](https://codecov.io/gh/szwacz/fs-jetpack/branch/master/graph/badge.svg)](https://codecov.io/gh/szwacz/fs-jetpack) | ||
# fs-jetpack [![Build Status](https://app.travis-ci.com/szwacz/fs-jetpack.svg?branch=master)](https://app.travis-ci.com/szwacz/fs-jetpack) [![Build status](https://ci.appveyor.com/api/projects/status/er206e91fpuuqf58?svg=true)](https://ci.appveyor.com/project/szwacz/fs-jetpack) [![codecov](https://codecov.io/gh/szwacz/fs-jetpack/branch/master/graph/badge.svg)](https://codecov.io/gh/szwacz/fs-jetpack) | ||
This project was started out of frustration "Why using [standard 'fs' library](http://nodejs.org/api/fs.html) has to be so tedious?". There are efforts to make the experience more pleasant ([fs-extra](https://github.com/jprichardson/node-fs-extra), [mkdirp](https://github.com/isaacs/node-mkdirp), [rimraf](https://github.com/isaacs/rimraf), etc.) but all of them just sprinkle something extra on top, not addressing the root problem. That is where _fs-jetpack_ aims: completely rethought, much more convenient API to work with file system. You will especially appreciate it as a scripting/tooling library and for your build pipelines. | ||
API for your everyday file system manipulations, much more convenient than [fs](http://nodejs.org/api/fs.html) or [fs-extra](https://github.com/jprichardson/node-fs-extra). You will especially appreciate it as a scripting/tooling library and for your build pipelines. | ||
@@ -5,0 +5,0 @@ # Table of Contents |
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
3079
131783