Socket
Socket
Sign inDemoInstall

google-gax

Package Overview
Dependencies
Maintainers
4
Versions
362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-gax - npm Package Compare versions

Comparing version 4.3.8 to 4.3.9

1

build/src/streamingCalls/streaming.d.ts

@@ -68,2 +68,3 @@ /**

constructor(type: StreamType, callback: APICallback, rest?: boolean, gaxServerStreamingRetries?: boolean);
private shouldRetryRequest;
cancel(): void;

@@ -70,0 +71,0 @@ retry(stream: CancellableStream, retry: RetryOptions): CancellableStream;

23

build/src/streamingCalls/streaming.js

@@ -62,2 +62,10 @@ "use strict";

}
shouldRetryRequest(error, retry) {
const e = googleError_1.GoogleError.parseGRPCStatusDetails(error);
let shouldRetry = this.defaultShouldRetry(e, retry);
if (retry.shouldRetryFn) {
shouldRetry = retry.shouldRetryFn(e);
}
return shouldRetry;
}
cancel() {

@@ -142,8 +150,3 @@ if (this.stream) {

this.retries++;
const e = googleError_1.GoogleError.parseGRPCStatusDetails(error);
let shouldRetry = this.defaultShouldRetry(e, retry);
if (retry.shouldRetryFn) {
shouldRetry = retry.shouldRetryFn(e);
}
if (shouldRetry) {
if (this.shouldRetryRequest(error, retry)) {
const toSleep = Math.random() * delay;

@@ -161,2 +164,3 @@ setTimeout(() => {

else {
const e = googleError_1.GoogleError.parseGRPCStatusDetails(error);
e.note =

@@ -277,8 +281,3 @@ 'Exception occurred in retry method that was ' +

if ((maxRetries && maxRetries > 0) || (timeout && timeout > 0)) {
const e = googleError_1.GoogleError.parseGRPCStatusDetails(error);
let shouldRetry = this.defaultShouldRetry(e, retry);
if (retry.shouldRetryFn) {
shouldRetry = retry.shouldRetryFn(e);
}
if (shouldRetry) {
if (this.shouldRetryRequest(error, retry)) {
if (maxRetries && timeout) {

@@ -285,0 +284,0 @@ const newError = new googleError_1.GoogleError('Cannot set both totalTimeoutMillis and maxRetries ' +

{
"name": "google-gax",
"version": "4.3.8",
"version": "4.3.9",
"description": "Google API Extensions",

@@ -19,3 +19,3 @@ "main": "build/src/index.js",

"google-auth-library": "^9.3.0",
"node-fetch": "^2.6.1",
"node-fetch": "^2.7.0",
"object-hash": "^3.0.0",

@@ -34,3 +34,3 @@ "proto3-json-serializer": "^2.0.2",

"@types/node": "^20.5.0",
"@types/node-fetch": "^2.5.4",
"@types/node-fetch": "^2.6.11",
"@types/object-hash": "^3.0.0",

@@ -44,8 +44,8 @@ "@types/proxyquire": "^1.3.28",

"execa": "^5.0.0",
"glob": "10.4.0",
"glob": "10.4.5",
"google-proto-files": "^4.2.0",
"gts": "^5.0.0",
"jackspeak": "3.4.0",
"jackspeak": "3.4.3",
"linkinator": "^4.0.0",
"lru-cache": "10.3.0",
"lru-cache": "10.4.3",
"long": "^4.0.0",

@@ -52,0 +52,0 @@ "mkdirp": "^2.0.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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