@intlify/vue-router-bridge
Advanced tools
Comparing version 0.4.0 to 0.5.0-d15430d
@@ -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-d15430d", | ||
"description": "Vue Router bridging for Vue 2 & Vue 3", | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
}, | ||
"dependencies": { | ||
@@ -59,2 +56,3 @@ "vue-demi": "^0.13.5" | ||
}, | ||
"funding": "https://github.com/sponsors/kazupon", | ||
"homepage": "https://github.com/intlify/bridging/tree/main/packages/vue-router-bridge#readme", | ||
@@ -74,3 +72,6 @@ "repository": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
} | ||
} | ||
} |
@@ -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
51148
20
1396