@pega/dx-component-builder-sdk 8.23.10 → 8.23.11

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/dx-component-builder-sdk",
3
- "version": "8.23.10",
3
+ "version": "8.23.11",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
package/src/auth.js CHANGED
@@ -58,8 +58,8 @@ class PegaAuth {
58
58
 
59
59
  // For PKCE the authorize includes a code_challenge & code_challenge_method as well
60
60
  async #buildAuthorizeUrl(state) {
61
- const { serverType, clientId, redirectUri, authorizeUri, authService, sessionIndex, appAlias, userIdentifier, password, noPKCE } =
62
- this.config;
61
+ const { serverType, clientId, redirectUri, authorizeUri, authService, sessionIndex, appAlias,
62
+ userIdentifier, password, noPKCE, isolationId } = this.config;
63
63
 
64
64
  if (!noPKCE) {
65
65
  // Generate random string of 64 chars for verifier. RFC 7636 says from 43-128 chars
@@ -93,7 +93,7 @@ class PegaAuth {
93
93
  (sessionIndex && this.config.sessionIndexAttempts < 3 ? `&session_index=${sessionIndex}` : '') +
94
94
  (userIdentifier
95
95
  ? `&UserIdentifier=${encodeURIComponent(userIdentifier)}${password ? `&Password=${encodeURIComponent(this.#atob(password))}` : ''}` : '')
96
- : '');
96
+ : `&isolationID=${isolationId}`);
97
97
 
98
98
  let pkceArgs = '';
99
99
  if (!noPKCE) {
@@ -77,7 +77,7 @@ const generateAccessToken = async config => {
77
77
  }
78
78
  if (serverType === 'launchpad') {
79
79
  authConfig.isolationId = isolationId;
80
- // authConfig.noPKCE = true;
80
+ authConfig.noPKCE = true;
81
81
  }
82
82
 
83
83
  try {
@@ -282,7 +282,7 @@ export const validateCompile = async (
282
282
 
283
283
  const templateDir = `${templateParentDir}/${typeLC}/${sSubType}`;
284
284
  let templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
285
- templateDirectory = templateDirectory.replace("/create-all", "/create");
285
+ templateDirectory = templateDirectory.replace( path.sep + "create-all", path.sep + "create");
286
286
 
287
287
  const templateDirConstellation = `./templates/Constellation/${typeLC}/${sSubType}`;
288
288
  let templateDirectoryConstellation = fileURLToPath(new URL(templateDirConstellation, import.meta.url));