You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

google-gax

Package Overview
Dependencies
Maintainers
3
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.2 to 3.5.3

24

build/src/apitypes.d.ts

@@ -28,8 +28,8 @@ /**

}
export declare type ResponseType = {} | null;
export declare type NextPageRequestType = {
export type ResponseType = {} | null;
export type NextPageRequestType = {
[index: string]: string | number | {};
} | null;
export declare type RawResponseType = Operation | {} | null;
export declare type ResultTuple = [
export type RawResponseType = Operation | {} | null;
export type ResultTuple = [
ResponseType | [ResponseType],

@@ -42,10 +42,10 @@ NextPageRequestType | undefined,

}
export declare type APICallback = (err: GoogleError | null, response?: ResponseType, next?: NextPageRequestType, rawResponse?: RawResponseType) => void;
export declare type UnaryCall = (argument: {}, metadata: {}, options: {}, callback: APICallback) => GRPCCallResult;
export declare type ServerStreamingCall = (argument: {}, metadata: {}, options: {}) => Duplex & GRPCCallResult;
export declare type ClientStreamingCall = (metadata: {}, options: {}, callback?: APICallback) => Duplex & GRPCCallResult;
export declare type BiDiStreamingCall = (metadata: {}, options: {}) => Duplex & GRPCCallResult;
export declare type GRPCCall = UnaryCall | ServerStreamingCall | ClientStreamingCall | BiDiStreamingCall;
export declare type CancellableStream = Duplex & GRPCCallResult;
export declare type GaxCallResult = CancellablePromise<ResultTuple> | CancellableStream;
export type APICallback = (err: GoogleError | null, response?: ResponseType, next?: NextPageRequestType, rawResponse?: RawResponseType) => void;
export type UnaryCall = (argument: {}, metadata: {}, options: {}, callback: APICallback) => GRPCCallResult;
export type ServerStreamingCall = (argument: {}, metadata: {}, options: {}) => Duplex & GRPCCallResult;
export type ClientStreamingCall = (metadata: {}, options: {}, callback?: APICallback) => Duplex & GRPCCallResult;
export type BiDiStreamingCall = (metadata: {}, options: {}) => Duplex & GRPCCallResult;
export type GRPCCall = UnaryCall | ServerStreamingCall | ClientStreamingCall | BiDiStreamingCall;
export type CancellableStream = Duplex & GRPCCallResult;
export type GaxCallResult = CancellablePromise<ResultTuple> | CancellableStream;
export interface GaxCallPromise {

@@ -52,0 +52,0 @@ (argument: {}, callOptions?: CallOptions, callback?: APICallback): CancellablePromise<ResultTuple>;

@@ -51,3 +51,3 @@ /**

}
export declare type AuthClient = OAuth2Client | Compute | JWT | UserRefreshClient | BaseExternalAccountClient;
export type AuthClient = OAuth2Client | Compute | JWT | UserRefreshClient | BaseExternalAccountClient;
export declare class GrpcClient {

@@ -54,0 +54,0 @@ auth?: OAuth2Client | GoogleAuth;

@@ -72,2 +72,9 @@ "use strict";

/**
* In rare cases users might need to deallocate all memory consumed by loaded protos.
* This method will delete the proto cache content.
*/
static clearProtoCache() {
GrpcClient.protoCache.clear();
}
/**
* gRPC-fallback version of GrpcClient

@@ -100,9 +107,2 @@ * Implements GrpcClient API for a browser using grpc-fallback protocol (sends serialized protobuf to HTTP/1 $rpc endpoint).

/**
* In rare cases users might need to deallocate all memory consumed by loaded protos.
* This method will delete the proto cache content.
*/
static clearProtoCache() {
GrpcClient.protoCache.clear();
}
/**
* gRPC-fallback version of loadProto

@@ -109,0 +109,0 @@ * Loads the protobuf root object from a JSON object created from a proto file

@@ -24,3 +24,3 @@ /**

}
export declare type FetchParametersMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
export type FetchParametersMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
export interface FetchParameters {

@@ -27,0 +27,0 @@ headers: {

@@ -34,3 +34,3 @@ /**

}
export declare type FallbackServiceError = FallbackStatusObject & Error;
export type FallbackServiceError = FallbackStatusObject & Error;
interface FallbackStatusObject {

@@ -37,0 +37,0 @@ code: Status;

@@ -42,3 +42,3 @@ /**

}
export declare type GrpcModule = typeof grpc;
export type GrpcModule = typeof grpc;
export interface ClientStubOptions {

@@ -45,0 +45,0 @@ protocol?: string;

@@ -74,2 +74,24 @@ "use strict";

/**
* Key for proto cache map. We are doing our best to make sure we respect
* the options, so if the same proto file is loaded with different set of
* options, the cache won't be used. Since some of the options are
* Functions (e.g. `enums: String` - see below in `loadProto()`),
* they will be omitted from the cache key. If the cache breaks anything
* for you, use the `ignoreCache` parameter of `loadProto()` to disable it.
*/
static protoCacheKey(filename, options) {
if (!filename ||
(Array.isArray(filename) && (filename.length === 0 || !filename[0]))) {
return undefined;
}
return JSON.stringify(filename) + ' ' + JSON.stringify(options);
}
/**
* In rare cases users might need to deallocate all memory consumed by loaded protos.
* This method will delete the proto cache content.
*/
static clearProtoCache() {
GrpcClient.protoCache.clear();
}
/**
* A class which keeps the context of gRPC and auth for the gRPC.

@@ -109,24 +131,2 @@ *

/**
* Key for proto cache map. We are doing our best to make sure we respect
* the options, so if the same proto file is loaded with different set of
* options, the cache won't be used. Since some of the options are
* Functions (e.g. `enums: String` - see below in `loadProto()`),
* they will be omitted from the cache key. If the cache breaks anything
* for you, use the `ignoreCache` parameter of `loadProto()` to disable it.
*/
static protoCacheKey(filename, options) {
if (!filename ||
(Array.isArray(filename) && (filename.length === 0 || !filename[0]))) {
return undefined;
}
return JSON.stringify(filename) + ' ' + JSON.stringify(options);
}
/**
* In rare cases users might need to deallocate all memory consumed by loaded protos.
* This method will delete the proto cache content.
*/
static clearProtoCache() {
GrpcClient.protoCache.clear();
}
/**
* Creates a gRPC credentials. It asks the auth data if necessary.

@@ -133,0 +133,0 @@ * @private

@@ -35,3 +35,3 @@ /**

}
declare type LROOperation = operationProtos.google.longrunning.Operation;
type LROOperation = operationProtos.google.longrunning.Operation;
export declare class Operation extends EventEmitter {

@@ -38,0 +38,0 @@ completeListeners: number;

@@ -26,4 +26,4 @@ /**

declare const httpOptionName = "(google.api.http)";
declare type allowedOptions = '(google.api.method_signature)';
export declare type ParsedOptionsType = Array<{
type allowedOptions = '(google.api.method_signature)';
export type ParsedOptionsType = Array<{
[httpOptionName]?: google.api.IHttpRule;

@@ -30,0 +30,0 @@ } & {

{
"name": "google-gax",
"version": "3.5.2",
"version": "3.5.3",
"description": "Google API Extensions",

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

"protobufjs": "7.1.2",
"protobufjs-cli": "1.0.2",
"protobufjs-cli": "1.1.0",
"retry-request": "^5.0.0"

@@ -39,3 +39,3 @@ },

"@types/ncp": "^2.0.1",
"@types/node": "^17.0.31",
"@types/node": "^18.0.0",
"@types/node-fetch": "^2.5.4",

@@ -42,0 +42,0 @@ "@types/object-hash": "^2.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc