New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ionic/vue-router

Package Overview
Dependencies
Maintainers
23
Versions
2592
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/vue-router - npm Package Compare versions

Comparing version 5.4.0-dev.202008031716.e102eeb to 5.4.0-dev.202008061611.e902fdd

12

dist/router.d.ts
import { Router, RouteLocationNormalized, RouteLocationNormalizedLoaded, RouterOptions } from 'vue-router';
import { ExternalNavigationOptions, RouteInfo, TransitionCallback } from './types';
import { ExternalNavigationOptions, RouteInfo, RouteParams } from './types';
export declare const createIonRouter: (opts: RouterOptions, router: Router) => {
handleHistoryChange: (to: RouteLocationNormalized) => void;
getCurrentRouteInfo: () => RouteInfo;
handleRegisterListener: (cb: TransitionCallback) => void;
handleTransition: () => void;
setInitialRoute: (routeInfo: RouteLocationNormalizedLoaded) => void;
canGoBack: (deep?: number) => boolean;
navigate: (navigationOptions: ExternalNavigationOptions) => void;
getRouter: () => Router;
getLocationHistory: () => {
current: () => RouteInfo;
previous: () => RouteInfo;
add: (routeInfo: RouteInfo) => void;
canGoBack: (deep?: number) => boolean;
};
setIncomingRouteParams: (params: RouteParams) => void;
};

@@ -7,3 +7,2 @@ import { createLocationHistory } from './locationHistory';

let incomingRouteParams;
let transitionListeners = [];
if (typeof document !== 'undefined') {

@@ -26,5 +25,2 @@ document.addEventListener('ionBackButton', (ev) => {

};
const handleRegisterListener = (cb) => {
transitionListeners.push(cb);
};
const handleHistoryChange = (to) => {

@@ -62,5 +58,2 @@ let leavingLocationInfo;

};
const handleTransition = () => {
transitionListeners.forEach(listener => listener(currentRouteInfo)); // TODO
};
const getCurrentRouteInfo = () => currentRouteInfo;

@@ -76,2 +69,5 @@ const setInitialRoute = (routeInfo) => {

const canGoBack = (deep = 1) => locationHistory.canGoBack(deep);
const setIncomingRouteParams = (params) => {
incomingRouteParams = params;
};
const navigate = (navigationOptions) => {

@@ -86,12 +82,15 @@ const { routerAnimation, routerDirection, routerLink } = navigationOptions;

};
const getRouter = () => router;
const getLocationHistory = () => locationHistory;
return {
handleHistoryChange,
getCurrentRouteInfo,
handleRegisterListener,
handleTransition,
setInitialRoute,
canGoBack,
navigate
navigate,
getRouter,
getLocationHistory,
setIncomingRouteParams
};
};
//# sourceMappingURL=router.js.map

@@ -21,3 +21,2 @@ import { AnimationBuilder } from '@ionic/core';

export declare type RouteDirection = 'forward' | 'back' | 'root';
export declare type TransitionCallback = (routeInfo: RouteInfo) => void;
export interface ViewItem {

@@ -24,0 +23,0 @@ id: string;

{
"name": "@ionic/vue-router",
"version": "5.4.0-dev.202008031716.e102eeb",
"version": "5.4.0-dev.202008061611.e902fdd",
"description": "Vue Router integration for @ionic/vue",

@@ -5,0 +5,0 @@ "scripts": {

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