qcobjects-cli 2.5.105-beta → 2.5.106-beta

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.
@@ -261,7 +261,7 @@ export class SwitchCommander extends InheritClass {
261
261
 
262
262
  generateServiceWorker(appName: any, dirPrefix = "./") {
263
263
  const writeContent = (component: any) => {
264
- const parsedText = component.parseTemplate(component.template);
264
+ const parsedText = component.parsedAssignmentText;
265
265
  logger.debug("Starting to write the sw file...");
266
266
  fs.writeFile(`${dirPrefix}/sw.js`, parsedText, (err: string | undefined) => {
267
267
  if (err) {
@@ -292,6 +292,7 @@ export class SwitchCommander extends InheritClass {
292
292
 
293
293
  constructor({name, data}:{name:string, data:any}){
294
294
  super({name, data});
295
+ this.data = data;
295
296
  }
296
297
 
297
298
  done({ request, component }:{request:any, component:any}) {