@ixon-cdk/core 1.2.1 → 1.3.0-next.1
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/config/schema.d.ts +1 -1
- package/config/schema.json +1 -1
- package/package.json +1 -1
- package/utils.js +6 -4
package/config/schema.d.ts
CHANGED
package/config/schema.json
CHANGED
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -82,10 +82,11 @@ function zip(output, callback) {
|
|
|
82
82
|
|
|
83
83
|
const pascalCase = flow(camelCase, upperFirst);
|
|
84
84
|
|
|
85
|
-
function apiHttpErrorToMessage(error) {
|
|
85
|
+
function apiHttpErrorToMessage(error, exit = true) {
|
|
86
86
|
if (typeof error === 'string') {
|
|
87
87
|
logErrorMessage(error);
|
|
88
|
-
process.exit(1);
|
|
88
|
+
exit && process.exit(1);
|
|
89
|
+
return;
|
|
89
90
|
}
|
|
90
91
|
if (error && error.response && error.response.data) {
|
|
91
92
|
const errors = error.response.data.data;
|
|
@@ -95,12 +96,13 @@ function apiHttpErrorToMessage(error) {
|
|
|
95
96
|
.map((err) => (err.propertyName ? `${err.propertyName}: ${err.message}` : err.message))
|
|
96
97
|
.join('\n'),
|
|
97
98
|
);
|
|
98
|
-
process.exit(1);
|
|
99
|
+
exit && process.exit(1);
|
|
100
|
+
return;
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
logErrorMessage('Unexpected error.');
|
|
102
104
|
console.log(error);
|
|
103
|
-
process.exit(1);
|
|
105
|
+
exit && process.exit(1);
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
function generatePreviewHash(templateId, templateName, versionId, versionNumber, versionMainPath) {
|