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 3636 "import" : " ./dist/operator/*.mjs"
3737 }
3838 },
39+ "files" : [
40+ " dist" ,
41+ " src"
42+ ],
3943 "module" : " src/index.ts" ,
4044 "scripts" : {
4145 "build" : " tsdown" ,
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 async 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