Skip to content

Commit daf4b20

Browse files
committed
fix build errors
1 parent a5bd34b commit daf4b20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/wrapper/CxWrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export class CxWrapper {
1818
linux = 'linux';
1919

2020

21-
async constructor(cxScanConfig: CxConfig, logFilePath?: string) {
21+
constructor(cxScanConfig: CxConfig, logFilePath?: string) {
2222
getLoggerWithFilePath(logFilePath)
23-
await this.downloadIfNotInstalledCLI(process.platform);
23+
this.downloadIfNotInstalledCLI(process.platform);
2424
if (cxScanConfig.apiKey) {
2525
this.config.apiKey = cxScanConfig.apiKey;
2626
} else if (cxScanConfig.clientId && cxScanConfig.clientSecret) {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"module": "commonjs",
77
"moduleResolution": "node",
88
"noEmitOnError": true,
9-
"target": "es5",
9+
"target": "ES2015",
1010
"declaration": true,
1111
"removeComments": false,
1212
"noImplicitAny": true,

0 commit comments

Comments
 (0)