Skip to content
This repository was archived by the owner on May 23, 2018. It is now read-only.

Commit 2acff8b

Browse files
committed
chore: v4.2.3
1 parent 81ac2ce commit 2acff8b

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

dist/es/immutable/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var State = Record({
1010
});
1111

1212
function router5Reducer() {
13-
var state = arguments.length <= 0 || arguments[0] === undefined ? new State() : arguments[0];
13+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new State();
1414
var action = arguments[1];
1515

1616
switch (action.type) {

dist/es/lib/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as actionTypes from './actionTypes';
22

33
export function navigateTo(name) {
4-
var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
5-
var opts = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
4+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5+
var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
66

77
return {
88
type: actionTypes.NAVIGATE_TO,

dist/es/lib/routeNodeSelector.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import transitionPath from 'router5.transition-path';
22

33
function routeNodeSelector(routeNode) {
4-
var reducerKey = arguments.length <= 1 || arguments[1] === undefined ? 'router' : arguments[1];
4+
var reducerKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'router';
55

66
var routerStateSelector = function routerStateSelector(state) {
77
return state[reducerKey] || state.get && state.get(reducerKey);
88
};
99
var lastReturnedValue = void 0;
1010

1111
return function (state) {
12-
var _routerStateSelector = routerStateSelector(state);
13-
14-
var route = _routerStateSelector.route;
15-
var previousRoute = _routerStateSelector.previousRoute;
12+
var _routerStateSelector = routerStateSelector(state),
13+
route = _routerStateSelector.route,
14+
previousRoute = _routerStateSelector.previousRoute;
1615

1716
var intersection = route ? transitionPath(route, previousRoute).intersection : '';
1817

dist/es/lib/router5Middleware.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ var router5ReduxMiddleware = function router5ReduxMiddleware(router) {
1212
return function (action) {
1313
switch (action.type) {
1414
case actionTypes.NAVIGATE_TO:
15-
var _action$payload = action.payload;
16-
var name = _action$payload.name;
17-
var params = _action$payload.params;
18-
var opts = _action$payload.opts;
15+
var _action$payload = action.payload,
16+
name = _action$payload.name,
17+
params = _action$payload.params,
18+
opts = _action$payload.opts;
1919

2020
router.navigate(name, params, opts);
2121
break;

dist/es/lib/router5Reducer.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
2+
13
import * as actionTypes from './actionTypes';
24

35
var initialState = {
@@ -8,32 +10,32 @@ var initialState = {
810
};
911

1012
function router5Reducer() {
11-
var state = arguments.length <= 0 || arguments[0] === undefined ? initialState : arguments[0];
13+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
1214
var action = arguments[1];
1315

1416
switch (action.type) {
1517
case actionTypes.TRANSITION_START:
16-
return babelHelpers.extends({}, state, {
18+
return _extends({}, state, {
1719
transitionRoute: action.payload.route,
1820
transitionError: null
1921
});
2022

2123
case actionTypes.TRANSITION_SUCCESS:
22-
return babelHelpers.extends({}, state, {
24+
return _extends({}, state, {
2325
transitionRoute: null,
2426
transitionError: null,
2527
previousRoute: action.payload.previousRoute,
2628
route: action.payload.route
2729
});
2830

2931
case actionTypes.TRANSITION_ERROR:
30-
return babelHelpers.extends({}, state, {
32+
return _extends({}, state, {
3133
transitionRoute: action.payload.route,
3234
transitionError: action.payload.transitionError
3335
});
3436

3537
case actionTypes.CLEAR_ERRORS:
36-
return babelHelpers.extends({}, state, {
38+
return _extends({}, state, {
3739
transitionRoute: null,
3840
transitionError: null
3941
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-router5",
3-
"version": "4.2.2",
3+
"version": "4.2.3",
44
"description": "Router5 integration with redux",
55
"main": "index.js",
66
"module": "dist/es/index.js",

0 commit comments

Comments
 (0)