@mondaydotcomorg/monday-authorization 1.1.3-featorihaadd-should-skip-cache-option.59 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,9 +77,10 @@ class AuthorizationService {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
static isUserGrantedWithFeature(accountId, userId, featureName, options = {}) {
|
|
80
|
+
var _a;
|
|
80
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
82
|
let cachedKey = this.getCachedKeyName(userId, featureName);
|
|
82
|
-
const
|
|
83
|
+
const shouldSkipCache = (_a = options.shouldSkipCache) !== null && _a !== void 0 ? _a : false;
|
|
83
84
|
if (this.redisClient && !shouldSkipCache) {
|
|
84
85
|
let grantedFeatureValue = yield this.redisClient.get(cachedKey);
|
|
85
86
|
if (!(grantedFeatureValue === undefined || grantedFeatureValue === null)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/monday-authorization",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@mondaydotcomorg/monday-fetch": "^0.0.7",
|
|
13
|
-
"@mondaydotcomorg/monday-jwt": "^3.0.
|
|
13
|
+
"@mondaydotcomorg/monday-jwt": "^3.0.6",
|
|
14
14
|
"@mondaydotcomorg/monday-logger": "^3.0.10",
|
|
15
15
|
"@types/express": "^4.17.12",
|
|
16
16
|
"node-fetch": "^2.6.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist/"
|
|
34
34
|
],
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "38a1812c1bc32b07a723651f59e12488543eb5e3"
|
|
36
36
|
}
|