@pega/custom-dx-components 24.1.12 → 24.1.13
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
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@pega/configs": "^0.6.0",
|
|
72
|
-
"@pega/custom-dx-components": "24.1.
|
|
72
|
+
"@pega/custom-dx-components": "24.1.13",
|
|
73
73
|
"@pega/pcore-pconnect-typedefs": "~3.0.0",
|
|
74
74
|
"@storybook/addon-actions": "^7.6.7",
|
|
75
75
|
"@storybook/addon-essentials": "^7.6.7",
|
|
@@ -196,12 +196,13 @@ export const publishComponentToServer = async (data, doFetch) => {
|
|
|
196
196
|
|
|
197
197
|
try {
|
|
198
198
|
const respData = isLaunchpad ? await response.text() : await response.json();
|
|
199
|
-
console.log(chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`));
|
|
200
|
-
|
|
201
199
|
if (status === 500) {
|
|
202
200
|
status = 999;
|
|
203
201
|
throw new Error(respData.message);
|
|
204
202
|
}
|
|
203
|
+
|
|
204
|
+
console.log(chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`));
|
|
205
|
+
|
|
205
206
|
} catch (err) {
|
|
206
207
|
if (status === 500) {
|
|
207
208
|
throw new Error(
|
|
@@ -215,7 +216,8 @@ export const publishComponentToServer = async (data, doFetch) => {
|
|
|
215
216
|
throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
216
217
|
}
|
|
217
218
|
} catch (err) {
|
|
218
|
-
throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
219
|
+
// throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
220
|
+
throw new Error(err);
|
|
219
221
|
}
|
|
220
222
|
}
|
|
221
223
|
};
|