Comparing version 4.0.0 to 4.1.0
@@ -77,3 +77,3 @@ 'use strict'; | ||
// Bind action creators to dispatch. | ||
var boundCreators = function boundCreators(dispatch) { | ||
var bindCreators = function bindCreators(dispatch) { | ||
return mapValues(creators || {}, function (c) { | ||
@@ -86,7 +86,7 @@ return redux.bindActionCreators(c, dispatch); | ||
if (!selectors || typeof selectors === "function") { | ||
return reactRedux.connect(selectors, boundCreators); | ||
return reactRedux.connect(selectors, bindCreators); | ||
} | ||
// Bind selectors to state if it's an object. | ||
var boundSelectors = function boundSelectors(state) { | ||
var bindSelectors = function bindSelectors(state) { | ||
return mapValues(selectors, function (s) { | ||
@@ -97,3 +97,3 @@ return bindStateSelectors(s, state); | ||
return reactRedux.connect(boundSelectors, boundCreators); | ||
return reactRedux.connect(bindSelectors, bindCreators); | ||
}; | ||
@@ -100,0 +100,0 @@ |
@@ -73,3 +73,3 @@ import { bindActionCreators } from 'redux'; | ||
// Bind action creators to dispatch. | ||
var boundCreators = function boundCreators(dispatch) { | ||
var bindCreators = function bindCreators(dispatch) { | ||
return mapValues(creators || {}, function (c) { | ||
@@ -82,7 +82,7 @@ return bindActionCreators(c, dispatch); | ||
if (!selectors || typeof selectors === "function") { | ||
return connect(selectors, boundCreators); | ||
return connect(selectors, bindCreators); | ||
} | ||
// Bind selectors to state if it's an object. | ||
var boundSelectors = function boundSelectors(state) { | ||
var bindSelectors = function bindSelectors(state) { | ||
return mapValues(selectors, function (s) { | ||
@@ -93,5 +93,5 @@ return bindStateSelectors(s, state); | ||
return connect(boundSelectors, boundCreators); | ||
return connect(bindSelectors, bindCreators); | ||
}; | ||
export { action, bindStateSelectors, connect$1 as connect }; |
{ | ||
"name": "inaction", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"author": "olav", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -9,3 +9,3 @@ import { bindActionCreators } from "redux"; | ||
// Bind action creators to dispatch. | ||
const boundCreators = dispatch => { | ||
const bindCreators = dispatch => { | ||
return mapValues(creators || {}, c => bindActionCreators(c, dispatch)); | ||
@@ -16,11 +16,11 @@ }; | ||
if (!selectors || typeof selectors === "function") { | ||
return reduxConnect(selectors, boundCreators); | ||
return reduxConnect(selectors, bindCreators); | ||
} | ||
// Bind selectors to state if it's an object. | ||
const boundSelectors = state => { | ||
const bindSelectors = state => { | ||
return mapValues(selectors, s => bindStateSelectors(s, state)); | ||
}; | ||
return reduxConnect(boundSelectors, boundCreators); | ||
return reduxConnect(bindSelectors, bindCreators); | ||
}; |
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
13446