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

redux-saga

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-saga - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0-beta.2

dist/chunk-3152cf70.js

208

effects.d.ts

@@ -1,2 +0,2 @@

import {Action} from "redux";
import {Action, AnyAction} from "redux";
import {

@@ -47,7 +47,9 @@ END, TakeableChannel, PuttableChannel, FlushableChannel,

export interface TakeEffect {
TAKE: TakeEffectDescriptor;
type: 'TAKE';
payload: TakeEffectDescriptor;
}
export interface ChannelTakeEffect<T> {
TAKE: ChannelTakeEffectDescriptor<T>;
type: 'TAKE';
payload: ChannelTakeEffectDescriptor<T>;
}

@@ -76,8 +78,10 @@

export interface PutEffect<A extends Action> {
PUT: PutEffectDescriptor<A>;
export interface PutEffect<A extends Action = AnyAction> {
type: 'PUT';
payload: PutEffectDescriptor<A>;
}
export interface ChannelPutEffect<T> {
PUT: ChannelPutEffectDescriptor<T>;
type: 'PUT';
payload: ChannelPutEffectDescriptor<T>;
}

@@ -96,3 +100,4 @@

export interface GenericAllEffect<T> {
ALL: GenericAllEffectDescriptor<T>;
type: 'ALL';
payload: GenericAllEffectDescriptor<T>;
}

@@ -103,3 +108,4 @@

export interface AllEffect {
ALL: AllEffectDescriptor;
type: 'ALL'
payload: AllEffectDescriptor;
}

@@ -117,3 +123,4 @@

export interface GenericRaceEffect<T> {
RACE: GenericRaceEffectDescriptor<T>;
type: 'RACE';
payload: GenericRaceEffectDescriptor<T>;
}

@@ -124,3 +131,4 @@

export interface RaceEffect {
RACE: RaceEffectDescriptor;
type: 'RACE';
payload: RaceEffectDescriptor;
}

@@ -142,3 +150,4 @@

export interface CallEffect {
CALL: CallEffectDescriptor;
type: 'CALL';
payload: CallEffectDescriptor;
}

@@ -268,3 +277,4 @@

export interface CpsEffect {
CPS: CallEffectDescriptor;
type: 'CPS';
payload: CallEffectDescriptor;
}

@@ -329,3 +339,4 @@

export interface ForkEffect {
FORK: ForkEffectDescriptor;
type: 'FORK';
payload: ForkEffectDescriptor;
}

@@ -337,18 +348,19 @@

export type JoinEffectDescriptor = Task;
export type JoinEffectDescriptor = Task | Task[];
export interface JoinEffect {
JOIN: JoinEffectDescriptor;
type: 'JOIN';
payload: JoinEffectDescriptor;
}
export function join(task: Task): JoinEffect;
export function join(task1: Task, task2: Task,
...tasks: Task[]): GenericAllEffect<JoinEffect>;
export function join(tasks: Task[]): JoinEffect;
type SELF_CANCELLATION = '@@redux-saga/SELF_CANCELLATION';
export type CancelEffectDescriptor = Task | SELF_CANCELLATION;
export type CancelEffectDescriptor = Task | Task[] | SELF_CANCELLATION;
export interface CancelEffect {
CANCEL: CancelEffectDescriptor;
type: 'CANCEL';
payload: CancelEffectDescriptor;
}

@@ -358,3 +370,3 @@

export function cancel(task: Task): CancelEffect;
export function cancel(...tasks: Task[]): GenericAllEffect<CancelEffect>;
export function cancel(tasks: Task[]): CancelEffect;

@@ -368,3 +380,4 @@

export interface SelectEffect {
SELECT: SelectEffectDescriptor;
type: 'SELECT';
payload: SelectEffectDescriptor;
}

@@ -396,3 +409,4 @@

export interface ActionChannelEffect {
ACTION_CHANNEL: ActionChannelEffectDescriptor;
type: 'ACTION_CHANNEL';
payload: ActionChannelEffectDescriptor;
}

@@ -408,3 +422,4 @@

export interface CancelledEffect {
CANCELLED: CancelledEffectDescriptor;
type: 'CANCELLED';
payload: CancelledEffectDescriptor;
}

@@ -418,3 +433,4 @@

export interface FlushEffect<T> {
FLUSH: FlushEffectDescriptor<T>;
type: 'FLUSH';
payload: FlushEffectDescriptor<T>;
}

@@ -428,3 +444,4 @@

export interface GetContextEffect {
GET_CONTEXT: GetContextEffectDescriptor;
type: 'GET_CONTEXT';
payload: GetContextEffectDescriptor;
}

@@ -438,3 +455,4 @@

export interface SetContextEffect<C extends object> {
SET_CONTEXT: SetContextEffectDescriptor<C>;
type: 'SET_CONTEXT';
payload: SetContextEffectDescriptor<C>;
}

@@ -571,2 +589,138 @@

export function delay<T>(ms: number, val?: T): CallEffect;
export function delay<T>(ms: number, val?: T): CallEffect;
export function retry<R>(
maxTries: number,
delayLength: number,
fn: Func0<R>
): CallEffect
export function retry<R, T1>(
maxTries: number,
delayLength: number,
fn: Func1<R, T1>,
arg1: T1
): CallEffect
export function retry<R, T1, T2>(
maxTries: number,
delayLength: number,
fn: Func2<R, T1, T2>,
arg1: T1, arg2: T2,
): CallEffect
export function retry<R, T1, T2, T3>(
maxTries: number,
delayLength: number,
fn: Func3<R, T1, T2, T3>,
arg1: T1, arg2: T2, arg3: T3,
): CallEffect
export function retry<R, T1, T2, T3, T4>(
maxTries: number,
delayLength: number,
fn: Func4<R, T1, T2, T3, T4>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4,
): CallEffect
export function retry<R, T1, T2, T3, T4, T5>(
maxTries: number,
delayLength: number,
fn: Func5<R, T1, T2, T3, T4, T5>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5,
): CallEffect
export function retry<R, T1, T2, T3, T4, T5, T6>(
maxTries: number,
delayLength: number,
fn: Func6Rest<R, T1, T2, T3, T4, T5, T6>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, ...rest: any[]
): CallEffect
export function debounce<A extends Action>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc0<A>
): ForkEffect;
export function debounce<A extends Action, T1>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc1<A, T1>,
arg1: T1
): ForkEffect;
export function debounce<A extends Action, T1, T2>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc2<A, T1, T2>,
arg1: T1, arg2: T2
): ForkEffect;
export function debounce<A extends Action, T1, T2, T3>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc3<A, T1, T2, T3>,
arg1: T1, arg2: T2, arg3: T3
): ForkEffect;
export function debounce<A extends Action, T1, T2, T3, T4>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc4<A, T1, T2, T3, T4>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4
): ForkEffect;
export function debounce<A extends Action, T1, T2, T3, T4, T5>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc5<A, T1, T2, T3, T4, T5>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5
): ForkEffect;
export function debounce<A extends Action, T1, T2, T3, T4, T5, T6>(
delayLength: number,
pattern: ActionPattern<A>,
worker: HelperFunc6Rest<A, T1, T2, T3, T4, T5, T6>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6,
...rest: any[]
): ForkEffect;
export function debounce<T>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc0<T>
): ForkEffect;
export function debounce<T, T1>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc1<T, T1>,
arg1: T1
): ForkEffect;
export function debounce<T, T1, T2>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc2<T, T1, T2>,
arg1: T1, arg2: T2
): ForkEffect;
export function debounce<T, T1, T2, T3>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc3<T, T1, T2, T3>,
arg1: T1, arg2: T2, arg3: T3
): ForkEffect;
export function debounce<T, T1, T2, T3, T4>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc4<T, T1, T2, T3, T4>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4
): ForkEffect;
export function debounce<T, T1, T2, T3, T4, T5>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc5<T, T1, T2, T3, T4, T5>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5
): ForkEffect;
export function debounce<T, T1, T2, T3, T4, T5, T6>(
delayLength: number,
channel: TakeableChannel<T>,
worker: HelperFunc6Rest<T, T1, T2, T3, T4, T5, T6>,
arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6,
...rest: any[]
): ForkEffect;

