+8
-2
@@ -9,3 +9,3 @@ /** | ||
| * | ||
| * @version 0.1.0 | ||
| * @version 0.1.1 | ||
| */ | ||
@@ -108,3 +108,9 @@ | ||
| */ | ||
| exists : promisify(fs.exists), | ||
| exists : function(path) { | ||
| var promise = Vow.promise(); | ||
| fs.exists(path, function(exists) { | ||
| promise.fulfill(exists); | ||
| }); | ||
| return promise; | ||
| }, | ||
@@ -111,0 +117,0 @@ /** |
+1
-1
| { | ||
| "name" : "vow-fs", | ||
| "version" : "0.1.0", | ||
| "version" : "0.1.1", | ||
| "description" : "File I/O by Vow", | ||
@@ -5,0 +5,0 @@ "homepage" : "https://github.com/dfilatov/vow-fs", |
+6
-4
@@ -1,5 +0,7 @@ | ||
| var fs = require('./lib/fs'); | ||
| var fs = require('./lib/fs'), | ||
| path = require('path'); | ||
| fs.isFile('package.json').then(function(isFile) { | ||
| console.log(isFile); | ||
| }); | ||
| fs.exists(path.dirname(path.resolve('/a/b'))).then(function(ex) { | ||
| console.log(ex); | ||
| }) | ||
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
6870
2.94%191
4.37%