syntex-filesystem
Advanced tools
Comparing version 1.0.2-b8 to 1.0.2-b9
17
main.js
@@ -67,3 +67,3 @@ const fs = require('fs'), path = require('path'); | ||
{ | ||
return new Promise((resolve) => { | ||
return new Promise((resolve, reject) => { | ||
@@ -93,3 +93,3 @@ if(this.isReady() && filePath != null) | ||
resolve(file, false); | ||
resolve(file); | ||
} | ||
@@ -100,3 +100,3 @@ catch(e) | ||
resolve(null, true); | ||
reject(); | ||
} | ||
@@ -108,3 +108,10 @@ } | ||
resolve(null, error != null && error.code != 'ENOENT'); | ||
if(error != null && error.code != 'ENOENT') | ||
{ | ||
reject(); | ||
} | ||
else | ||
{ | ||
resolve(null); | ||
} | ||
} | ||
@@ -115,3 +122,3 @@ }); | ||
{ | ||
resolve(null, true); | ||
reject(); | ||
} | ||
@@ -118,0 +125,0 @@ }); |
{ | ||
"name": "syntex-filesystem", | ||
"version": "1.0.2-b8", | ||
"version": "1.0.2-b9", | ||
"description": "A Basic File System", | ||
@@ -12,3 +12,3 @@ "main": "main.js", | ||
"dependencies": { | ||
"syntex-logger": "1.0.8-b11" | ||
"syntex-logger": "1.0.8-b21" | ||
}, | ||
@@ -15,0 +15,0 @@ "keywords": [ |
@@ -33,3 +33,4 @@ # SynTex Filesystem | ||
logger.debug(data); | ||
}); | ||
}).catch(() => {})); | ||
}); | ||
@@ -36,0 +37,0 @@ ``` |
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
7887
226
41
+ Addedsyntex-logger@1.0.8-b21(transitive)
- Removedsyntex-logger@1.0.8-b11(transitive)
Updatedsyntex-logger@1.0.8-b21