redux-awaiter
Advanced tools
Comparing version 0.2.0 to 0.2.1
"use strict"; | ||
import awaiters from './awaiters'; | ||
import awaiters from './internal/awaiters'; | ||
export var createAwaiterMiddleware = function () { return function () { return function (next) { return function (action) { | ||
@@ -4,0 +4,0 @@ awaiters.consume(action); |
export * from './createAwaiterMiddleware'; | ||
export * from './operations'; | ||
export * from './types'; |
"use strict"; | ||
import awaiters from '../awaiters'; | ||
import awaiters from '../internal/awaiters'; | ||
export var take = function (pattern) { | ||
@@ -4,0 +4,0 @@ return new Promise(function (resolve) { return awaiters.produce({ pattern: pattern, resolve: resolve }); }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var awaiters_1 = require("./awaiters"); | ||
var awaiters_1 = require("./internal/awaiters"); | ||
exports.createAwaiterMiddleware = function () { return function () { return function (next) { return function (action) { | ||
@@ -5,0 +5,0 @@ awaiters_1.default.consume(action); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var awaiters_1 = require("../awaiters"); | ||
var awaiters_1 = require("../internal/awaiters"); | ||
exports.take = function (pattern) { | ||
@@ -5,0 +5,0 @@ return new Promise(function (resolve) { return awaiters_1.default.produce({ pattern: pattern, resolve: resolve }); }); |
{ | ||
"name": "redux-awaiter", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A Redux middleware for giving opportunities to await and receive actions in anywhere", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
import { Middleware } from 'redux'; | ||
import awaiters from './awaiters'; | ||
import awaiters from './internal/awaiters'; | ||
@@ -5,0 +5,0 @@ export const createAwaiterMiddleware = (): Middleware => () => next => (action) => { |
export * from './createAwaiterMiddleware'; | ||
export * from './operations'; | ||
export * from './types'; |
@@ -1,2 +0,2 @@ | ||
import awaiters from '../awaiters'; | ||
import awaiters from '../internal/awaiters'; | ||
import { Action, Pattern } from '../types'; | ||
@@ -3,0 +3,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
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
28728
353