File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 * Copyright (c) 2020 Certinia Inc. All rights reserved.
33 */
44
5+ import { AuthHelper } from '@apexdevtools/sfdx-auth-helper' ;
6+ import { LogService } from '@salesforce/apex-node' ;
7+
58export class GetLogFile {
69 static async apply ( wsPath : string , logDir : string , logId : string ) : Promise < void > {
7- // eslint-disable-next-line @typescript-eslint/naming-convention
8- const { AuthHelper } = await import ( '@apexdevtools/sfdx-auth-helper' ) ;
910 const ah = await AuthHelper . instance ( wsPath ) ;
1011 const connection = await ah . connect ( await ah . getDefaultUsername ( ) ) ;
1112
1213 if ( connection ) {
13- // eslint-disable-next-line @typescript-eslint/naming-convention
14- const { LogService } = await import ( '@salesforce/apex-node' ) ;
1514 await new LogService ( connection ) . getLogs ( { logId : logId , outputDir : logDir } ) ;
1615 }
1716 return new Promise ( ( resolve ) => resolve ( ) ) ;
Original file line number Diff line number Diff line change 11/*
22 * Copyright (c) 2020 Certinia Inc. All rights reserved.
33 */
4- import { type LogRecord } from '@salesforce/apex-node' ;
4+ import { AuthHelper } from '@apexdevtools/sfdx-auth-helper' ;
5+ import { LogService , type LogRecord } from '@salesforce/apex-node' ;
56
67export class GetLogFiles {
78 static async apply ( wsPath : string ) : Promise < LogRecord [ ] > {
8- // eslint-disable-next-line @typescript-eslint/naming-convention
9- const { AuthHelper } = await import ( '@apexdevtools/sfdx-auth-helper' ) ;
109 const ah = await AuthHelper . instance ( wsPath ) ;
1110 const connection = await ah . connect ( await ah . getDefaultUsername ( ) ) ;
1211
1312 if ( connection ) {
14- // eslint-disable-next-line @typescript-eslint/naming-convention
15- const { LogService } = await import ( '@salesforce/apex-node' ) ;
1613 return new LogService ( connection ) . getLogRecords ( ) ;
1714 }
1815 return [ ] ;
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ export default [
2020 input : './lana/src/Main.ts' ,
2121 output : {
2222 format : 'cjs' ,
23- dir : './lana/out' ,
24- chunkFileNames : '[name].js' ,
23+ file : './lana/out/Main.js' ,
2524 sourcemap : false ,
2625 } ,
2726 external : [ 'vscode' ] ,
You can’t perform that action at this time.
0 commit comments