Socket
Socket
Sign inDemoInstall

oci-common

Package Overview
Dependencies
Maintainers
4
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oci-common - npm Package Compare versions

Comparing version 2.83.0 to 2.84.0

2

lib/constants.d.ts

@@ -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 {

4

lib/constants.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc