@mondaydotcomorg/monday-authorization 1.1.9-featurebelkaauthz-sdk-update.2219 → 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.
@@ -1 +1,3 @@
1
- export declare function getAttributionsFromApi(): {};
1
+ export declare function getAttributionsFromApi(): {
2
+ [key: string]: string;
3
+ };
@@ -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
- // @ts-expect-error not an error
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 = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/monday-authorization",
3
- "version": "1.1.9-featurebelkaauthz-sdk-update.2219+390a65557",
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": "390a655571e3a2b4cef1e96d669bc0a5a795c551"
36
+ "gitHead": "ebebb8d97ff78f842377b98b6e562088493d6ae5"
37
37
  }