Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.4.0 to 0.5.0

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

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