nuxt-typed-router 4.0.6 → 4.0.7

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/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0 || >= 4.0.0"
6
6
  },
7
- "version": "4.0.6",
7
+ "version": "4.0.7",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1120,7 +1120,7 @@ function createPathsFiles({ routesPaths, routesList }) {
1120
1120
  const hasPrefixStrategy = i18n && i18nOptions?.strategy !== "no_prefix";
1121
1121
  const filteredRoutesPaths = routesPaths.filter((route) => !routesPaths.find((r) => `${route.path}/` === r.path)).map((route) => ({
1122
1122
  ...route,
1123
- path: route.path.replace(/\(\)/g, "")
1123
+ path: route.path.replace(/\(\)/g, "").replace(/\/\//g, "/")
1124
1124
  })).sort((a, b) => {
1125
1125
  const pathCountA = a.path.split("/");
1126
1126
  const pathCountB = b.path.split("/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "4.0.6",
3
+ "version": "4.0.7",
4
4
  "description": "Provide autocompletion for routes paths, names and params in Nuxt apps",
5
5
  "type": "module",
6
6
  "main": "./dist/module.mjs",