@platform/fs
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -34,9 +34,7 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var exists, getFiles, files, _a, bytes; | ||
var getFiles, exists, files, _a, bytes; | ||
var _this = this; | ||
return tslib_1.__generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: return [4, fsExtra.pathExists(path)]; | ||
case 1: | ||
exists = _b.sent(); | ||
case 0: | ||
getFiles = function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
@@ -58,2 +56,5 @@ var pattern, wait; | ||
}); }; | ||
return [4, fsExtra.pathExists(path)]; | ||
case 1: | ||
exists = _b.sent(); | ||
if (!exists) return [3, 3]; | ||
@@ -60,0 +61,0 @@ return [4, getFiles()]; |
{ | ||
"name": "@platform/fs", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "File system tools.", | ||
@@ -15,14 +15,14 @@ "main": "lib/index", | ||
"dependencies": { | ||
"@types/fs-extra": "7.0.0", | ||
"@types/fs-extra": "8.0.0", | ||
"@types/js-yaml": "3.12.1", | ||
"archiver": "3.0.0", | ||
"extract-zip": "1.6.7", | ||
"fast-glob": "3.0.2", | ||
"filesize": "^4.1.2", | ||
"fs-extra": "8.0.1", | ||
"fast-glob": "3.0.4", | ||
"filesize": "4.1.2", | ||
"fs-extra": "8.1.0", | ||
"js-yaml": "3.13.1" | ||
}, | ||
"devDependencies": { | ||
"@platform/test": "0.0.58", | ||
"@platform/ts.libs": "3.5.3", | ||
"@platform/test": "0.0.59", | ||
"@platform/ts.libs": "3.5.4", | ||
"@types/archiver": "3.0.0", | ||
@@ -29,0 +29,0 @@ "@types/extract-zip": "1.6.2", |
![Module](https://img.shields.io/badge/%40platform-fs-%23EA4E7E.svg) | ||
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) | ||
[![NPM](https://img.shields.io/npm/v/@platform/fs.svg?colorB=blue&style=flat)](https://www.npmjs.com/package/@platform/fs) | ||
![banner](https://uiharness.sfo2.digitaloceanspaces.com/%40platform/repo-banners/fs.png) | ||
# fs | ||
File system tools. | ||
## Setup | ||
yarn add @platform/fs | ||
<p> <p> | ||
<p> <p> | ||
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
95036
1982
19
+ Added@types/fs-extra@8.0.0(transitive)
+ Addedfast-glob@3.0.4(transitive)
+ Addedfilesize@4.1.2(transitive)
+ Addedfs-extra@8.1.0(transitive)
- Removed@types/fs-extra@7.0.0(transitive)
- Removedfast-glob@3.0.2(transitive)
- Removedfilesize@4.2.1(transitive)
- Removedfs-extra@8.0.1(transitive)
Updated@types/fs-extra@8.0.0
Updatedfast-glob@3.0.4
Updatedfilesize@4.1.2
Updatedfs-extra@8.1.0