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

redux-awaiter

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-awaiter - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

index.d.ts

5

lib/awaiters.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Awaiters = (function () {

@@ -42,5 +43,5 @@ function Awaiters() {

}());
export { Awaiters };
exports.Awaiters = Awaiters;
var awaiters = Awaiters.Instance;
export default awaiters;
exports.default = awaiters;
//# sourceMappingURL=awaiters.js.map

14

lib/index.js
"use strict";
import awaiters from './awaiters';
export var createAwaiterMiddleware = function () { return function () { return function (next) { return function (action) {
awaiters.consume(action);
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var awaiters_1 = require("./awaiters");
exports.createAwaiterMiddleware = function () { return function () { return function (next) { return function (action) {
awaiters_1.default.consume(action);
return next(action);
}; }; }; };
export * from './awaiters';
export * from './operations';
__export(require("./awaiters"));
__export(require("./operations"));
//# sourceMappingURL=index.js.map
"use strict";
export * from './take';
export * from './takeAllOf';
export * from './takeOneOf';
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./take"));
__export(require("./takeAllOf"));
__export(require("./takeOneOf"));
//# sourceMappingURL=index.js.map
"use strict";
import awaiters from '../awaiters';
export var take = function (pattern) {
return new Promise(function (resolve) { return awaiters.produce({ pattern: pattern, resolve: resolve }); });
Object.defineProperty(exports, "__esModule", { value: true });
var awaiters_1 = require("../awaiters");
exports.take = function (pattern) {
return new Promise(function (resolve) { return awaiters_1.default.produce({ pattern: pattern, resolve: resolve }); });
};
//# sourceMappingURL=take.js.map
"use strict";
import { take } from './';
export var takeAllOf = function (patterns) {
return Promise.all(patterns.map(take));
Object.defineProperty(exports, "__esModule", { value: true });
var _1 = require("./");
exports.takeAllOf = function (patterns) {
return Promise.all(patterns.map(_1.take));
};
//# sourceMappingURL=takeAllOf.js.map
"use strict";
import { take } from './';
export var takeOneOf = function (patterns) {
return Promise.race(patterns.map(take));
Object.defineProperty(exports, "__esModule", { value: true });
var _1 = require("./");
exports.takeOneOf = function (patterns) {
return Promise.race(patterns.map(_1.take));
};
//# sourceMappingURL=takeOneOf.js.map
{
"name": "redux-awaiter",
"version": "0.0.1",
"version": "0.0.2",
"description": "A Redux middleware for giving opportunities to await and receive actions in anywhere",

@@ -11,3 +11,4 @@ "main": "lib/index.js",

"es",
"src"
"src",
"index.d.ts"
],

@@ -21,3 +22,3 @@ "scripts": {

"build:es": "tsc --outDir es -d",
"build:commonjs": "tsc --target es5 --outDir lib",
"build:commonjs": "tsc -m commonjs --target es5 --outDir lib",
"build": "npm run build:es && npm run build:commonjs",

@@ -24,0 +25,0 @@ "prepare": "npm run clean && npm run lint && npm run build"

# Redux Awaiter
Redux Awaiter is a Redux middleware for giving opportunities to await and receive actions in anywhere.
[![build status](https://img.shields.io/travis/yenshih/redux-awaiter/master.svg?style=flat-square)](https://travis-ci.org/yenshih/redux-awaiter)
[![npm version](https://img.shields.io/npm/v/redux-awaiter.svg?style=flat-square)](https://www.npmjs.com/package/redux-awaiter)
[![npm downloads](https://img.shields.io/npm/dm/redux-awaiter.svg?style=flat-square)](https://www.npmjs.com/package/redux-awaiter)
## Motivation

@@ -5,0 +9,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

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