@slynova/fence
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -0,1 +1,11 @@ | ||
<a name="1.0.6"></a> | ||
## [1.0.6](https://github.com/Slynova-Org/fence/compare/1.0.5...1.0.6) (2018-09-07) | ||
### Features | ||
* **guard:** avoid error when patching formatResourceName ([90c0434](https://github.com/Slynova-Org/fence/commit/90c0434)) | ||
<a name="1.0.5"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.5](https://github.com/Slynova-Org/fence/compare/1.0.4...1.0.5) (2018-07-21) |
@@ -81,8 +81,13 @@ "use strict"; | ||
$correspondsToPolicy(resource) { | ||
const resourceName = Helpers_1.formatResourceName(resource); | ||
return (storage.retrievePolicy(resourceName) !== undefined) | ||
? true | ||
: false; | ||
try { | ||
const resourceName = Helpers_1.formatResourceName(resource); | ||
return (storage.retrievePolicy(resourceName) !== undefined) | ||
? true | ||
: false; | ||
} | ||
catch (e) { | ||
return false; | ||
} | ||
} | ||
} | ||
exports.Guard = Guard; |
{ | ||
"name": "@slynova/fence", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Flexible and Fluent way to manage ACL in Node.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
24498
576