@wordpress/redux-routine
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -8,2 +8,3 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
import { map, isString } from 'lodash'; | ||
import isPromise from 'is-promise'; | ||
/** | ||
@@ -34,3 +35,3 @@ * Internal dependencies | ||
if (routine instanceof Promise) { | ||
if (isPromise(routine)) { | ||
// Async control routine awaits resolution. | ||
@@ -37,0 +38,0 @@ routine.then(yieldNext, function (error) { |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _isPromise = _interopRequireDefault(require("is-promise")); | ||
var _castError = _interopRequireDefault(require("./cast-error")); | ||
@@ -46,3 +48,3 @@ | ||
if (routine instanceof Promise) { | ||
if ((0, _isPromise.default)(routine)) { | ||
// Async control routine awaits resolution. | ||
@@ -49,0 +51,0 @@ routine.then(yieldNext, function (error) { |
@@ -1,2 +0,2 @@ | ||
## 3.0.0 (Unreleased) | ||
## 3.0.0 (2018-09-30) | ||
@@ -8,2 +8,6 @@ ### Breaking change | ||
## Bug Fixes | ||
- Fix running routines in Firefox. | ||
## 2.0.0 (2018-09-05) | ||
@@ -10,0 +14,0 @@ |
{ | ||
"name": "@wordpress/redux-routine", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Redux middleware for generator coroutines.", | ||
@@ -26,2 +26,3 @@ "author": "The WordPress Contributors", | ||
"@babel/runtime": "^7.0.0", | ||
"is-promise": "^2.1.0", | ||
"rungen": "^0.3.2" | ||
@@ -35,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "7b17d5777076896fb25170b23d6e83e8c049240d" | ||
"gitHead": "0aa5c4340f57a69ab935f9e819d74958aad2e022" | ||
} |
@@ -6,2 +6,3 @@ /** | ||
import { map, isString } from 'lodash'; | ||
import isPromise from 'is-promise'; | ||
@@ -27,3 +28,3 @@ /** | ||
const routine = control( value ); | ||
if ( routine instanceof Promise ) { | ||
if ( isPromise( routine ) ) { | ||
// Async control routine awaits resolution. | ||
@@ -30,0 +31,0 @@ routine.then( |
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
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
53862
507
0
3
+ Addedis-promise@^2.1.0
+ Addedis-promise@2.2.2(transitive)