@pega/custom-dx-components 23.1.15 → 23.1.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
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@pega/configs": "^0.6.0",
|
|
72
|
-
"@pega/custom-dx-components": "23.1.
|
|
72
|
+
"@pega/custom-dx-components": "23.1.16",
|
|
73
73
|
"@pega/pcore-pconnect-typedefs": "~2.1.1",
|
|
74
74
|
"@storybook/addon-actions": "^7.6.7",
|
|
75
75
|
"@storybook/addon-essentials": "^7.6.7",
|
|
@@ -196,12 +196,12 @@ 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
|
} catch (err) {
|
|
206
206
|
if (status === 500) {
|
|
207
207
|
throw new Error(
|
|
@@ -216,7 +216,7 @@ export const publishComponentToServer = async (data, doFetch) => {
|
|
|
216
216
|
}
|
|
217
217
|
} catch (err) {
|
|
218
218
|
// throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
219
|
-
throw
|
|
219
|
+
throw Error(err);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
};
|