@bleedingdev/modern-js-create 3.2.0-ultramodern.36 → 3.2.0-ultramodern.37

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1900,10 +1900,16 @@ function createRouteOwnedI18nPaths(app) {
1900
1900
  ];
1901
1901
  }
1902
1902
  function createLocalisedUrlsMap(app) {
1903
- return Object.fromEntries(createRouteOwnedI18nPaths(app).filter((route)=>'/' !== route.canonicalPath).map((route)=>[
1903
+ return Object.fromEntries(createRouteOwnedI18nPaths(app).flatMap((route)=>{
1904
+ if ('/' === route.canonicalPath) return [];
1905
+ return Array.from(new Set([
1904
1906
  route.canonicalPath,
1905
- route.localisedPaths
1906
- ]));
1907
+ ...Object.values(route.localisedPaths)
1908
+ ])).map((pathname)=>[
1909
+ pathname,
1910
+ route.localisedPaths
1911
+ ]);
1912
+ }));
1907
1913
  }
1908
1914
  function createRouteMetadataModule(app) {
1909
1915
  const routes = createRouteOwnedI18nPaths(app);
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
24
- "version": "3.2.0-ultramodern.36",
24
+ "version": "3.2.0-ultramodern.37",
25
25
  "types": "./dist/types/index.d.ts",
26
26
  "main": "./dist/index.js",
27
27
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "@types/node": "^25.9.1",
42
42
  "@typescript/native-preview": "7.0.0-dev.20260527.2",
43
43
  "tsx": "^4.22.3",
44
- "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.36"
44
+ "@modern-js/i18n-utils": "npm:@bleedingdev/modern-js-i18n-utils@3.2.0-ultramodern.37"
45
45
  },
46
46
  "publishConfig": {
47
47
  "registry": "https://registry.npmjs.org/",
@@ -54,6 +54,6 @@
54
54
  "start": "node ./dist/index.js"
55
55
  },
56
56
  "ultramodern": {
57
- "frameworkVersion": "3.2.0-ultramodern.36"
57
+ "frameworkVersion": "3.2.0-ultramodern.37"
58
58
  }
59
59
  }