@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.
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -10
- package/dist/index.mjs.map +1 -1
- package/dist/playground.js +6 -10
- package/dist/playground.js.map +1 -1
- package/dist/playground.mjs +6 -10
- package/dist/playground.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1305,8 +1305,8 @@ var reactComponentLibHackPlugin = makePlugin({
|
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
1307
|
Object.assign(utils, {
|
|
1308
|
-
jsonSerialize: JSON.stringify,
|
|
1309
|
-
jsonDeserialize: JSON.parse,
|
|
1308
|
+
jsonSerialize: utils.JsonSerialize || JSON.stringify,
|
|
1309
|
+
jsonDeserialize: utils.JsonDeserialize || JSON.parse,
|
|
1310
1310
|
});
|
|
1311
1311
|
|
|
1312
1312
|
const logging = {
|
|
@@ -7322,14 +7322,10 @@ var VueRouterPlugin = class {
|
|
|
7322
7322
|
r.meta
|
|
7323
7323
|
)}, children: [${childrenStr}], ${componentCode} }`;
|
|
7324
7324
|
} else if (r.kind === "redirect") {
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
return path2;
|
|
7330
|
-
};
|
|
7331
|
-
const processedPath = replaceWildCardForVue3(config.frameworkKind, path);
|
|
7332
|
-
return `{path: "${processedPath}", redirect: ${JSON.stringify(r.redirect)}}`;
|
|
7325
|
+
if (["vue3"].includes(config.frameworkKind) && path === "*") {
|
|
7326
|
+
return `{ path: "/:pathMatch(.*)*", redirect: ${JSON.stringify(r.redirect)} }`;
|
|
7327
|
+
}
|
|
7328
|
+
return `{ path: "${path}", redirect: to => to.path.replace(/\\/$/, '') + '/' + ${JSON.stringify(r.redirect)} }`;
|
|
7333
7329
|
}
|
|
7334
7330
|
notImplemented(r);
|
|
7335
7331
|
}
|