5

effects/package.json
{
"name": "redux-saga/effects",
"private": true,
"main": "../lib/effects.js",
"module": "../es/effects.js",
"jsnext:main": "../es/effects.js"
"main": "../dist/redux-saga-effects.cjs.js",
"module": "../dist/redux-saga-effects.esm.js"
}
{
"name": "redux-saga",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Saga middleware for Redux to handle Side Effects",
"main": "lib/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"unpkg": "dist/redux-saga.min.js",
"main": "dist/redux-saga-core.cjs.js",
"module": "dist/redux-saga-core.esm.js",
"unpkg": "dist/redux-saga.min.umd.js",
"files": [
"es",
"lib",
"dist",

@@ -18,17 +15,14 @@ "effects",

"scripts": {
"test": "cross-env NODE_ENV=test babel-node test/index.js | tap-spec",
"prebundlesize": "npm run build:umd:prod",
"test": "jest",
"prebundlesize": "npm run build",
"bundlesize": "bundlesize",
"clean": "rimraf dist es lib",
"build:umd:dev": "cross-env BABEL_ENV=es NODE_ENV=development rollup -c -i src/index.js -o dist/redux-saga.js",
"build:umd:prod": "cross-env BABEL_ENV=es NODE_ENV=production rollup -c -i src/index.js -o dist/redux-saga.min.js",
"build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build": "npm run clean && run-p build:**",
"clean": "rimraf dist",
"prebuild": "npm run clean",
"build": "rollup -c",
"prepare": "npm run build",
"prepush": "npm run test",
"prerelease": "npm run test && npm run prepare",
"release:patch": "npm run prerelease && npm version patch && npm publish && git push --follow-tags",
"release:minor": "npm run prerelease && npm version minor && npm publish && git push --follow-tags",
"release:major": "npm run prerelease && npm version major && npm publish && git push --follow-tags"
"preversion": "npm run test && npm run prepare",
"release:patch": "npm version patch && npm publish && git push --follow-tags",
"release:minor": "npm version minor && npm publish && git push --follow-tags",
"release:major": "npm version major && npm publish && git push --follow-tags"
},

@@ -46,3 +40,3 @@ "repository": "https://github.com/redux-saga/redux-saga/tree/master/packages/core",

{
"path": "./dist/redux-saga.min.js",
"path": "./dist/redux-saga.min.umd.js",
"maxSize": "7.5 Kb"

@@ -61,23 +55,24 @@ }

"dependencies": {
"@redux-saga/deferred": "^1.0.0-beta.2",
"@redux-saga/delay-p": "^1.0.0-beta.2",
"@redux-saga/is": "^1.0.0-beta.2",
"@redux-saga/symbols": "^1.0.0-beta.2",
"redux": ">=0.10 <5"
},
"devDependencies": {
"@babel/cli": "7.0.0-beta.39",
"@babel/core": "7.0.0-beta.39",
"@babel/node": "7.0.0-beta.39",
"@babel/polyfill": "7.0.0-beta.39",
"@babel/preset-env": "7.0.0-beta.39",
"@babel/preset-react": "7.0.0-beta.39",
"@babel/preset-stage-2": "7.0.0-beta.39",
"babel-plugin-annotate-pure-calls": "babel7",
"@babel/cli": "7.0.0-beta.52",
"@babel/core": "7.0.0-beta.52",
"@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.52",
"@babel/polyfill": "7.0.0-beta.52",
"@babel/preset-env": "7.0.0-beta.52",
"babel-7-jest": "^21.3.3",
"babel-plugin-annotate-pure-calls": "^0.3.0",
"bundlesize": "^0.11.0",
"cross-env": "^1.0.8",
"husky": "^0.13.3",
"lint-staged": "^3.4.2",
"jest": "^23.5.0",
"lerna-alias": "^3.0.2",
"lolex": "^1.5.2",
"mitt": "^1.1.2",
"npm-run-all": "^4.0.2",
"prettier": "^1.4.1",
"rimraf": "^2.4.3",
"rollup": "^0.50.0",
"rollup": "^0.64.1",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-babel": "4.0.0-beta.1",

@@ -87,5 +82,3 @@ "rollup-plugin-node-resolve": "^3.0.0",

"rollup-plugin-uglify": "^2.0.1",
"tap-spec": "^4.1.1",
"tape": "^4.2.2",
"typescript": "~2.6.0",
"typescript": "^2.6.2",
"typings-tester": "^0.2.2"

@@ -92,0 +85,0 @@ },

@@ -14,5 +14,2 @@ import {

export function delay(ms: number): Promise<true>;
export function delay<T>(ms: number, val: T): Promise<T>;
export const TASK: string | symbol;

@@ -19,0 +16,0 @@ export const SAGA_ACTION: string | symbol;

{
"name": "redux-saga/utils",
"private": true,
"main": "../lib/utils.js",
"module": "../es/utils.js",
"jsnext:main": "../es/utils.js"
"main": "../dist/redux-saga-utils.cjs.js",
"module": "../dist/redux-saga-utils.esm.js"
}
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