@intlify/vue-router-bridge
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -147,5 +147,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
/** | ||
* Define dummy vue-router 3 class | ||
* Define stub vue-router 3 class | ||
*/ | ||
declare class VueRouter3 { | ||
declare class VueRouterLegacy { | ||
constructor(options?: RouterOptions) | ||
@@ -173,4 +173,4 @@ } | ||
// Export dummy VueRouter class | ||
export default VueRouter3 | ||
export default VueRouterLegacy | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
@@ -147,5 +147,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
/** | ||
* Define dummy vue-router 3 class | ||
* Define stub vue-router 3 class | ||
*/ | ||
declare class VueRouter3 { | ||
declare class VueRouterLegacy { | ||
constructor(options?: RouterOptions) | ||
@@ -173,4 +173,4 @@ } | ||
// Export dummy VueRouter class | ||
export default VueRouter3 | ||
export default VueRouterLegacy | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
{ | ||
"name": "@intlify/vue-router-bridge", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Vue Router bridging for Vue 2 & Vue 3", | ||
@@ -59,2 +59,3 @@ "scripts": { | ||
}, | ||
"funding": "https://github.com/sponsors/kazupon", | ||
"homepage": "https://github.com/intlify/bridging/tree/main/packages/vue-router-bridge#readme", | ||
@@ -61,0 +62,0 @@ "repository": { |
@@ -7,2 +7,4 @@ const { switchVersion, loadModule, warn } = require('./utils') // eslint-disable-line @typescript-eslint/no-var-requires | ||
warn('VueRouter is not found. Please run "npm install vue-router" to install.') | ||
} else if (VueRouter.version.startsWith('3.6')) { | ||
switchVersion(3.6) | ||
} else if (VueRouter.version.startsWith('3.')) { | ||
@@ -9,0 +11,0 @@ switchVersion(3) |
@@ -6,3 +6,6 @@ const { switchVersion, warn, log } = require('./utils') // eslint-disable-line @typescript-eslint/no-var-requires | ||
if (version == '3') { | ||
if (version == '3.6') { | ||
switchVersion(3.6, vueRouterEntry) | ||
log(`Switched for Vue Router 3.6 (entry: "${vueRouterEntry}")`) | ||
} else if (version == '3') { | ||
switchVersion(3, vueRouterEntry) | ||
@@ -9,0 +12,0 @@ log(`Switched for Vue Router 3 (entry: "${vueRouterEntry}")`) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51141
20
1396