From b52b647a96ceb3a68f6ad992feee7929f097b86d Mon Sep 17 00:00:00 2001 From: graf009 Date: Tue, 17 May 2016 01:48:28 +0600 Subject: [PATCH] build --- dist/lib/connect.js | 10 +++++++--- dist/lib/createActions.js | 8 +------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/dist/lib/connect.js b/dist/lib/connect.js index 2c10b6e..06802ef 100644 --- a/dist/lib/connect.js +++ b/dist/lib/connect.js @@ -4,6 +4,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); +var _extends2 = require('babel-runtime/helpers/extends'); + +var _extends3 = _interopRequireDefault(_extends2); + var _reactRedux = require('react-redux'); var _resolveStoreProps = require('./resolveStoreProps'); @@ -18,13 +22,13 @@ var mapStateToProps = function mapStateToProps(storeProps) { }; }; -var options = { +var defaults = { pure: true, withRef: true }; -exports.default = function (storeProps) { - var connector = (0, _reactRedux.connect)(storeProps ? mapStateToProps(storeProps) : null, null, null, options); +exports.default = function (storeProps, options) { + var connector = (0, _reactRedux.connect)(storeProps ? mapStateToProps(storeProps) : null, null, null, (0, _extends3.default)({}, defaults, options)); return function (Component) { Component.storeProps = storeProps; return connector(Component); diff --git a/dist/lib/createActions.js b/dist/lib/createActions.js index 8f7b2e1..f07c1ad 100644 --- a/dist/lib/createActions.js +++ b/dist/lib/createActions.js @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.createActions2 = exports.createActions = undefined; +exports.createActions = undefined; var _reduxActions = require('redux-actions'); @@ -36,10 +36,4 @@ var createActions = exports.createActions = function createActions(actions, disp }); }; -var createActions2 = exports.createActions2 = function createActions2(actions) { - if (typeof actions === 'string') return (0, _reduxActions.createAction)(actions); - if (typeof actions === 'function') return actions; - return (0, _lodash2.default)(actions, createActions); -}; - exports.default = createActions; \ No newline at end of file