oci-announcementsservice
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -122,4 +122,6 @@ "use strict"; | ||
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getAnnouncementRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_1.composeResponse({ | ||
@@ -140,5 +142,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -175,4 +176,6 @@ }); | ||
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, getAnnouncementUserStatusRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_1.composeResponse({ | ||
@@ -193,5 +196,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -237,4 +239,6 @@ }); | ||
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, listAnnouncementsRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_1.composeResponse({ | ||
@@ -260,5 +264,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -297,4 +300,6 @@ }); | ||
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : {}, updateAnnouncementUserStatusRequest.retryConfiguration); | ||
const response = yield retrier.makeServiceCall(() => this._httpClient.send(request)); | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (this.logger) | ||
retrier.logger = this.logger; | ||
try { | ||
const response = yield retrier.makeServiceCall(this._httpClient, request); | ||
const sdkResponse = oci_common_1.composeResponse({ | ||
@@ -317,5 +322,4 @@ responseObject: {}, | ||
} | ||
else { | ||
const errBody = yield common.handleErrorBody(response); | ||
throw common.handleErrorResponse(response, errBody); | ||
catch (err) { | ||
throw err; | ||
} | ||
@@ -322,0 +326,0 @@ }); |
{ | ||
"name": "oci-announcementsservice", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "OCI NodeJS client for Announcement Service", | ||
@@ -18,4 +18,4 @@ "repository": { | ||
"dependencies": { | ||
"oci-common": "1.5.1", | ||
"oci-workrequests": "1.5.1" | ||
"oci-common": "1.5.2", | ||
"oci-workrequests": "1.5.2" | ||
}, | ||
@@ -22,0 +22,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
1472
168623
+ Addedoci-common@1.5.2(transitive)
+ Addedoci-workrequests@1.5.2(transitive)
- Removedoci-common@1.5.1(transitive)
- Removedoci-workrequests@1.5.1(transitive)
Updatedoci-common@1.5.2
Updatedoci-workrequests@1.5.2