File tree 5 files changed +6
-10
lines changed
5 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
-
2
-
3
1
## [ 1.0.9-3] ( https://github.com/wh131462/leetcode-practice/compare/cli-v1.0.9-2...cli-v1.0.9-3 ) (2024-03-14)
4
2
5
-
6
3
### Bug Fixes
7
4
8
- * fix check info log ([ #52 ] ( https://github.com/wh131462/leetcode-practice/issues/52 ) ) ([ 6b710a1] ( https://github.com/wh131462/leetcode-practice/commit/6b710a1a2ff088d9806d33153bf811e5a5e19306 ) )
5
+ - fix check info log ([ #52 ] ( https://github.com/wh131462/leetcode-practice/issues/52 ) ) ([ 6b710a1] ( https://github.com/wh131462/leetcode-practice/commit/6b710a1a2ff088d9806d33153bf811e5a5e19306 ) )
9
6
10
7
## [ 1.0.9-2] ( https://github.com/wh131462/leetcode-practice/compare/cli-v1.0.9-1...cli-v1.0.9-2 ) (2024-03-14)
11
8
Original file line number Diff line number Diff line change 1
1
import { Loading } from '#common/utils/loading/loading.js'
2
+ import ora from 'ora'
2
3
3
4
/**
4
5
* 基础请求-直接返回JSON格式的值
@@ -8,8 +9,7 @@ import { Loading } from '#common/utils/loading/loading.js'
8
9
* @private
9
10
*/
10
11
export async function fetch_ ( url , options ) {
11
- const loader = new Loading ( options . loadText ?? 'loading...' )
12
- loader . start ( )
12
+ const loader = ora ( options . loadText ?? 'loading...' ) . start ( )
13
13
const resp = await fetch ( url , options ) . then ( ( res ) => res . json ( ) )
14
14
loader . stop ( )
15
15
return resp
Original file line number Diff line number Diff line change 1
1
import chalk from 'chalk'
2
-
3
2
export class Loading {
4
3
text = 'loading...'
5
4
constructor ( text ) {
Original file line number Diff line number Diff line change 52
52
"console-table-printer" : " ^2.12.0" ,
53
53
"glob" : " ^10.3.10" ,
54
54
"inquirer" : " ^9.2.14" ,
55
+ "ora" : " ^8.0.1" ,
55
56
"realm" : " ^12.6.2"
56
57
},
57
58
"devDependencies" : {
Original file line number Diff line number Diff line change 1
- import { Loading } from '#common/utils/loading/loading.js '
1
+ import ora from 'ora '
2
2
3
- const loader = new Loading ( '旋转跳跃~我闭着眼~' )
4
- loader . start ( )
3
+ const loading = ora ( 'LP!给我加载!!!!' ) . start ( )
You can’t perform that action at this time.
0 commit comments