@lcap/nasl-unified-frontend-generator 4.0.0-rc.2 → 4.0.0-rc.4

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.
@@ -3505,8 +3505,8 @@ var reactComponentLibHackPlugin = makePlugin({
3505
3505
  }
3506
3506
 
3507
3507
  Object.assign(utils, {
3508
- jsonSerialize: JSON.stringify,
3509
- jsonDeserialize: JSON.parse,
3508
+ jsonSerialize: utils.JsonSerialize || JSON.stringify,
3509
+ jsonDeserialize: utils.JsonDeserialize || JSON.parse,
3510
3510
  });
3511
3511
 
3512
3512
  const logging = {
@@ -9600,14 +9600,10 @@ var VueRouterPlugin = class {
9600
9600
  r.meta
9601
9601
  )}, children: [${childrenStr}], ${componentCode} }`;
9602
9602
  } else if (r.kind === "redirect") {
9603
- const replaceWildCardForVue3 = (frameworkKind, path3) => {
9604
- if (frameworkKind === "vue3" && path3 === "*") {
9605
- return "/:pathMatch(.*)*";
9606
- }
9607
- return path3;
9608
- };
9609
- const processedPath = replaceWildCardForVue3(config2.frameworkKind, path2);
9610
- return `{path: "${processedPath}", redirect: ${JSON.stringify(r.redirect)}}`;
9603
+ if (["vue3"].includes(config2.frameworkKind) && path2 === "*") {
9604
+ return `{ path: "/:pathMatch(.*)*", redirect: ${JSON.stringify(r.redirect)} }`;
9605
+ }
9606
+ return `{ path: "${path2}", redirect: to => to.path.replace(/\\/$/, '') + '/' + ${JSON.stringify(r.redirect)} }`;
9611
9607
  }
9612
9608
  notImplemented(r);
9613
9609
  }