@mondaydotcomorg/monday-authorization 1.1.7-technical-reason.432 → 1.1.7-technical-reason.433
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.
|
@@ -154,9 +154,9 @@ class AuthorizationService {
|
|
|
154
154
|
throwOnHttpErrorIfNeeded(response, 'canActionInScopeMultiple');
|
|
155
155
|
const responseBody = yield response.json();
|
|
156
156
|
const scopedActionsResponseObjects = responseBody.result.map(responseObject => {
|
|
157
|
-
const { scopedAction } = responseObject;
|
|
157
|
+
const { scopedAction, permit } = responseObject;
|
|
158
158
|
const { scope } = scopedAction;
|
|
159
|
-
return Object.assign(Object.assign({}, responseObject), { scopedAction: Object.assign(Object.assign({}, scopedAction), { scope: (0, lodash_1.mapKeys)(scope, (_, key) => (0, lodash_1.camelCase)(key)) }) });
|
|
159
|
+
return Object.assign(Object.assign({}, responseObject), { scopedAction: Object.assign(Object.assign({}, scopedAction), { scope: (0, lodash_1.mapKeys)(scope, (_, key) => (0, lodash_1.camelCase)(key)) }), permit: Object.assign(Object.assign({}, (0, lodash_1.omit)(permit, ['technical_reason'])), { technicalReason: parseInt(permit.technical_reason) }) });
|
|
160
160
|
});
|
|
161
161
|
return scopedActionsResponseObjects;
|
|
162
162
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/monday-authorization",
|
|
3
|
-
"version": "1.1.7-technical-reason.
|
|
3
|
+
"version": "1.1.7-technical-reason.433+e2a99ea14",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist/"
|
|
34
34
|
],
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "e2a99ea14b7b859a2941df577dbc1fbf50fc282e"
|
|
36
36
|
}
|