File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1616 "@typescript-eslint/await-thenable" : " error" ,
1717 "@typescript-eslint/ban-ts-comment" : " error" ,
1818 "@typescript-eslint/no-unnecessary-type-assertion" : " error" ,
19- "@typescript-eslint/unbound-method" : " error"
19+ "@typescript-eslint/unbound-method" : " error" ,
20+ "node/prefer-global/buffer" : " off"
2021 }
2122}
Original file line number Diff line number Diff line change 1+ import { Buffer } from 'buffer' ;
12import * as aws from 'aws-sdk' ;
23
34import { logger } from '../../common/logger' ;
@@ -47,7 +48,7 @@ function getEcrCredentials(region: string): Promise<string> {
4748 ) ;
4849 }
4950
50- const buff = new Buffer ( authorizationTokenBase64 , 'base64' ) ;
51+ const buff = Buffer . from ( authorizationTokenBase64 , 'base64' ) ;
5152 const userColonPassword = buff . toString ( 'utf-8' ) ;
5253 return resolve ( userColonPassword ) ;
5354 } ) ;
You can’t perform that action at this time.
0 commit comments