File tree 9 files changed +11
-12
lines changed 9 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = {
5
5
diagnostics : {
6
6
// warnOnly: true,
7
7
} ,
8
- tsConfig : {
8
+ tsconfig : {
9
9
types : [
10
10
"node" ,
11
11
"jest" ,
Original file line number Diff line number Diff line change 49
49
"@ionic/prettier-config" : " ^4.0.0" ,
50
50
"@semantic-release/changelog" : " ^6.0.3" ,
51
51
"@semantic-release/git" : " ^10.0.1" ,
52
- "@types/babel__traverse" : " 7.17.1" ,
53
52
"@types/debug" : " ^4.1.10" ,
54
53
"@types/elementtree" : " ^0.1.3" ,
55
54
"@types/ini" : " ^1.3.32" ,
64
63
"prettier" : " ^3.0.3" ,
65
64
"semantic-release" : " ^19.0.5" ,
66
65
"ts-jest" : " ^26.3.0" ,
67
- "typescript" : " ~4.1.2 "
66
+ "typescript" : " ~4.9.5 "
68
67
},
69
68
"prettier" : " @ionic/prettier-config" ,
70
69
"eslintConfig" : {
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ export async function list(args: readonly string[]): Promise<Targets> {
17
17
( async ( ) => {
18
18
try {
19
19
return await getDeviceTargets ( sdk ) ;
20
- } catch ( e ) {
20
+ } catch ( e : any ) {
21
21
errors . push ( e ) ;
22
22
return [ ] ;
23
23
}
24
24
} ) ( ) ,
25
25
( async ( ) => {
26
26
try {
27
27
return await getVirtualTargets ( sdk ) ;
28
- } catch ( e ) {
28
+ } catch ( e : any ) {
29
29
errors . push ( e ) ;
30
30
return [ ] ;
31
31
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export async function getSDKPackage(location: string): Promise<SDKPackage> {
128
128
name,
129
129
apiLevel,
130
130
} ;
131
- } catch ( e ) {
131
+ } catch ( e : any ) {
132
132
debug ( 'Encountered error with %s: %O' , packageXmlPath , e ) ;
133
133
134
134
if ( e . code === 'ENOENT' ) {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export async function run(): Promise<void> {
45
45
46
46
throw new CLIException ( `Unsupported platform: "${ platform } "` , ERR_BAD_INPUT ) ;
47
47
}
48
- } catch ( e ) {
48
+ } catch ( e : any ) {
49
49
debug ( 'Caught fatal error: %O' , e ) ;
50
50
process . exitCode = e instanceof Exception ? e . exitCode : ExitCode . GENERAL ;
51
51
process . stdout . write ( serializeError ( e ) ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export class GDBProtocolReader extends ProtocolReader {
53
53
this . onData ( ) ;
54
54
}
55
55
}
56
- } catch ( err ) {
56
+ } catch ( err : any ) {
57
57
this . callback ( null , err ) ;
58
58
}
59
59
}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export abstract class ProtocolReader {
67
67
this . onData ( ) ;
68
68
}
69
69
}
70
- } catch ( err ) {
70
+ } catch ( err : any ) {
71
71
this . callback ( null , err ) ;
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export async function list(args: readonly string[]): Promise<Targets> {
19
19
try {
20
20
const devices = await getConnectedDevices ( ) ;
21
21
return devices . map ( deviceToTarget ) ;
22
- } catch ( e ) {
22
+ } catch ( e : any ) {
23
23
errors . push ( e ) ;
24
24
return [ ] ;
25
25
}
@@ -28,7 +28,7 @@ export async function list(args: readonly string[]): Promise<Targets> {
28
28
try {
29
29
const simulators = await getSimulators ( ) ;
30
30
return simulators . map ( simulatorToTarget ) ;
31
- } catch ( e ) {
31
+ } catch ( e : any ) {
32
32
errors . push ( e ) ;
33
33
return [ ] ;
34
34
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export async function getSimulators(): Promise<SimulatorResult[]> {
62
62
)
63
63
. reduce ( ( prev , next ) => prev . concat ( next ) ) // flatten
64
64
. sort ( ( a , b ) => ( a . name < b . name ? - 1 : 1 ) ) ;
65
- } catch ( err ) {
65
+ } catch ( err : any ) {
66
66
throw new Exception ( `Unable to retrieve simulator list: ${ err . message } ` ) ;
67
67
}
68
68
}
You can’t perform that action at this time.
0 commit comments