Upgrade dependencies (#450)

* Upgrade dependencies.

* Fix test

* Improve name

* Update doc

* Upgrade deps

* Fix lint

* Fix lint

Co-authored-by: Sung Won Cho <sung@monomax.sh>
This commit is contained in:
Monomax Bot 2020-04-25 09:38:39 +08:00 committed by GitHub
commit 96d3c50780
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 4415 additions and 5342 deletions

View file

@ -23,7 +23,7 @@ const initialState: AuthState = {
sessionKeyExpiry: 0
};
export default function(
export default function (
state = initialState,
action: AuthActionType
): AuthState {

View file

@ -31,7 +31,7 @@ const initialState = {
error: null
};
export default function(
export default function (
state = initialState,
action: BooksActionType
): BooksState {

View file

@ -31,7 +31,7 @@ const initialState: ComposerState = {
bookLabel: ''
};
export default function(
export default function (
state = initialState,
action: ComposerActionType
): ComposerState {

View file

@ -23,7 +23,7 @@ const initialState: LocationState = {
state: {}
};
export default function(
export default function (
state = initialState,
action: LocationActionType
): LocationState {

View file

@ -24,7 +24,7 @@ const initialState: SettingsState = {
webUrl: config.defaultWebUrl
};
export default function(
export default function (
state = initialState,
action: SettingsActionType
): SettingsState {

View file

@ -39,9 +39,7 @@ function parseJSON(response) {
}
function request(url, options) {
return fetch(url, options)
.then(checkStatus)
.then(parseJSON);
return fetch(url, options).then(checkStatus).then(parseJSON);
}
export function post(url, data, options = {}) {