@wordpress/redux-routine
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -1,3 +0,1 @@ | ||
import _Promise from "@babel/runtime-corejs2/core-js/promise"; | ||
/** | ||
@@ -40,3 +38,3 @@ * Internal dependencies | ||
if (routine instanceof _Promise) { | ||
if (routine instanceof Promise) { | ||
// Async control routine awaits resolution. | ||
@@ -43,0 +41,0 @@ routine.then(function (result) { |
@@ -1,3 +0,1 @@ | ||
import _Symbol$toStringTag from "@babel/runtime-corejs2/core-js/symbol/to-string-tag"; | ||
/** | ||
@@ -13,4 +11,4 @@ * Returns true if the given object is a generator, or false otherwise. | ||
export default function isGenerator(object) { | ||
return !!object && object[_Symbol$toStringTag] === 'Generator'; | ||
return !!object && object[Symbol.toStringTag] === 'Generator'; | ||
} | ||
//# sourceMappingURL=is-generator.js.map |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -10,4 +10,2 @@ Object.defineProperty(exports, "__esModule", { | ||
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise")); | ||
var _isGenerator = _interopRequireDefault(require("./is-generator")); | ||
@@ -52,3 +50,3 @@ | ||
if (routine instanceof _promise.default) { | ||
if (routine instanceof Promise) { | ||
// Async control routine awaits resolution. | ||
@@ -55,0 +53,0 @@ routine.then(function (result) { |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -10,4 +8,2 @@ value: true | ||
var _toStringTag = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/symbol/to-string-tag")); | ||
/** | ||
@@ -23,4 +19,4 @@ * Returns true if the given object is a generator, or false otherwise. | ||
function isGenerator(object) { | ||
return !!object && object[_toStringTag.default] === 'Generator'; | ||
return !!object && object[Symbol.toStringTag] === 'Generator'; | ||
} | ||
//# sourceMappingURL=is-generator.js.map |
{ | ||
"name": "@wordpress/redux-routine", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "Redux middleware for generator coroutines.", | ||
@@ -25,3 +25,3 @@ "author": "The WordPress Contributors", | ||
"dependencies": { | ||
"@babel/runtime-corejs2": "7.0.0-beta.56" | ||
"@babel/runtime": "^7.0.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "f02064f12a148df60b8d79801858ce3699bdfb89" | ||
"gitHead": "df6f8da7b557894e4364c17db2dd4af0d1e20252" | ||
} |
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
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
47259
22
422
1
+ Added@babel/runtime@^7.0.0
+ Added@babel/runtime@7.26.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removed@babel/runtime-corejs2@7.0.0-beta.56
- Removed@babel/runtime-corejs2@7.0.0-beta.56(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.12.1(transitive)