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

redux-toolbelt-saga

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-toolbelt-saga - npm Package Compare versions

Comparing version 1.0.4 to 1.0.7

16

lib/index.js

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

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.makeAsyncSaga = undefined;
var _makeAsyncSaga2 = require('./makeAsyncSaga');
var _makeAsyncSaga3 = _interopRequireDefault(_makeAsyncSaga2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.makeAsyncSaga = _makeAsyncSaga3.default;
import _makeAsyncSaga from './makeAsyncSaga';
export { _makeAsyncSaga as makeAsyncSaga };

19

lib/makeAsyncSaga.js

@@ -1,10 +0,3 @@

'use strict';
import { call, put, takeLatest } from 'redux-saga/effects';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = makeAsyncSaga;
var _effects = require('redux-saga/effects');
/**

@@ -15,3 +8,3 @@ * @param {AsyncActionCreator} asyncActionCreator

*/
function makeAsyncSaga(asyncActionCreator, fn) {
export default function makeAsyncSaga(asyncActionCreator, fn) {
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {

@@ -32,3 +25,3 @@ args[_key - 2] = arguments[_key];

_context.next = 3;
return _effects.call.apply(undefined, [fn].concat(args));
return call.apply(undefined, [fn].concat(args));

@@ -38,3 +31,3 @@ case 3:

_context.next = 6;
return (0, _effects.put)(asyncActionCreator.success(result));
return put(asyncActionCreator.success(result));

@@ -49,3 +42,3 @@ case 6:

_context.next = 12;
return (0, _effects.put)(asyncActionCreator.failure(_context.t0));
return put(asyncActionCreator.failure(_context.t0));

@@ -66,3 +59,3 @@ case 12:

_context2.next = 2;
return (0, _effects.takeLatest)(asyncActionCreator.TYPE, exec);
return takeLatest(asyncActionCreator.TYPE, exec);

@@ -69,0 +62,0 @@ case 2:

{
"name": "redux-toolbelt-saga",
"version": "1.0.4",
"version": "1.0.7",
"description": "Saga helpers for redux-toolbelt",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib --plugins transform-es2015-modules-commonjs",
"build": "babel src --out-dir lib",
"prepublish": "npm run build"

@@ -9,0 +9,0 @@ },

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