@rws-framework/client 2.10.5 → 2.10.6

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.10.5",
4
+ "version": "2.10.6",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -109,7 +109,7 @@ let rwsTemplate: any = T.html\`${templateContent}\`;
109
109
  this.addDependency(templatePath);
110
110
  }
111
111
 
112
- const viewReg = /@RWSView\(["']([^"']+)["'].*\)\s*export\s+class\s+([a-zA-Z0-9_-]+)\s+extends\s+RWSViewComponent/gm
112
+ const viewReg = /@RWSView\(["']([^"']+)["'].*\)\s*(.*?\s+)?class\s+([a-zA-Z0-9_-]+)\s+extends\s+RWSViewComponent/gm
113
113
 
114
114
  let m;
115
115
  let className = null;
@@ -132,14 +132,11 @@ let rwsTemplate: any = T.html\`${templateContent}\`;
132
132
  if(className){
133
133
  const replacedViewDecoratorContent = processedContent.replace(
134
134
  viewReg,
135
- `@RWSView('$1', null, { template: rwsTemplate, styles${addedParams.length? ', options: {' + (addedParams.join(', ')) + '}': ''} })\nclass $2 extends RWSViewComponent `
135
+ `@RWSView('$1', null, { template: rwsTemplate, styles${addedParams.length? ', options: {' + (addedParams.join(', ')) + '}': ''} })\n$2class $3 extends RWSViewComponent `
136
136
  );
137
137
  processedContent = `${template}\n${styles}\n${addedParamDefs.join('\n')}\n` + replacedViewDecoratorContent;
138
138
  }
139
139
 
140
-
141
-
142
-
143
140
  processedContent = `${htmlFastImports ? htmlFastImports + '\n' : ''}${processedContent}`;
144
141
  }
145
142