redux-toolbelt-saga
Advanced tools
Comparing version 1.0.4 to 1.0.7
@@ -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 }; |
@@ -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 @@ }, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
4631
78