@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @title Custom Component Workspace Configuration
2
+ * @title UI Component Workspace Configuration
3
3
  */
4
4
  export interface schema {
5
5
  /**
@@ -42,7 +42,7 @@
42
42
  "required": [
43
43
  "components"
44
44
  ],
45
- "title": "Custom Component Workspace Configuration",
45
+ "title": "UI Component Workspace Configuration",
46
46
  "definitions": {
47
47
  "component": {
48
48
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/core",
3
- "version": "1.2.1",
3
+ "version": "1.3.0-next.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
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) {