@intlify/vue-router-bridge
Advanced tools
Comparing version 1.0.0 to 1.0.1-ae091ea
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import type { RouteLocationNormalizedLoaded, Router, RouteRecord, RouteMeta, NavigationGuard } from 'vue-router' | ||
import type { RouteLocationNormalizedLoaded, Router, RouteRecord, RouteMeta, NavigationGuard, RouteLocationRaw, LocationQuery, RouteParams } from 'vue-router' | ||
@@ -17,11 +17,11 @@ /** | ||
afterEach(hook: (to: Route, from: Route) => any): Function | ||
push(location: RawLocation): Promise<Route> | ||
push(location: RawLocation, onComplete?: Function, onAbort?: ErrorHandler): void | ||
replace(location: RawLocation): Promise<Route> | ||
replace(location: RawLocation, onComplete?: Function, onAbort?: ErrorHandler): void | ||
push(location: RouteLocationRaw): Promise<Route> | ||
push(location: RouteLocationRaw, onComplete?: Function, onAbort?: ErrorHandler): void | ||
replace(location: RouteLocationRaw): Promise<Route> | ||
replace(location: RouteLocationRaw, onComplete?: Function, onAbort?: ErrorHandler): void | ||
go(n: number): void | ||
back(): void | ||
forward(): void | ||
match(raw: RawLocation, current?: Route, redirectedFrom?: Location): Route | ||
getMatchedComponents(to?: RawLocation | Route): Component[] | ||
match(raw: RouteLocationRaw, current?: Route, redirectedFrom?: Location): Route | ||
getMatchedComponents(to?: RouteLocationRaw | Route): Component[] | ||
onReady(cb: Function, errorCb?: ErrorHandler): void | ||
@@ -33,3 +33,3 @@ onError(cb: ErrorHandler): void | ||
resolve( | ||
to: RawLocation, | ||
to: RouteLocationRaw, | ||
current?: Route, | ||
@@ -57,3 +57,3 @@ append?: boolean | ||
} | ||
declare type RawLocation = string | Location | ||
declare type RawLocation = RouteLocationRaw | ||
declare interface Route { | ||
@@ -63,4 +63,4 @@ path: string | ||
hash: string | ||
query: Dictionary<string | (string | null)[]> | ||
params: Dictionary<string> | ||
query: LocationQuery | ||
params: RouteParams | ||
fullPath: string | ||
@@ -71,3 +71,3 @@ matched: RouteRecord[] | ||
} | ||
declare type RedirectOption = RawLocation | ((to: Route) => RawLocation) | ||
declare type RedirectOption = RouteLocationRaw | ((to: Route) => RouteLocationRaw) | ||
declare interface PathToRegexpOptions { | ||
@@ -125,3 +125,3 @@ sensitive?: boolean | ||
meta: any | ||
beforeEnter?: (route: Route, redirect: (location: RawLocation) => void, next: () => void) => any | ||
beforeEnter?: (route: Route, redirect: (location: RouteLocationRaw) => void, next: () => void) => any | ||
props: | ||
@@ -170,2 +170,3 @@ | boolean | ||
RawLocation, | ||
RouteLocationRaw, | ||
RedirectOption, | ||
@@ -172,0 +173,0 @@ RouteConfig, |
{ | ||
"name": "@intlify/vue-router-bridge", | ||
"version": "1.0.0", | ||
"version": "1.0.1-ae091ea", | ||
"description": "Vue Router bridging for Vue 2 & Vue 3", | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
}, | ||
"dependencies": { | ||
@@ -74,3 +71,6 @@ "vue-demi": "^0.13.5" | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
} | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
51466
1397
1