From e8f0c8f61c454a2d08f0a4eb1e6e3b117c1bfa19 Mon Sep 17 00:00:00 2001 From: ximing Date: Tue, 23 May 2017 11:48:17 +0800 Subject: [PATCH] release 3.2.2 --- dist/index.js | 39 +++++++++++++++++++++++++++------------ package.json | 2 +- src/index.js | 3 +-- 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8ffcb4c..b52fe50 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5,6 +5,33 @@ Object.defineProperty(exports, "__esModule", { }); exports.call = exports.getState = exports.put = exports.dispatch = exports.createModel = exports.handleActions = exports.handleAction = exports.createActions = exports.createAction = undefined; +var _lib = require('./lib'); + +Object.defineProperty(exports, 'dispatch', { + enumerable: true, + get: function get() { + return _lib.dispatch; + } +}); +Object.defineProperty(exports, 'put', { + enumerable: true, + get: function get() { + return _lib.put; + } +}); +Object.defineProperty(exports, 'getState', { + enumerable: true, + get: function get() { + return _lib.getState; + } +}); +Object.defineProperty(exports, 'call', { + enumerable: true, + get: function get() { + return _lib.call; + } +}); + var _router = require('../router'); var _reactRouterRedux = require('react-router-redux'); @@ -33,10 +60,6 @@ var _createModel2 = require('./createModel.js'); var _createModel3 = _interopRequireDefault(_createModel2); -var _lib = require('./lib'); - -var _lib2 = _interopRequireDefault(_lib); - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports.createAction = _createAction3.default; @@ -44,14 +67,6 @@ exports.createActions = _createActions3.default; exports.handleAction = _handleAction3.default; exports.handleActions = _handleActions3.default; exports.createModel = _createModel3.default; -var dispatch = _lib2.default.dispatch, - put = _lib2.default.put, - getState = _lib2.default.getState, - call = _lib2.default.call; -exports.dispatch = dispatch; -exports.put = put; -exports.getState = getState; -exports.call = call; exports.default = (0, _initRab2.default)({ initialReducer: { routing: _reactRouterRedux.routerReducer }, initialActions: {}, diff --git a/package.json b/package.json index 9e2df4b..0366386 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rabjs", - "version": "3.2.1", + "version": "3.2.2", "description": "React and redux based framework.", "repository": "", "author": "yanzhi", diff --git a/src/index.js b/src/index.js index fb0f915..1b005a7 100644 --- a/src/index.js +++ b/src/index.js @@ -10,8 +10,7 @@ export createActions from './redux/createActions'; export handleAction from './redux/handleAction.js'; export handleActions from './redux/handleActions.js'; export createModel from './createModel.js'; -import Lib from './lib'; -export const {dispatch,put,getState,call} = Lib; +export {dispatch,put,getState,call} from './lib'; export default initRab({ initialReducer: {routing}, initialActions:{},