File tree Expand file tree Collapse file tree 4 files changed +1260
-1124
lines changed Expand file tree Collapse file tree 4 files changed +1260
-1124
lines changed Original file line number Diff line number Diff line change 1
1
const chalk = require ( 'chalk' )
2
2
const path = require ( 'path' )
3
- const debug = require ( 'debug' ) ( 'nuxt:axios' )
3
+ const consola = require ( 'consola' )
4
+
5
+ const logger = consola . withScope ( 'nuxt:axios' )
4
6
5
7
module . exports = function nuxtAxios ( _moduleOptions ) {
6
8
// Combine options
@@ -94,12 +96,8 @@ module.exports = function nuxtAxios (_moduleOptions) {
94
96
// Set _AXIOS_BASE_URL_ for dynamic SSR baseURL
95
97
process . env . _AXIOS_BASE_URL_ = options . baseURL
96
98
97
- /* eslint-disable no-console */
98
- debug (
99
- `BaseURL: ${ chalk . green ( options . baseURL ) } (Browser: ${ chalk . green (
100
- options . browserBaseURL
101
- ) } )`
102
- )
99
+ logger . info ( `BaseURL: ${ chalk . green ( options . baseURL ) } ` )
100
+ logger . info ( `BaseURL (Browser): ${ chalk . green ( options . browserBaseURL ) } ` )
103
101
}
104
102
105
103
module . exports . meta = require ( '../package.json' )
Original file line number Diff line number Diff line change 34
34
]
35
35
},
36
36
"dependencies" : {
37
- "@nuxtjs/proxy" : " ^1.1.4 " ,
37
+ "@nuxtjs/proxy" : " ^1.2.1 " ,
38
38
"axios" : " ^0.18.0" ,
39
39
"axios-retry" : " ^3.0.2" ,
40
40
"chalk" : " ^2.3.2" ,
41
- "debug " : " ^3.1 .0"
41
+ "consola " : " ^1.0 .0"
42
42
},
43
43
"devDependencies" : {
44
44
"codecov" : " latest" ,
45
45
"eslint" : " ^4.17.0" ,
46
46
"eslint-config-standard" : " 11.0.0" ,
47
- "eslint-plugin-import" : " latest " ,
48
- "eslint-plugin-jest" : " latest " ,
47
+ "eslint-plugin-import" : " ^2.10.0 " ,
48
+ "eslint-plugin-jest" : " ^21.15.0 " ,
49
49
"eslint-plugin-node" : " 6.0.1" ,
50
- "eslint-plugin-promise" : " latest " ,
50
+ "eslint-plugin-promise" : " ^3.7.0 " ,
51
51
"eslint-plugin-standard" : " latest" ,
52
- "eslint-plugin-vue" : " latest " ,
53
- "jest" : " latest " ,
52
+ "eslint-plugin-vue" : " ^4.4.0 " ,
53
+ "jest" : " ^22.4.3 " ,
54
54
"jsdom" : " ^11.6.2" ,
55
- "nuxt" : " ^1.3.0 " ,
55
+ "nuxt-edge " : " ^2.0.0-25375287.923164e " ,
56
56
"standard-version" : " latest"
57
57
}
58
58
}
Original file line number Diff line number Diff line change 1
- const { Nuxt, Builder } = require ( 'nuxt' )
1
+ const { Nuxt, Builder } = require ( 'nuxt-edge ' )
2
2
const axios = require ( 'axios' )
3
3
const config = require ( './fixture/nuxt.config' )
4
4
You can’t perform that action at this time.
0 commit comments