New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.7 to 1.0.8

16

lib/index.js

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

import _makeAsyncSaga from './makeAsyncSaga';
export { _makeAsyncSaga as makeAsyncSaga };
'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;

19

lib/makeAsyncSaga.js

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

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

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

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

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

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

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

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

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

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

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

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

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

{
"name": "redux-toolbelt-saga",
"version": "1.0.7",
"version": "1.0.8",
"description": "Saga helpers for redux-toolbelt",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib",
"build": "cross-env BABEL_ENV=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