@i18n-micro/route-strategy 1.1.6 → 1.1.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/index.d.cts +5 -0
- package/dist/utils/index.d.cts +3 -0
- package/package.json +20 -12
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { extractLocalizedPaths, LocalizedPathsMap } from './core/localized-paths';
|
|
2
|
+
import { isLocaleAllowedForUnlocalizedRoute } from './locale-route-access';
|
|
3
|
+
import { RouteGenerator, RouteGeneratorOptions } from './route-generator';
|
|
4
|
+
import { buildFullPath, buildFullPathNoPrefix, buildRouteName, cloneArray, isInternalPath, isLocaleDefault, isPageRedirectOnly, normalizePath, normalizeRouteKey, removeLeadingSlash, shouldAddLocalePrefix } from './utils';
|
|
5
|
+
export { RouteGenerator, type RouteGeneratorOptions, isLocaleAllowedForUnlocalizedRoute, extractLocalizedPaths, type LocalizedPathsMap, isInternalPath, normalizeRouteKey, normalizePath, cloneArray, isPageRedirectOnly, removeLeadingSlash, buildRouteName, shouldAddLocalePrefix, isLocaleDefault, buildFullPath, buildFullPathNoPrefix, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { buildRouteName, buildRouteNameFromRoute, cloneArray, isInternalPath, isLocaleDefault, isPageRedirectOnly, shouldAddLocalePrefix, } from './common';
|
|
2
|
+
export { type ResolvedLocales, resolveLocales } from './locales';
|
|
3
|
+
export { buildFullPath, buildFullPathNoPrefix, joinPath, normalizePath, normalizeRouteKey, removeLeadingSlash, } from './path';
|
package/package.json
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@i18n-micro/route-strategy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "Locale-aware route generator for Nuxt i18n micro",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
|
-
"module": "dist/index.mjs",
|
|
8
7
|
"types": "dist/index.d.ts",
|
|
9
8
|
"exports": {
|
|
10
9
|
".": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/index.d.cts",
|
|
16
|
+
"default": "./dist/index.cjs"
|
|
17
|
+
},
|
|
14
18
|
"default": "./dist/index.mjs"
|
|
15
19
|
}
|
|
16
20
|
},
|
|
@@ -36,10 +40,10 @@
|
|
|
36
40
|
],
|
|
37
41
|
"repository": {
|
|
38
42
|
"type": "git",
|
|
39
|
-
"url": "https://github.com/s00d/nuxt-i18n-micro.git",
|
|
40
|
-
"directory": "packages/route-
|
|
43
|
+
"url": "git+https://github.com/s00d/nuxt-i18n-micro.git",
|
|
44
|
+
"directory": "packages/route-strategy"
|
|
41
45
|
},
|
|
42
|
-
"homepage": "https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/route-
|
|
46
|
+
"homepage": "https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/route-strategy#readme",
|
|
43
47
|
"bugs": {
|
|
44
48
|
"url": "https://github.com/s00d/nuxt-i18n-micro/issues"
|
|
45
49
|
},
|
|
@@ -55,21 +59,25 @@
|
|
|
55
59
|
"sideEffects": false,
|
|
56
60
|
"dependencies": {
|
|
57
61
|
"@nuxt/schema": "^3.18.1 || ^4.0.0",
|
|
58
|
-
"@i18n-micro/
|
|
59
|
-
"@i18n-micro/
|
|
62
|
+
"@i18n-micro/types": "1.2.2",
|
|
63
|
+
"@i18n-micro/core": "1.3.1"
|
|
60
64
|
},
|
|
61
65
|
"devDependencies": {
|
|
62
66
|
"@types/jest": "^29.5.14",
|
|
63
67
|
"jest": "^29.7.0",
|
|
64
68
|
"ts-jest": "^29.4.6",
|
|
69
|
+
"publint": "^0.3.17",
|
|
65
70
|
"vite": "^7.3.1",
|
|
66
|
-
"vite-plugin-dts": "^4.5.4"
|
|
71
|
+
"vite-plugin-dts": "^4.5.4",
|
|
72
|
+
"vitest": "^3.2.4"
|
|
67
73
|
},
|
|
68
74
|
"engines": {
|
|
69
75
|
"node": ">=18"
|
|
70
76
|
},
|
|
71
77
|
"scripts": {
|
|
72
78
|
"build": "vite build",
|
|
73
|
-
"
|
|
79
|
+
"check:package": "publint",
|
|
80
|
+
"test": "jest",
|
|
81
|
+
"test:dist": "vitest run --config vitest.dist.config.ts"
|
|
74
82
|
}
|
|
75
83
|
}
|