File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 3737 }
3838 },
3939 "module" : " src/index.ts" ,
40+ "files" : [
41+ " dist" ,
42+ " src"
43+ ],
4044 "scripts" : {
4145 "build" : " tsdown" ,
4246 "lint" : " eslint ." ,
Original file line number Diff line number Diff line change @@ -3,7 +3,17 @@ import { Request } from "./request";
33
44export class Client {
55 public request : Request ;
6- public constructor ( public readonly config : ClientConfig ) {
6+ public constructor ( private config : ClientConfig ) {
77 this . request = new Request ( config ) ;
88 }
9+
10+ public updateCredentials ( accessKeyID : string , accessKeySecret : string , stsToken ?: string ) {
11+ this . config = {
12+ ...this . config ,
13+ accessKeyID,
14+ accessKeySecret,
15+ stsToken,
16+ } ;
17+ this . request = new Request ( this . config ) ;
18+ }
919}
You can’t perform that action at this time.
0 commit comments