@mondaydotcomorg/monday-authorization 1.1.9-featurebelkaauthz-sdk-improved-error-handling.2401 → 1.1.9-featurebelkaauthz-sdk-improved-error-handling.2402

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.
@@ -9,7 +9,7 @@ const FROM_SDK_HEADER_SUFFIX = `-from-sdk`;
9
9
  let didSendFailureLogOnce = false;
10
10
  function getAttributionsFromApi() {
11
11
  let callerAppNameFromSdk = {
12
- [APP_NAME_HEADER_NAME]: getVariable(APP_NAME_VARIABLE_KEY),
12
+ [APP_NAME_HEADER_NAME]: tryJsonParse(getEnvVariable(APP_NAME_VARIABLE_KEY)),
13
13
  };
14
14
  try {
15
15
  const tridentContext = trident_backend_api_1.Api.getPart('context');
@@ -37,13 +37,6 @@ function getAttributionsFromApi() {
37
37
  }
38
38
  }
39
39
  exports.getAttributionsFromApi = getAttributionsFromApi;
40
- function getVariable(key, options = { silent: false }) {
41
- const result = tryJsonParse(getEnvVariable(key));
42
- if (result === undefined && !options.silent) {
43
- authorization_internal_service_1.logger.warn(`Configuration variable ${key} is undefined`);
44
- }
45
- return result;
46
- }
47
40
  function getEnvVariable(key) {
48
41
  const envVar = process.env[key] || process.env[key.toUpperCase()] || process.env[key.toLowerCase()];
49
42
  return envVar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/monday-authorization",
3
- "version": "1.1.9-featurebelkaauthz-sdk-improved-error-handling.2401+d0a2d23ad",
3
+ "version": "1.1.9-featurebelkaauthz-sdk-improved-error-handling.2402+93ed96694",
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": "d0a2d23ad7165f1f22c1ff9aebb9fc0e5aab1462"
36
+ "gitHead": "93ed96694fd3288d74d2d15e68980bb4fb767621"
37
37
  }