@@ -43,8 +43,8 @@ export class ApiClient {
43
43
methodParams : any = { } ,
44
44
clientTransactionId : string = ApiClient . generateClientTransactionId ( ) ,
45
45
language : string = this . language ,
46
- cacheOption ?: " no-store" | " reload" | " no-cache" | " force-cache" | " only-if-cached" | " default" ,
47
- nextjsOptions ?: object
46
+ cacheOption ?: ' no-store' | ' reload' | ' no-cache' | ' force-cache' | ' only-if-cached' | ' default' ,
47
+ nextjsOptions ?: object ,
48
48
) : Promise < any > {
49
49
if ( 'clTRID' ! in methodParams && clientTransactionId !== null ) {
50
50
methodParams . clTRID = clientTransactionId ;
@@ -66,11 +66,11 @@ export class ApiClient {
66
66
'User-Agent' : `DomRobot/${ ApiClient . CLIENT_VERSION } (Node ${ process . version } )` ,
67
67
} ) ,
68
68
body : requestBody ,
69
- cache : cacheOption ?? " default" ,
69
+ cache : cacheOption ?? ' default' ,
70
70
} ;
71
71
72
72
if ( nextjsOptions !== undefined ) {
73
- fetchOption = { ...fetchOption , ...nextjsOptions } ;
73
+ fetchOption = { ...fetchOption , ...nextjsOptions } ;
74
74
}
75
75
76
76
const response = await fetch ( this . apiUrl , fetchOption ) ;
@@ -79,7 +79,7 @@ export class ApiClient {
79
79
this . cookie = response . headers . get ( 'set-cookie' ) ;
80
80
}
81
81
82
- const data = await response . json ( )
82
+ const data = await response . json ( ) ;
83
83
if ( this . debugMode ) {
84
84
console . info ( `Request (${ apiMethod } ): ${ requestBody } ` ) ;
85
85
console . info ( `Response (${ apiMethod } ): ${ JSON . stringify ( data ) } ` ) ;
0 commit comments