@mondaydotcomorg/monday-authorization 1.1.9-featurebelkaauthz-sdk-update.2218 → 1.1.9-featurebelkaauthz-sdk-update.2220
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.
|
@@ -5,7 +5,9 @@ const trident_backend_api_1 = require("@mondaydotcomorg/trident-backend-api");
|
|
|
5
5
|
const FROM_SDK_HEADER_SUFFIX = `-from-sdk`;
|
|
6
6
|
function getAttributionsFromApi() {
|
|
7
7
|
const tridentContext = trident_backend_api_1.Api.getPart('context');
|
|
8
|
-
|
|
8
|
+
if (!tridentContext) {
|
|
9
|
+
return {};
|
|
10
|
+
}
|
|
9
11
|
const { runtimeAttributions } = tridentContext;
|
|
10
12
|
const attributionsHeaders = Object.fromEntries(runtimeAttributions === null || runtimeAttributions === void 0 ? void 0 : runtimeAttributions.buildOutgoingHeaders('HTTP_INTERNAL'));
|
|
11
13
|
const attributionHeadersFromSdk = {};
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.AuthorizationAttributesService = void 0;
|
|
13
13
|
const monday_fetch_1 = require("@mondaydotcomorg/monday-fetch");
|
|
14
14
|
const authorization_internal_service_1 = require("./authorization-internal-service");
|
|
15
|
-
const attributions_service_1 = require("
|
|
15
|
+
const attributions_service_1 = require("./attributions-service");
|
|
16
16
|
class AuthorizationAttributesService {
|
|
17
17
|
/**
|
|
18
18
|
* Upsert resource attributes synchronously, performing http call to the authorization MS to assign the given attributes to the given resource.
|
|
@@ -15,7 +15,7 @@ const perf_hooks_1 = require("perf_hooks");
|
|
|
15
15
|
const monday_fetch_1 = require("@mondaydotcomorg/monday-fetch");
|
|
16
16
|
const prometheus_service_1 = require("./prometheus-service");
|
|
17
17
|
const authorization_internal_service_1 = require("./authorization-internal-service");
|
|
18
|
-
const attributions_service_1 = require("
|
|
18
|
+
const attributions_service_1 = require("./attributions-service");
|
|
19
19
|
const GRANTED_FEATURE_CACHE_EXPIRATION_SECONDS = 5 * 60;
|
|
20
20
|
function setRequestFetchOptions(customMondayFetchOptions) {
|
|
21
21
|
authorization_internal_service_1.AuthorizationInternalService.setRequestFetchOptions(customMondayFetchOptions);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondaydotcomorg/monday-authorization",
|
|
3
|
-
"version": "1.1.9-featurebelkaauthz-sdk-update.
|
|
3
|
+
"version": "1.1.9-featurebelkaauthz-sdk-update.2220+ebebb8d97",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"files": [
|
|
34
34
|
"dist/"
|
|
35
35
|
],
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "ebebb8d97ff78f842377b98b6e562088493d6ae5"
|
|
37
37
|
}
|