Skip to content

Commit 6e045b0

Browse files
committed
release 0.0.8-beta source code
1 parent ef3d40d commit 6e045b0

File tree

2,006 files changed

+34503
-9831
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,006 files changed

+34503
-9831
lines changed

CHANGELOG.md

100755100644
Lines changed: 20 additions & 0 deletions

LICENSE

100755100644
File mode changed.

README.md

100755100644
File mode changed.

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.8-beta

core/.mocharc.json

100755100644
File mode changed.

core/ClientBuilder.ts

100755100644
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ export class ClientBuilder<T> {
141141
}
142142

143143
switch (sdkType) {
144-
case 'BasicCredentials':
144+
case 'BasicCredentials': {
145145
return new BasicCredentials();
146-
case 'GlobalCredentials':
146+
}
147+
case 'GlobalCredentials': {
147148
return new GlobalCredentials();
148-
default:
149+
}
150+
default: {
149151
if (this.credentials[sdkType]) {
150152
return this.credentials[sdkType];
151153
}
@@ -154,6 +156,7 @@ export class ClientBuilder<T> {
154156
const credentialTYPE = require(definedCredPath);
155157
this.credentials[sdkType] = new credentialTYPE();
156158
return this.credentials[sdkType];
159+
}
157160
}
158161
}
159162

core/HcClient.ts

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class HcClient {
139139
.withQueryParams(options.queryParams)
140140
.build();
141141

142-
httpRequest = this.credential!.processAuthRequest(httpRequest);
142+
httpRequest = await this.credential!.processAuthRequest(httpRequest);
143143
if (options['responseHeaders']) {
144144
httpRequest['responseHeaders'] = options['responseHeaders'];
145145
}
@@ -165,4 +165,4 @@ export class HcClient {
165165
response.httpStatusCode = result.statusCode;
166166
return response;
167167
}
168-
}
168+
}

core/SdkResponse.ts

100755100644
File mode changed.

core/SdkStreamResponse.ts

100755100644
File mode changed.

core/UserOptions.ts

100755100644
File mode changed.

0 commit comments

Comments
 (0)