You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP →
Socket
Book a DemoInstallSign in
Socket

@intlify/vue-router-bridge

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intlify/vue-router-bridge - npm Package Compare versions

Comparing version

to
0.5.0-146f2af

lib/v3.6/index.cjs

6

lib/index.d.ts

@@ -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-146f2af",
"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"
}
}
}

@@ -8,2 +8,3 @@ # @intlify/vue-router-bridge

## 🌟 Features
- Vue Router composable APIs available on Vue 2 & Vue 3

@@ -16,2 +17,3 @@ - `useRouter`

- Manual switch versions
## đŸ’ŋ Installation

@@ -67,3 +69,3 @@

exclude: ['@intlify/vue-router-bridge']
}
}
})

@@ -91,2 +93,3 @@ ```

To explicitly switch the redirecting version, you can use these commands in your project's root:
### 🤏 Manually Switch Versions

@@ -109,2 +112,3 @@

```
### 🩹 Auto Fix

@@ -117,2 +121,3 @@

```
### âœŗī¸ Isomorphic Testings

@@ -150,3 +155,10 @@

## 🍭 Examples
- [Vue 2 + Vue Router v3.6 before](../../examples/vue-router-v3-vue2)
- [Vue 2 + Vue Router v3.6 or v3.x later](../../examples/vue-router-v36-vue2)
- [Vue 3 + Vue Router v4](../../examples/vue-router-v4-vue3)
## 💖 Thanks
This package idea was inspired from [vue-demi](https://github.com/vueuse/vue-demi), [@antfu](https://github.com/antfu)'s great work!

@@ -153,0 +165,0 @@

@@ -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