@lcap/nasl-unified-frontend-generator 4.0.0-rc.3 → 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.
@@ -3461,8 +3461,8 @@ var reactComponentLibHackPlugin = makePlugin({
3461
3461
  }
3462
3462
 
3463
3463
  Object.assign(utils, {
3464
- jsonSerialize: JSON.stringify,
3465
- jsonDeserialize: JSON.parse,
3464
+ jsonSerialize: utils.JsonSerialize || JSON.stringify,
3465
+ jsonDeserialize: utils.JsonDeserialize || JSON.parse,
3466
3466
  });
3467
3467
 
3468
3468
  const logging = {
@@ -9477,14 +9477,10 @@ var VueRouterPlugin = class {
9477
9477
  r.meta
9478
9478
  )}, children: [${childrenStr}], ${componentCode} }`;
9479
9479
  } else if (r.kind === "redirect") {
9480
- const replaceWildCardForVue3 = (frameworkKind, path3) => {
9481
- if (frameworkKind === "vue3" && path3 === "*") {
9482
- return "/:pathMatch(.*)*";
9483
- }
9484
- return path3;
9485
- };
9486
- const processedPath = replaceWildCardForVue3(config2.frameworkKind, path2);
9487
- return `{path: "${processedPath}", redirect: ${JSON.stringify(r.redirect)}}`;
9480
+ if (["vue3"].includes(config2.frameworkKind) && path2 === "*") {
9481
+ return `{ path: "/:pathMatch(.*)*", redirect: ${JSON.stringify(r.redirect)} }`;
9482
+ }
9483
+ return `{ path: "${path2}", redirect: to => to.path.replace(/\\/$/, '') + '/' + ${JSON.stringify(r.redirect)} }`;
9488
9484
  }
9489
9485
  notImplemented(r);
9490
9486
  }