File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const chalk = require('chalk')
2
2
const path = require ( 'path' )
3
3
const { hostname } = require ( 'os' )
4
4
const { URL } = require ( 'whatwg-url' )
5
+ const debug = require ( 'debug' ) ( 'nuxt:axios' )
5
6
6
7
module . exports = function nuxtAxios ( moduleOptions ) {
7
8
const port = process . env . PORT || process . env . npm_package_config_nuxt_port || 3000
@@ -50,7 +51,7 @@ module.exports = function nuxtAxios (moduleOptions) {
50
51
} )
51
52
52
53
/* eslint-disable no-console */
53
- console . log ( `[AXIOS] Base URL : ${ chalk . green ( options . baseURL ) } , Browser: ${ chalk . green ( options . browserBaseURL ) } `)
54
+ debug ( `BaseURL : ${ chalk . green ( options . baseURL ) } ( Browser: ${ chalk . green ( options . browserBaseURL ) } ) `)
54
55
}
55
56
56
57
module . exports . meta = require ( '../package.json' )
Original file line number Diff line number Diff line change 30
30
"dependencies" : {
31
31
"axios" : " ^0.16.2" ,
32
32
"chalk" : " ^2.1.0" ,
33
+ "debug" : " ^3.0.1" ,
33
34
"nuxt" : " ^1.0.0-rc8" ,
34
35
"whatwg-url" : " ^6.1.0"
35
36
},
You can’t perform that action at this time.
0 commit comments