oci-common
Advanced tools
Comparing version 2.83.0 to 2.84.0
@@ -7,2 +7,4 @@ /** | ||
APPLICATION_JSON: string; | ||
CONTENT_TYPE_HEADER: string; | ||
SERVER_SIDE_EVENT_TEXT_STREAM: string; | ||
}; | ||
@@ -9,0 +11,0 @@ export declare enum BooleanString { |
@@ -9,3 +9,5 @@ "use strict"; | ||
const Constants = { | ||
APPLICATION_JSON: "application/json" | ||
APPLICATION_JSON: "application/json", | ||
CONTENT_TYPE_HEADER: "content-type", | ||
SERVER_SIDE_EVENT_TEXT_STREAM: "text/event-stream" | ||
}; | ||
@@ -12,0 +14,0 @@ var BooleanString; |
@@ -128,8 +128,3 @@ "use strict"; | ||
const response = yield httpClient.send(request, excludeBody, targetService, operationName, timestamp.toISOString(), endpoint, apiReferenceLink); | ||
if (response.headers && | ||
response.headers.get(CONTENT_TYPE_HEADER) === SERVER_SIDE_EVENT_TEXT_STREAM) { | ||
shouldBeRetried = false; | ||
lastKnownError = new Error("streaming mode is currently not supported. Please use non-streaming mode for this API instead"); | ||
} | ||
else if (response.status && response.status >= 200 && response.status <= 299) { | ||
if (response.status && response.status >= 200 && response.status <= 299) { | ||
const currentTime = new Date().getTime(); | ||
@@ -136,0 +131,0 @@ const timeElapsed = currentTime - timestamp.getTime(); |
{ | ||
"name": "oci-common", | ||
"version": "2.83.0", | ||
"version": "2.84.0", | ||
"description": "OCI Common module for NodeJS", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
511912
6962