@xyo-network/utils
Advanced tools
Comparing version 0.49.0 to 0.50.0
@@ -344,5 +344,10 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
fs_1.default.access(pathToFile, fs_1.default.constants.F_OK, (err) => { | ||
return resolve(!Boolean(err)); | ||
}); | ||
try { | ||
fs_1.default.access(pathToFile, fs_1.default.constants.F_OK, (err) => { | ||
resolve(!Boolean(err)); | ||
}); | ||
} | ||
catch (ex) { | ||
reject(ex); | ||
} | ||
}); | ||
@@ -349,0 +354,0 @@ }); |
{ | ||
"name": "@xyo-network/utils", | ||
"version": "0.49.0", | ||
"version": "0.50.0", | ||
"description": "Provides utility functionality", | ||
@@ -10,5 +10,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@xyo-network/base": "^0.49.0", | ||
"@xyo-network/errors": "^0.49.0", | ||
"@xyo-network/meta-list": "^0.49.0", | ||
"@xyo-network/base": "^0.50.0", | ||
"@xyo-network/errors": "^0.50.0", | ||
"@xyo-network/meta-list": "^0.50.0", | ||
"bn.js": "^4.11.8", | ||
@@ -19,11 +19,11 @@ "bs58": "^4.0.1" | ||
"@types/bn.js": "^4.11.3", | ||
"@types/jest": "^23.3.1", | ||
"@types/node": "^10.7.1", | ||
"jest": "^23.6.0", | ||
"ts-jest": "^23.10.5", | ||
"ts-node": "^7.0.1", | ||
"@types/jest": "^24.0.11", | ||
"@types/node": "^11.12.1", | ||
"jest": "^24.5.0", | ||
"ts-jest": "^24.0.0", | ||
"ts-node": "^8.0.3", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.2.2" | ||
}, | ||
"gitHead": "26c39a1d81b48c23a547e3d9e63723db3e403d53" | ||
"gitHead": "0853cd2821a2cb4ae7de42d06b9c716173fd792c" | ||
} |
[logo]: https://www.xy.company/img/home/logo_xy.png | ||
[logo]: https://cdn.xy.company/img/brand/XY_Logo_GitHub.png | ||
@@ -4,0 +4,0 @@ ![logo] |
@@ -405,5 +405,9 @@ | ||
return new Promise((resolve, reject) => { | ||
fs.access(pathToFile, fs.constants.F_OK, (err) => { | ||
return resolve(!Boolean(err)) | ||
}) | ||
try { | ||
fs.access(pathToFile, fs.constants.F_OK, (err) => { | ||
resolve(!Boolean(err)) | ||
}) | ||
} catch (ex) { | ||
reject(ex) | ||
} | ||
}) | ||
@@ -410,0 +414,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
464803
30
1271
+ Added@xyo-network/base@0.50.0(transitive)
+ Added@xyo-network/errors@0.50.0(transitive)
+ Added@xyo-network/meta-list@0.50.0(transitive)
- Removed@xyo-network/base@0.49.0(transitive)
- Removed@xyo-network/errors@0.49.0(transitive)
- Removed@xyo-network/meta-list@0.49.0(transitive)
Updated@xyo-network/base@^0.50.0
Updated@xyo-network/errors@^0.50.0