Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-i18n-routing

Package Overview
Dependencies
Maintainers
1
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-i18n-routing - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-13e647f

./dist/vue-i18n-routing.js

26

dist/vue-i18n-routing.iife.js

@@ -18,3 +18,3 @@ var VueI18nRouting = function(exports, VueRouter3, vueDemi, vueI18nBridge) {

/*!
* shared v9.4.0
* shared v9.4.1
* (c) 2023 kazuya kawaguchi

@@ -632,2 +632,20 @@ * Released under the MIT License.

}
function isV4Route(val) {
return vueDemi.isVue3;
}
function resolveBridgeRoute(val) {
return isV4Route() ? val : val.route;
}
function resolvedRouteToObject(route) {
const r = resolveBridgeRoute(route);
const encodedPath = encodeURI(r.path);
const queryString = r.fullPath.indexOf("?") >= 0 ? r.fullPath.substring(r.fullPath.indexOf("?")) : "";
const resolvedObject = {
...r,
fullPath: encodedPath + queryString,
path: encodedPath,
href: encodedPath + queryString
};
return vueDemi.isVue3 ? resolvedObject : { ...route, route: resolvedObject };
}
function resolve(router, route, strategy, locale) {

@@ -745,4 +763,4 @@ if (vueDemi.isVue3 && strategy === "prefix") {

try {
const resolvedRoute = router.resolve(localizedRoute);
if (vueDemi.isVue3 ? resolvedRoute.name : resolvedRoute.route.name) {
const resolvedRoute = resolvedRouteToObject(router.resolve(localizedRoute));
if (isV4Route(resolvedRoute) ? resolvedRoute.name : resolvedRoute.route.name) {
return resolvedRoute;

@@ -1143,3 +1161,3 @@ }

}
const VERSION = "1.1.0";
const VERSION = "1.1.1";
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL;

@@ -1146,0 +1164,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION;

@@ -21,3 +21,3 @@ "use strict";

/*!
* shared v9.4.0
* shared v9.4.1
* (c) 2023 kazuya kawaguchi

@@ -635,2 +635,20 @@ * Released under the MIT License.

}
function isV4Route(val) {
return vueDemi.isVue3;
}
function resolveBridgeRoute(val) {
return isV4Route() ? val : val.route;
}
function resolvedRouteToObject(route) {
const r = resolveBridgeRoute(route);
const encodedPath = encodeURI(r.path);
const queryString = r.fullPath.indexOf("?") >= 0 ? r.fullPath.substring(r.fullPath.indexOf("?")) : "";
const resolvedObject = {
...r,
fullPath: encodedPath + queryString,
path: encodedPath,
href: encodedPath + queryString
};
return vueDemi.isVue3 ? resolvedObject : { ...route, route: resolvedObject };
}
function resolve(router, route, strategy, locale) {

@@ -748,4 +766,4 @@ if (vueDemi.isVue3 && strategy === "prefix") {

try {
const resolvedRoute = router.resolve(localizedRoute);
if (vueDemi.isVue3 ? resolvedRoute.name : resolvedRoute.route.name) {
const resolvedRoute = resolvedRouteToObject(router.resolve(localizedRoute));
if (isV4Route(resolvedRoute) ? resolvedRoute.name : resolvedRoute.route.name) {
return resolvedRoute;

@@ -1146,3 +1164,3 @@ }

}
const VERSION = "1.1.0";
const VERSION = "1.1.1";
exports.DEFAULT_BASE_URL = DEFAULT_BASE_URL;

@@ -1149,0 +1167,0 @@ exports.DEFAULT_DETECTION_DIRECTION = DEFAULT_DETECTION_DIRECTION;

36

package.json
{
"name": "vue-i18n-routing",
"description": "The i18n routing with using vue-i18n",
"version": "1.1.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": "1.1.1-13e647f",
"dependencies": {
"@intlify/shared": "^9.4.0",
"@intlify/vue-i18n-bridge": "^1.0.0",
"@intlify/vue-router-bridge": "^1.0.0",
"@intlify/shared": "^9.4.1",
"@intlify/vue-i18n-bridge": "^1.0.1",
"@intlify/vue-router-bridge": "^1.0.1",
"ufo": "^1.2.0",

@@ -35,3 +24,3 @@ "vue-demi": "^0.14.5"

"vue-router": "^4.1.5",
"vue-router3": "npm:vue-router@3.5.4",
"vue-router3": "npm:vue-router@3.6.5",
"vue-template-compiler": "^2.6.14",

@@ -121,3 +110,14 @@ "vue2": "npm:vue@2.6.14"

},
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc