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

redux-router5

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-router5 - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

143

index.d.ts

@@ -1,48 +0,53 @@

declare module "redux-router5" {
import { Router, PluginFactory, State, Route } from 'router5';
import { Store, Middleware, Reducer, Dispatch, Action } from 'redux';
declare module 'redux-router5' {
import { Router, PluginFactory, State, Route } from 'router5'
import { Store, Middleware, Reducer, Dispatch, Action } from 'redux'
export function router5Middleware(router: Router): Middleware;
export function router5Middleware(router: Router): Middleware
export interface RouterState {
route: State | null;
previousRoute: State | null;
transitionRoute: State | null;
transitionError: any | null;
route: State | null
previousRoute: State | null
transitionRoute: State | null
transitionError: any | null
}
export const router5Reducer: Reducer<RouterState>;
export const router5Reducer: Reducer<RouterState>
export function reduxPlugin<TState extends { router: RouterState }>(dispatch: Dispatch<TState>): PluginFactory;
export function reduxPlugin<TState extends { router: RouterState }>(
dispatch: Dispatch<TState>
): PluginFactory
export function routeNodeSelector<TState extends { router: RouterState }>(routeNode: string, reducerKey?: string): (state: TState) => RouterState;
export function routeNodeSelector<TState extends { router: RouterState }>(
routeNode: string,
reducerKey?: string
): (state: TState) => RouterState
// #region actions
const NAVIGATE_TO = '@@router5/NAVIGATE';
const CANCEL_TRANSITION = '@@router5/CANCEL';
const TRANSITION_ERROR = '@@router5/TRANSITION_ERROR';
const TRANSITION_SUCCESS = '@@router5/TRANSITION_SUCCESS';
const TRANSITION_START = '@@router5/TRANSITION_START';
const CLEAR_ERRORS = '@@router5/CLEAR_ERRORS';
const CAN_DEACTIVATE = '@@router5/CAN_DEACTIVATE';
const CAN_ACTIVATE = '@@router5/CAN_ACTIVATE';
const NAVIGATE_TO = '@@router5/NAVIGATE'
const CANCEL_TRANSITION = '@@router5/CANCEL'
const TRANSITION_ERROR = '@@router5/TRANSITION_ERROR'
const TRANSITION_SUCCESS = '@@router5/TRANSITION_SUCCESS'
const TRANSITION_START = '@@router5/TRANSITION_START'
const CLEAR_ERRORS = '@@router5/CLEAR_ERRORS'
const CAN_DEACTIVATE = '@@router5/CAN_DEACTIVATE'
const CAN_ACTIVATE = '@@router5/CAN_ACTIVATE'
export const actionTypes: {
NAVIGATE_TO: typeof NAVIGATE_TO,
CANCEL_TRANSITION: typeof CANCEL_TRANSITION,
TRANSITION_ERROR: typeof TRANSITION_ERROR,
TRANSITION_SUCCESS: typeof TRANSITION_SUCCESS,
TRANSITION_START: typeof TRANSITION_START,
CLEAR_ERRORS: typeof CLEAR_ERRORS,
CAN_DEACTIVATE: typeof CAN_DEACTIVATE,
CAN_ACTIVATE: typeof CAN_ACTIVATE,
};
NAVIGATE_TO: typeof NAVIGATE_TO
CANCEL_TRANSITION: typeof CANCEL_TRANSITION
TRANSITION_ERROR: typeof TRANSITION_ERROR
TRANSITION_SUCCESS: typeof TRANSITION_SUCCESS
TRANSITION_START: typeof TRANSITION_START
CLEAR_ERRORS: typeof CLEAR_ERRORS
CAN_DEACTIVATE: typeof CAN_DEACTIVATE
CAN_ACTIVATE: typeof CAN_ACTIVATE
}
export interface ActionNavigateTo extends Action {
type: typeof NAVIGATE_TO;
type: typeof NAVIGATE_TO
payload: {
name: string;
params: any;
opts: any;
name: string
params: any
opts: any
}

@@ -52,14 +57,14 @@ }

export interface ActionCancelTransition extends Action {
type: typeof CANCEL_TRANSITION;
type: typeof CANCEL_TRANSITION
}
export interface ActionClearErrors extends Action {
type: typeof CLEAR_ERRORS;
type: typeof CLEAR_ERRORS
}
export interface ActionTransitionStart extends Action {
type: typeof TRANSITION_START;
type: typeof TRANSITION_START
payload: {
route: State;
previousRoute: State;
route: State
previousRoute: State
}

@@ -69,6 +74,6 @@ }

export interface ActionTransitionSuccess extends Action {
type: typeof TRANSITION_SUCCESS;
type: typeof TRANSITION_SUCCESS
payload: {
route: State;
previousRoute: State;
route: State
previousRoute: State
}

@@ -78,7 +83,7 @@ }

export interface ActionTransitionError extends Action {
type: typeof TRANSITION_ERROR;
type: typeof TRANSITION_ERROR
payload: {
route: State;
previousRoute: State;
transitionError: any;
route: State
previousRoute: State
transitionError: any
}

@@ -88,6 +93,6 @@ }

export interface ActionCanActivate extends Action {
type: typeof CAN_ACTIVATE;
type: typeof CAN_ACTIVATE
payload: {
name: string;
canActivate: boolean;
name: string
canActivate: boolean
}

@@ -97,6 +102,6 @@ }

export interface ActionCanDeactivate extends Action {
type: typeof CAN_DEACTIVATE;
type: typeof CAN_DEACTIVATE
payload: {
name: string;
canDeactivate: boolean;
name: string
canDeactivate: boolean
}

@@ -106,11 +111,21 @@ }

export const actions: {
navigateTo(name: string, params?: any, opts?: any): ActionNavigateTo;
cancelTransition(): ActionCancelTransition;
clearErrors(): ActionClearErrors;
transitionStart(route: State, previousRoute: State): ActionTransitionStart;
transitionSuccess(route: State, previousRoute: State): ActionTransitionSuccess;
transitionError(route: State, previousRoute: State, transitionError: any): ActionTransitionError;
canActivate(name: string, canActivate: boolean): ActionCanActivate;
canDeactivate(name: string, canDeactivate: boolean): ActionCanDeactivate;
};
navigateTo(name: string, params?: any, opts?: any): ActionNavigateTo
cancelTransition(): ActionCancelTransition
clearErrors(): ActionClearErrors
transitionStart(
route: State,
previousRoute: State
): ActionTransitionStart
transitionSuccess(
route: State,
previousRoute: State
): ActionTransitionSuccess
transitionError(
route: State,
previousRoute: State,
transitionError: any
): ActionTransitionError
canActivate(name: string, canActivate: boolean): ActionCanActivate
canDeactivate(name: string, canDeactivate: boolean): ActionCanDeactivate
}

@@ -120,8 +135,8 @@ // #endregion

declare module "redux-router5/immutable/reducer" {
import { Reducer } from 'redux';
import { RouterState } from 'redux-router5';
declare module 'redux-router5/immutable/reducer' {
import { Reducer } from 'redux'
import { RouterState } from 'redux-router5'
const router5Reducer: Reducer<RouterState>;
export default router5Reducer;
const router5Reducer: Reducer<RouterState>
export default router5Reducer
}
{
"name": "redux-router5",
"version": "5.1.1",
"version": "5.1.2",
"description": "Router5 integration with redux",

@@ -37,5 +37,5 @@ "main": "index.js",

"dependencies": {
"router5-transition-path": "^5.0.0"
"router5-transition-path": "^5.0.1"
},
"typings": "./index.d.ts"
}
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