Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-thunk-recursion-detect

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-thunk-recursion-detect - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

22

index.d.ts

@@ -19,2 +19,4 @@ import {

* @template TBasicAction The (non-thunk) actions that can be dispatched.
* @template TReturnTypeConstraint Gives the ability to restrain the possible
* thunk return types
*/

@@ -24,6 +26,6 @@ export interface ThunkDispatch<

TExtraThunkArg,
TBasicAction extends Action
TBasicAction extends Action,
> {
<TReturnType>(
thunkAction: ThunkAction<TReturnType, TState, TExtraThunkArg, TBasicAction>
thunkAction: ThunkAction<TState, TExtraThunkArg, TBasicAction, TReturnType>
): TReturnType;

@@ -45,8 +47,10 @@ <A extends TBasicAction>(action: A): A;

* @template TBasicAction The (non-thunk) actions that can be dispatched.
* @template TReturnTypeConstraint Gives the ability to restrain the possible
* thunk return types
*/
export type ThunkAction<
TReturnType,
TState,
TExtraThunkArg,
TBasicAction extends Action
TBasicAction extends Action,
TReturnType
> = (

@@ -77,2 +81,4 @@ dispatch: ThunkDispatch<TState, TExtraThunkArg, TBasicAction>,

* inner function. (Only used if you call `thunk.withExtraArgument()`)
* @template TReturnTypeConstraint Gives the ability to restrain the possible
* thunk return types
*/

@@ -82,7 +88,7 @@ export type ThunkMiddleware<

TBasicAction extends Action = AnyAction,
TExtraThunkARg = undefined
TExtraThunkArg = undefined,
> = Middleware<
ThunkDispatch<TState, TExtraThunkARg, TBasicAction>,
ThunkDispatch<TState, TExtraThunkArg, TBasicAction>,
TState,
ThunkDispatch<TState, TExtraThunkARg, TBasicAction>
ThunkDispatch<TState, TExtraThunkArg, TBasicAction>
>;

@@ -98,2 +104,4 @@

export declare const isNestedThunkSymbol: symbol;
/**

@@ -100,0 +108,0 @@ * Redux behaviour changed by middleware, so overloads here

{
"name": "redux-thunk-recursion-detect",
"version": "1.1.1",
"version": "1.1.2",
"description": "A drop-in replacement for `redux-thunk` that allows middleware to detect that a thunk has been dispatched from within another thunk",

@@ -28,2 +28,6 @@ "main": "dist/reduxThunkRecursionDetect.cjs.js",

],
"peerDependencies": {
"redux": "^4.0.3"
},
"types": "index.d.ts",
"author": "ian.b.taylor@gmail.com",

@@ -34,6 +38,6 @@ "license": "MIT",

"jest": "^24.8.0",
"redux": "^4.0.1",
"redux": "^4.0.3",
"rollup": "^1.15.3"
},
"gitHead": "de53733e1521554e712e7e60ca41a7b857eb0a45"
"gitHead": "ce99a9a31342577e2c19976999ecab10ec1cdd7f"
}
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