google-gax
Advanced tools
Comparing version 3.6.0 to 4.0.0
@@ -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
11
5
3209713
35
281
26799
- Removed@types/rimraf@^3.0.2
- Removedfast-text-encoding@^1.0.3
- Removedis-stream-ended@^0.1.4
- Removedprotobufjs-cli@1.1.1
- Removed@babel/helper-string-parser@7.24.8(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/parser@7.25.3(transitive)
- Removed@babel/types@7.25.2(transitive)
- Removed@jsdoc/salty@0.2.8(transitive)
- Removed@types/glob@8.1.0(transitive)
- Removed@types/linkify-it@5.0.0(transitive)
- Removed@types/markdown-it@14.1.2(transitive)
- Removed@types/mdurl@2.0.0(transitive)
- Removed@types/minimatch@5.1.2(transitive)
- Removed@types/rimraf@3.0.2(transitive)
- Removedacorn@8.12.1(transitive)
- Removedacorn-jsx@5.3.2(transitive)
- Removedargparse@2.0.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedcatharsis@0.9.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removeddeep-is@0.1.4(transitive)
- Removedentities@4.5.0(transitive)
- Removedescape-string-regexp@2.0.0(transitive)
- Removedescodegen@1.14.3(transitive)
- Removedeslint-visitor-keys@3.4.3(transitive)
- Removedespree@9.6.1(transitive)
- Removedesprima@4.0.1(transitive)
- Removedestraverse@4.3.05.3.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@8.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedis-stream-ended@0.1.4(transitive)
- Removedjs2xmlparser@4.0.2(transitive)
- Removedjsdoc@4.0.3(transitive)
- Removedklaw@3.0.0(transitive)
- Removedlevn@0.3.0(transitive)
- Removedlinkify-it@5.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmarkdown-it@14.1.0(transitive)
- Removedmarkdown-it-anchor@8.6.7(transitive)
- Removedmarked@4.3.0(transitive)
- Removedmdurl@2.0.0(transitive)
- Removedminimatch@5.1.6(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedprotobufjs-cli@1.1.1(transitive)
- Removedpunycode.js@2.3.1(transitive)
- Removedrequizzle@0.2.4(transitive)
- Removedsemver@7.6.3(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedstrip-json-comments@3.1.1(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedtmp@0.2.3(transitive)
- Removedto-fast-properties@2.0.0(transitive)
- Removedtype-check@0.3.2(transitive)
- Removeduc.micro@2.1.0(transitive)
- Removeduglify-js@3.19.1(transitive)
- Removedunderscore@1.13.7(transitive)
- Removedword-wrap@1.2.5(transitive)
- Removedxmlcreate@2.0.4(transitive)