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

@wordpress/redux-routine

Package Overview
Dependencies
Maintainers
8
Versions
153
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 3.0.0 to 3.0.1

3

build-module/runtime.js

@@ -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

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