Skip to content

Commit

Permalink
feat(api): install 'axios'
Browse files Browse the repository at this point in the history
create 'api' file for making AJAX requests
  • Loading branch information
aneurysmjs committed Jan 2, 2018
1 parent 3de47cb commit 1b2bae6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"yargs": "8.0.2"
},
"dependencies": {
"axios": "0.17.1",
"bootstrap": "4.0.0-alpha.6",
"firebase": "4.3.1",
"flat-ui": "2.1.1",
Expand Down
6 changes: 6 additions & 0 deletions src/api/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* @module api/api
*/
import axios from 'axios';

export default axios;
15 changes: 14 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,13 @@ axios@^0.16.2:
follow-redirects "^1.2.3"
is-buffer "^1.1.5"

axios@^0.17.1:
version "0.17.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.1.tgz#2d8e3e5d0bdbd7327f91bc814f5c57660f81824d"
dependencies:
follow-redirects "^1.2.5"
is-buffer "^1.1.5"

babel-code-frame@^6.11.0, babel-code-frame@^6.22.0, babel-code-frame@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
Expand Down Expand Up @@ -3019,6 +3026,12 @@ follow-redirects@^1.2.3:
dependencies:
debug "^2.4.5"

follow-redirects@^1.2.5:
version "1.2.6"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.6.tgz#4dcdc7e4ab3dd6765a97ff89c3b4c258117c79bf"
dependencies:
debug "^3.1.0"

for-each@~0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.2.tgz#2c40450b9348e97f281322593ba96704b9abd4d4"
Expand Down Expand Up @@ -3873,7 +3886,7 @@ ignore@^3.3.3:
version "3.3.5"
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.5.tgz#c4e715455f6073a8d7e5dae72d2fc9d71663dba6"

import-glob-loader@^1.1.0:
[email protected]:
version "1.1.0"
resolved "https://registry.yarnpkg.com/import-glob-loader/-/import-glob-loader-1.1.0.tgz#98d84c0f661c8ba9f821d9ddb7c6b6dc8e97eca2"
dependencies:
Expand Down

0 comments on commit 1b2bae6

Please sign in to comment.