@pega/custom-dx-components 24.2.14 → 24.2.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "24.2.14",
3
+ "version": "24.2.16",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -101,7 +101,7 @@
101
101
  },
102
102
  "devDependencies": {
103
103
  "@pega/configs": "^0.15.1",
104
- "@pega/custom-dx-components": "~24.2.14",
104
+ "@pega/custom-dx-components": "~24.2.16",
105
105
  "@pega/pcore-pconnect-typedefs": "3.2.1",
106
106
  "@storybook/addon-actions": "^7.6.19",
107
107
  "@storybook/addon-essentials": "^7.6.19",
package/src/util.js CHANGED
@@ -850,8 +850,11 @@ if (showDebug) addDebugLog("getPegaServerConfig", "", "+");
850
850
 
851
851
  if (OAuthData) {
852
852
  const oOAuthData = JSON.parse(OAuthData);
853
- const isolationId = oOAuthData["isolation-ids"].write;
854
- pegaConfig['server-config'].isolationId = isolationId[0];
853
+ if (oOAuthData["isolation-ids"]) {
854
+ const isolationId = oOAuthData["isolation-ids"].write;
855
+ pegaConfig['server-config'].isolationId = isolationId[0];
856
+ }
857
+
855
858
  }
856
859
 
857
860
  }
@@ -1453,7 +1456,8 @@ if (showDebug) addDebugLog("updateC11NB2SForInfinity", "", "");
1453
1456
 
1454
1457
  const objOauthData = JSON.parse(OAuthData);
1455
1458
  objOauthData["C11NB2S"] = bootstrap.tokens.C11NB2S;
1456
- objOauthData["appStaticContentServer"] = bootstrap.serviceConfig.appStaticContentServer;
1459
+ // objOauthData["appStaticContentServer"] = bootstrap.serviceConfig.appStaticContentServer;
1460
+ objOauthData["appStaticContentServer"] = (bootstrap.serviceConfig.appStaticContentServer != "no-cdn" && bootstrap.serviceConfig.appStaticContentServer != "") ? bootstrap.serviceConfig.appStaticContentServer : bootstrap.serviceConfig.staticContentServer;
1457
1461
 
1458
1462
  // write out file
1459
1463
  fs.writeFileSync(TOKEN_PATH, JSON.stringify(objOauthData), { encoding: 'utf8',flag:'w' });