redux-rungen
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -10,3 +10,3 @@ 'use strict'; | ||
Object.keys(_helpers).forEach(function (key) { | ||
if (key === "default") return; | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
@@ -26,2 +26,4 @@ enumerable: true, | ||
var _controls2 = _interopRequireDefault(_controls); | ||
var _rungen = require('rungen'); | ||
@@ -34,3 +36,4 @@ | ||
var middleware = function middleware(store) { | ||
var runtime = _rungen.create.apply(undefined, _toConsumableArray(_rungen.asyncControls).concat(_toConsumableArray(_rungen.wrapControls), _toConsumableArray((0, _controls.createControls)(store.dispatch, store.getState)))); | ||
var runtime = (0, _rungen.create)([].concat(_toConsumableArray(_rungen.asyncControls), _toConsumableArray(_rungen.wrapControls), _toConsumableArray((0, _controls2.default)(store.dispatch, store.getState)))); | ||
return function (next) { | ||
@@ -37,0 +40,0 @@ return function (action) { |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -10,0 +10,0 @@ var _keys = require('./keys'); |
{ | ||
"name": "redux-rungen", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Write your redux action creators as generators", | ||
@@ -20,3 +20,3 @@ "main": "dist/index.js", | ||
}, | ||
"dependencies": { | ||
"peerDependencies": { | ||
"rungen": "^0.2.0" | ||
@@ -23,0 +23,0 @@ }, |
import is from './utils/is' | ||
import { createControls } from './controls' | ||
import createControls from './controls' | ||
import { create, asyncControls, wrapControls } from 'rungen' | ||
@@ -7,7 +7,8 @@ export * from './utils/helpers' | ||
const middleware = store => { | ||
const runtime = create( | ||
const runtime = create([ | ||
...asyncControls, | ||
...wrapControls, | ||
...createControls(store.dispatch, store.getState) | ||
) | ||
]) | ||
return next => action => | ||
@@ -14,0 +15,0 @@ is.iterator(action) ? |
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
10489
165
- Removedrungen@^0.2.0