@pega/dx-component-builder-sdk 0.1.45 → 0.1.47

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": "0.1.45",
3
+ "version": "0.1.47",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -213,10 +213,10 @@ export const validateCompileAll = async (
213
213
  const type = "Widget";
214
214
  const subtype = COMPONENT_SCHEMA.subtype.widget[widgetIdx].value;
215
215
  const prefixNoSpace = prefix.replace(/\s+/g, '');
216
- let widgetNameOriginal = COMPONENT_SCHEMA.subtype.template[widgetIdx].name;
216
+ let widgetNameOriginal = COMPONENT_SCHEMA.subtype.widget[widgetIdx].name;
217
217
  let widgetName = convertIntoPascalCase(COMPONENT_SCHEMA.subtype.widget[widgetIdx].name).concat("Widget");
218
218
  let widgetLabel = convertIntoPascalCase(COMPONENT_SCHEMA.subtype.widget[widgetIdx].name).concat(" Widget");
219
- if (widgetNameOriginal.indexOf("&") >= 0) {
219
+ if (widgetName.indexOf("&") >= 0) {
220
220
  widgetName = convertIntoPascalCase(widgetNameOriginal.replace(" & ", ""));
221
221
  }
222
222
  const componentName = "".concat(prefixNoSpace).concat(widgetName);
@@ -62,7 +62,7 @@ export const getComponentsFromServer = async data => {
62
62
  if (err) {
63
63
  reject(
64
64
  `\n${chalk.bold.red(
65
- 'Error occured in authentication. Please regenerate using authenticate'
65
+ 'Error occurred in authentication. Please regenerate using authenticate'
66
66
  )}`
67
67
  );
68
68
  }
@@ -88,7 +88,7 @@ export const getComponentsFromServer = async data => {
88
88
  const respData = JSON.parse(resp);
89
89
  if (status === 401) {
90
90
  throw new Error(
91
- 'Error occured in authentication. Please regenerate using authenticate'
91
+ 'Error occurred in authentication. Please regenerate using authenticate'
92
92
  );
93
93
  // console.log(accessTokenUri, refreshToken);
94
94
  /* TODO - Handle refresh_token */