Skip to content
This repository was archived by the owner on Jan 6, 2019. It is now read-only.

Commit 52ffb75

Browse files
author
Didier Franc
committed
Update dependencies, README.md
1 parent efacc07 commit 52ffb75

File tree

4 files changed

+505
-502
lines changed

4 files changed

+505
-502
lines changed

README.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,40 @@ Then go to your repository, Settings -> Options -> Github Pages and select /docs
5353

5454
#### Dependencies
5555
```
56-
babel-polyfill 6.16.0
57-
react 15.4.1
58-
react-dom 15.4.1
59-
react-redux 5.0.0-rc.1
60-
react-router 4.0.0-alpha.6
61-
redux 3.6.0
62-
redux-thunk 2.1.0
63-
styled-components  1.0.10
64-
```
65-
```
66-
babel-core 6.18.0
67-
babel-eslint 7.0.0
68-
babel-loader 6.2.5
69-
babel-preset-es2015 6.18.0
70-
babel-preset-react 6.18.0
71-
babel-preset-stage-0 6.18.0
72-
eslint 3.8.1
73-
eslint-config-airbnb 13.0.0
74-
eslint-plugin-babel 4.0.0
75-
eslint-plugin-import 2.2.0
76-
eslint-plugin-jsx-a11y 2.2.3
77-
eslint-plugin-react 6.4.1
78-
html-webpack-plugin 2.24.1
79-
react-hot-loader 3.0.0-beta.6
80-
webpack 2.1.0-beta.27
81-
webpack-dev-server 2.1.0-beta.12
56+
lodash 4.17.4
57+
offline-plugin 4.5.5
58+
react 15.4.1
59+
react-dom 15.4.1
60+
react-redux 5.0.1
61+
react-router 4.0.0-alpha.6
62+
redux 3.5.2
63+
redux-thunk 2.2.0
64+
styled-components 1.3.1
65+
```
66+
67+
```
68+
babel-core 6.22.1
69+
babel-eslint 7.0.0
70+
babel-jest 18.0.0
71+
babel-loader 6.2.9
72+
babel-plugin-styled-components 0.0.3-0
73+
babel-plugin-transform-runtime 6.22.0
74+
babel-preset-es2015 6.22.0
75+
babel-preset-react 6.22.0
76+
babel-preset-stage-0 6.22.0
77+
babel-runtime 6.22.0
78+
eslint 3.14.0
79+
eslint-config-airbnb 14.0.0
80+
eslint-plugin-babel 4.0.1
81+
eslint-plugin-import 2.2.0
82+
eslint-plugin-jsx-a11y 3.0.2
83+
eslint-plugin-react 6.8.0
84+
html-webpack-plugin 2.24.1
85+
jest 18.0.0
86+
react-hot-loader 3.0.0-beta.6
87+
react-test-renderer 15.4.1
88+
webpack 2.2.0
89+
webpack-dev-server 2.2.0-rc.0
8290
```
8391

8492
## Tools

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-react-starter",
3-
"version": "1.1.0",
3+
"version": "1.1.2",
44
"description": "Get started with ES2015, React and Redux. Including Webpack, ESLint, react-router, fetch ...",
55
"scripts": {
66
"start": "webpack-dev-server --open --config webpack/webpack.config.dev.js",
@@ -26,19 +26,19 @@
2626
},
2727
"homepage": "https://github.com/didierfranc/redux-react-starter#readme",
2828
"devDependencies": {
29-
"babel-core": "^6.20.0",
29+
"babel-core": "^6.22.1",
3030
"babel-eslint": "^7.0.0",
3131
"babel-jest": "^18.0.0",
3232
"babel-loader": "^6.2.9",
3333
"babel-plugin-styled-components": "0.0.3-0",
34-
"babel-plugin-transform-runtime": "^6.15.0",
35-
"babel-preset-es2015": "^6.18.0",
36-
"babel-preset-react": "^6.16.0",
37-
"babel-preset-stage-0": "^6.16.0",
38-
"babel-runtime": "^6.20.0",
39-
"eslint": "^3.12.0",
34+
"babel-plugin-transform-runtime": "^6.22.0",
35+
"babel-preset-es2015": "^6.22.0",
36+
"babel-preset-react": "^6.22.0",
37+
"babel-preset-stage-0": "^6.22.0",
38+
"babel-runtime": "^6.22.0",
39+
"eslint": "^3.14.0",
4040
"eslint-config-airbnb": "^14.0.0",
41-
"eslint-plugin-babel": "^4.0.0",
41+
"eslint-plugin-babel": "^4.0.1",
4242
"eslint-plugin-import": "^2.2.0",
4343
"eslint-plugin-jsx-a11y": "^3.0.2",
4444
"eslint-plugin-react": "^6.8.0",
@@ -57,7 +57,7 @@
5757
"react-redux": "^5.0.1",
5858
"react-router": "^4.0.0-alpha.6",
5959
"redux": "^3.5.2",
60-
"redux-thunk": "^2.1.0",
61-
"styled-components": "^1.3.0"
60+
"redux-thunk": "^2.2.0",
61+
"styled-components": "^1.3.1"
6262
}
6363
}

src/reducers/user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { getToken, storeToken, clearToken } from '../helpers'
2+
import { actionTypes as types } from '../constants'
23

34
const initialState = {
45
token: getToken(),
56
}
67

78
const auth = (state = initialState, action) => {
89
switch (action.type) {
9-
case 'SIGNUP_SUCCESS':
10-
case 'LOGIN_SUCCESS':
10+
case types.SIGNUP_SUCCESS:
11+
case types.LOGIN_SUCCESS:
1112
storeToken(action.data.token)
1213
return action.data
13-
case 'LOGIN_FAILURE':
14+
case types.LOGIN_FAILURE:
1415
clearToken()
1516
return {}
1617
default:

0 commit comments

Comments
 (0)