Comparing version 0.1.5 to 0.1.6
@@ -312,3 +312,3 @@ #!/usr/bin/env node | ||
function readdir(dir) { | ||
return fs.promises.readdir(dir, {withFileTypes: true}).catch(ignoreNotfound); | ||
return fs.promises.readdir(dir, {withFileTypes: true}).catch(ignoreNotfound).then((r) => r || []); | ||
} | ||
@@ -315,0 +315,0 @@ async function ensuredir(dir) { |
@@ -47,3 +47,3 @@ "use strict"; | ||
withFileTypes: true | ||
}).catch(ignoreNotfound); | ||
}).catch(ignoreNotfound).then(r => r || []); | ||
} | ||
@@ -50,0 +50,0 @@ |
{ | ||
"name": "unstorage", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": "unjsio/unstorage", |
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
56159
24