Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
graf009 authored and graf009 committed May 16, 2016
1 parent 1320377 commit b52b647
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 7 additions & 3 deletions dist/lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);
Expand Down
8 changes: 1 addition & 7 deletions dist/lib/createActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createActions2 = exports.createActions = undefined;
exports.createActions = undefined;

var _reduxActions = require('redux-actions');

Expand Down Expand Up @@ -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;

0 comments on commit b52b647

Please sign in to comment.