Skip to content

Commit e7d8a67

Browse files
TimeRaiderBlackheart340
authored andcommitted
chore: update dependencies
1 parent 1c4e96f commit e7d8a67

File tree

4 files changed

+1431
-819
lines changed

4 files changed

+1431
-819
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: node_js
22
node_js:
3+
- "8"
34
- "7"
45
- "6"
5-
- "5"
6-
- "4"
76
cache:
87
directories:
98
- node_modules

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,34 @@
4242
],
4343
"homepage": "https://github.com/auru/unity-api#readme",
4444
"engines": {
45-
"node": ">=4"
45+
"node": ">=6"
4646
},
4747
"dependencies": {
4848
"isomorphic-fetch": "^2.2.1",
4949
"unity-utils": "^1.0.1",
5050
"url": "^0.11.0"
5151
},
5252
"devDependencies": {
53-
"ava": "^0.20.0",
54-
"babel-cli": "^6.16.0",
55-
"babel-core": "^6.22.0",
56-
"babel-eslint": "^7.0.0",
57-
"babel-polyfill": "^6.23.0",
58-
"babel-preset-es2015": "^6.16.0",
59-
"babel-preset-stage-2": "^6.16.0",
60-
"babel-register": "^6.16.3",
61-
"commitizen": "^2.8.6",
62-
"conventional-changelog-cli": "^1.2.0",
63-
"coveralls": "^2.11.14",
64-
"cz-conventional-changelog": "^1.2.0",
65-
"eslint": "^3.14.0",
66-
"eslint-plugin-ava": "^4.0.0",
67-
"fetch-mock": "^5.5.0",
68-
"husky": "^0.13.0",
69-
"nyc": "^11.0.2",
70-
"rimraf": "^2.5.4",
71-
"sinon": "^3.0.0",
72-
"validate-commit-msg": "^2.10.1"
53+
"ava": "^0.22.0",
54+
"babel-cli": "^6.26.0",
55+
"babel-core": "^6.26.0",
56+
"babel-eslint": "^8.0.1",
57+
"babel-polyfill": "^6.26.0",
58+
"babel-preset-es2015": "^6.24.1",
59+
"babel-preset-stage-2": "^6.24.1",
60+
"babel-register": "^6.26.0",
61+
"commitizen": "^2.9.6",
62+
"conventional-changelog-cli": "^1.3.4",
63+
"coveralls": "^3.0.0",
64+
"cz-conventional-changelog": "^2.0.0",
65+
"eslint": "^4.9.0",
66+
"eslint-plugin-ava": "^4.2.2",
67+
"fetch-mock": "^5.13.1",
68+
"husky": "^0.14.3",
69+
"nyc": "^11.2.1",
70+
"rimraf": "^2.6.2",
71+
"sinon": "^4.0.1",
72+
"validate-commit-msg": "^2.14.0"
7373
},
7474
"ava": {
7575
"files": [

src/callAPIMethod.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ export default function callAPI(
4242

4343
return fetch(url, accumulatedFetchOptions)
4444
.then( response => response[type || method]()
45-
.catch( () => {
46-
if (!response.ok) throw new APIError(response.status, response.statusText);
45+
.catch( () => {
46+
if (!response.ok) throw new APIError(response.status, response.statusText);
4747

48-
return response.body || null;
49-
})
50-
.then( result => {
51-
if (!response.ok) throw new APIError(response.status, response.statusText, result);
48+
return response.body || null;
49+
})
50+
.then( result => {
51+
if (!response.ok) throw new APIError(response.status, response.statusText, result);
5252

53-
return result;
54-
}))
53+
return result;
54+
}))
5555
.catch( error => error);
5656
}

0 commit comments

Comments
 (0)