Comparing version 0.1.6 to 0.1.7
@@ -11,3 +11,3 @@ 'use strict' | ||
*/ | ||
fs.exists = function (path) { | ||
fs.existsAsync = function (path) { | ||
return new Promise(function (resolve) { | ||
@@ -27,2 +27,14 @@ nodeFs.stat(path, function (err, stats) { | ||
fs.unlink = function (path, ignore) { | ||
return new Promise(function (resolve, reject) { | ||
nodeFs.unlink(path, function (err) { | ||
if (err && !ignore) { | ||
reject() | ||
return | ||
} | ||
resolve() | ||
}) | ||
}) | ||
} | ||
module.exports = fs |
{ | ||
"name": "a-toolbox", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "javascript lightweight basic tools", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
27458
740