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
4
Versions
359
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.0 to 4.0.0

2

build/src/fallback.js

@@ -211,3 +211,3 @@ "use strict";

if (this.auth && 'getClient' in this.auth) {
this.authClient = await this.auth.getClient();
this.authClient = (await this.auth.getClient());
}

@@ -214,0 +214,0 @@ else if (this.auth && 'getRequestHeaders' in this.auth) {

@@ -22,8 +22,4 @@ "use strict";

const fallback_1 = require("./fallback");
const featureDetection_1 = require("./featureDetection");
const googleError_1 = require("./googleError");
const transcoding_1 = require("./transcoding");
if (!(0, featureDetection_1.hasTextEncoder)() || !(0, featureDetection_1.hasTextDecoder)()) {
require('fast-text-encoding');
}
function encodeRequest(rpc, protocol, servicePath, servicePort, request, numericEnums) {

@@ -30,0 +26,0 @@ const headers = {

@@ -17,5 +17,3 @@ /**

export declare function hasWindowFetch(): boolean;
export declare function hasTextEncoder(): boolean;
export declare function hasTextDecoder(): boolean;
export declare function isNodeJS(): string | false;
export declare function hasAbortController(): boolean;

@@ -19,3 +19,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.hasAbortController = exports.isNodeJS = exports.hasTextDecoder = exports.hasTextEncoder = exports.hasWindowFetch = void 0;
exports.hasAbortController = exports.isNodeJS = exports.hasWindowFetch = void 0;
/* global window */

@@ -37,10 +37,2 @@ const features = {

exports.hasWindowFetch = hasWindowFetch;
function hasTextEncoder() {
return features.textEncoder;
}
exports.hasTextEncoder = hasTextEncoder;
function hasTextDecoder() {
return features.textDecoder;
}
exports.hasTextDecoder = hasTextDecoder;
function isNodeJS() {

@@ -47,0 +39,0 @@ return features.nodeJS;

@@ -19,3 +19,2 @@ "use strict";

exports.PageDescriptor = void 0;
const ended = require("is-stream-ended");
const stream_1 = require("stream");

@@ -51,3 +50,3 @@ const normalApiCaller_1 = require("../normalCalls/normalApiCaller");

for (let i = 0; i < resources.length; ++i) {
if (ended(stream)) {
if (stream._readableState.ended) {
return;

@@ -64,3 +63,3 @@ }

}
if (ended(stream)) {
if (stream._readableState.ended) {
return;

@@ -67,0 +66,0 @@ }

{
"name": "google-gax",
"version": "3.6.0",
"version": "4.0.0",
"description": "Google API Extensions",

@@ -9,10 +9,5 @@ "main": "build/src/index.js",

"build/src",
"build/tools/compileProtos.js",
"build/tools/minify.js",
"build/protos/"
"build/protos/",
"!build/src/**/*.map"
],
"bin": {
"compileProtos": "build/tools/compileProtos.js",
"minifyProtoJson": "build/tools/minify.js"
},
"dependencies": {

@@ -22,8 +17,5 @@ "@grpc/grpc-js": "~1.8.0",

"@types/long": "^4.0.0",
"@types/rimraf": "^3.0.2",
"abort-controller": "^3.0.0",
"duplexify": "^4.0.0",
"fast-text-encoding": "^1.0.3",
"google-auth-library": "^8.0.2",
"is-stream-ended": "^0.1.4",
"node-fetch": "^2.6.1",

@@ -33,3 +25,2 @@ "object-hash": "^3.0.0",

"protobufjs": "7.2.3",
"protobufjs-cli": "1.1.1",
"retry-request": "^5.0.0"

@@ -46,2 +37,3 @@ },

"@types/pumpify": "^1.4.1",
"@types/rimraf": "^3.0.2",
"@types/sinon": "^10.0.0",

@@ -52,2 +44,3 @@ "@types/uglify-js": "^3.17.0",

"execa": "^5.0.0",
"gapic-tools": "^0.1.7",
"google-proto-files": "^3.0.0",

@@ -61,2 +54,3 @@ "gts": "^3.1.0",

"null-loader": "^4.0.0",
"protobufjs-cli": "1.1.1",
"proxyquire": "^2.0.1",

@@ -78,3 +72,3 @@ "pumpify": "^2.0.0",

"test": "c8 mocha build/test/unit",
"lint": "gts check",
"lint": "gts check src samples test",
"clean": "gts clean",

@@ -90,3 +84,3 @@ "compile": "tsc -p . && cp src/*.json build/src && cp -r test/fixtures build/test && cp -r protos build/",

"fix": "gts fix",
"prepare": "npm run compile && node ./build/tools/prepublish.js && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json",
"prepare": "npm run compile && prepublishProtos . && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json",
"system-test": "c8 mocha build/test/system-test --timeout 600000 && npm run test-application",

@@ -100,4 +94,4 @@ "samples-test": "cd samples/ && npm link ../ && npm test && cd ../",

"precompile": "gts clean",
"update-protos": "node ./build/tools/listProtos.js",
"minify-proto-json": "node ./build/tools/minify.js"
"update-protos": "listProtos .",
"minify-proto-json": "minifyProtoJson"
},

@@ -115,5 +109,5 @@ "repository": "googleapis/gax-nodejs",

"engines": {
"node": ">=12"
"node": ">=14"
},
"browser": "build/src/fallback.js"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc