vue-i18n-routing
Advanced tools
Comparing version 0.13.0 to 0.13.1-90f942b
@@ -641,5 +641,5 @@ var VueI18nRouting = function(exports, VueRouter3, vueDemi, vueI18nBridge) { | ||
} else { | ||
const _resolevableRoute = assign({}, _route); | ||
_resolevableRoute.path = targetPath; | ||
return router.resolve(_resolevableRoute); | ||
const _resolvableRoute = assign({}, route, _route); | ||
_resolvableRoute.path = targetPath; | ||
return router.resolve(_resolvableRoute); | ||
} | ||
@@ -687,3 +687,5 @@ } else { | ||
if (_route[0] === "/") { | ||
_route = { path: route }; | ||
const [path, search] = route.split("?"); | ||
const query = Object.fromEntries(new URLSearchParams(search)); | ||
_route = { path, query }; | ||
} else { | ||
@@ -1134,3 +1136,3 @@ _route = { name: route }; | ||
} | ||
const VERSION = "0.13.0"; | ||
const VERSION = "0.13.1"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1137,0 +1139,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
@@ -644,5 +644,5 @@ "use strict"; | ||
} else { | ||
const _resolevableRoute = assign({}, _route); | ||
_resolevableRoute.path = targetPath; | ||
return router.resolve(_resolevableRoute); | ||
const _resolvableRoute = assign({}, route, _route); | ||
_resolvableRoute.path = targetPath; | ||
return router.resolve(_resolvableRoute); | ||
} | ||
@@ -690,3 +690,5 @@ } else { | ||
if (_route[0] === "/") { | ||
_route = { path: route }; | ||
const [path, search] = route.split("?"); | ||
const query = Object.fromEntries(new URLSearchParams(search)); | ||
_route = { path, query }; | ||
} else { | ||
@@ -1137,3 +1139,3 @@ _route = { name: route }; | ||
} | ||
const VERSION = "0.13.0"; | ||
const VERSION = "0.13.1"; | ||
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL; | ||
@@ -1140,0 +1142,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION; |
{ | ||
"name": "vue-i18n-routing", | ||
"description": "The i18n routing with using vue-i18n", | ||
"version": "0.13.0", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"typecheck": "tsc -p . --noEmit", | ||
"switch:2": "vue-demi-switch 2 vue2 && vue-router-switch 3 vue-router3 && vue-i18n-switch 8 vue-i18n-legacy", | ||
"switch:3": "vue-demi-switch 3 && vue-router-switch 4 && vue-i18n-switch 9", | ||
"test": "vitest run", | ||
"test:watch": "vitest", | ||
"test:cover": "vitest --coverage", | ||
"build:docs": "api-docs-gen ./temp/vue-i18n-routing.api.json -c ./docsgen.config.js -o ./ -g noprefix" | ||
}, | ||
"version": "0.13.1-90f942b", | ||
"dependencies": { | ||
@@ -120,3 +109,14 @@ "@intlify/shared": "next", | ||
}, | ||
"sideEffects": false | ||
} | ||
"sideEffects": false, | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"typecheck": "tsc -p . --noEmit", | ||
"switch:2": "vue-demi-switch 2 vue2 && vue-router-switch 3 vue-router3 && vue-i18n-switch 8 vue-i18n-legacy", | ||
"switch:3": "vue-demi-switch 3 && vue-router-switch 4 && vue-i18n-switch 9", | ||
"test": "vitest run", | ||
"test:watch": "vitest", | ||
"test:cover": "vitest --coverage", | ||
"build:docs": "api-docs-gen ./temp/vue-i18n-routing.api.json -c ./docsgen.config.js -o ./ -g noprefix" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
164057
4516