🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@wordpress/redux-routine

Package Overview
Dependencies
Maintainers
25
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/redux-routine - npm Package Compare versions

Comparing version

to
4.11.0

2

CHANGELOG.md

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 4.11.0 (2022-06-15)
## 4.10.0 (2022-06-01)

@@ -7,0 +9,0 @@

4

package.json
{
"name": "@wordpress/redux-routine",
"version": "4.10.0",
"version": "4.11.0",
"description": "Redux middleware for generator coroutines.",

@@ -43,3 +43,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "a3e0b62091e8a8bdf5e2518e42d60d7098af48cc"
"gitHead": "48d5f37dfb52d2e77c8eeb662f9874cf141b8c6b"
}

@@ -29,21 +29,16 @@ /**

controls,
( control, actionType ): Control => (
value,
next,
iterate,
yieldNext,
yieldError
) => {
if ( ! isActionOfType( value, actionType ) ) {
return false;
( control, actionType ): Control =>
( value, next, iterate, yieldNext, yieldError ) => {
if ( ! isActionOfType( value, actionType ) ) {
return false;
}
const routine = control( value );
if ( isPromise( routine ) ) {
// Async control routine awaits resolution.
routine.then( yieldNext, yieldError );
} else {
yieldNext( routine );
}
return true;
}
const routine = control( value );
if ( isPromise( routine ) ) {
// Async control routine awaits resolution.
routine.then( yieldNext, yieldError );
} else {
yieldNext( routine );
}
return true;
}
);

@@ -50,0 +45,0 @@

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