@google-cloud/translate
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -258,3 +258,3 @@ "use strict"; | ||
undefined; | ||
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor); | ||
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback); | ||
this.innerApiCalls[methodName] = apiCall; | ||
@@ -443,3 +443,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateText, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateText, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -482,3 +482,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateDocument, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateDocument, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -521,3 +521,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.createGlossary, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.createGlossary, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -560,3 +560,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.deleteGlossary, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.deleteGlossary, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -563,0 +563,0 @@ } |
@@ -259,3 +259,3 @@ "use strict"; | ||
undefined; | ||
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor); | ||
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback); | ||
this.innerApiCalls[methodName] = apiCall; | ||
@@ -444,3 +444,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateText, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateText, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -483,3 +483,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateDocument, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.batchTranslateDocument, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -522,3 +522,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.createGlossary, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.createGlossary, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -561,3 +561,3 @@ } | ||
const [operation] = await this.operationsClient.getOperation(request); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.deleteGlossary, gax.createDefaultBackoffSettings()); | ||
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.deleteGlossary, this._gaxModule.createDefaultBackoffSettings()); | ||
return decodeOperation; | ||
@@ -564,0 +564,0 @@ } |
@@ -7,2 +7,13 @@ # Changelog | ||
## [7.0.2](https://github.com/googleapis/nodejs-translate/compare/v7.0.1...v7.0.2) (2022-08-27) | ||
### Bug Fixes | ||
* better support for fallback mode ([#809](https://github.com/googleapis/nodejs-translate/issues/809)) ([1a90646](https://github.com/googleapis/nodejs-translate/commit/1a9064602582090468e9371ddfe830bd32dad566)) | ||
* change import long to require ([#810](https://github.com/googleapis/nodejs-translate/issues/810)) ([2fa0935](https://github.com/googleapis/nodejs-translate/commit/2fa09350e03c4abd34ab00956a0349627baa5196)) | ||
* do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-translate/issues/1553)) ([#813](https://github.com/googleapis/nodejs-translate/issues/813)) ([15e8ec9](https://github.com/googleapis/nodejs-translate/commit/15e8ec92bfa95adcfd31f8f8945f7ad6b7f02a79)) | ||
* remove pip install statements ([#1546](https://github.com/googleapis/nodejs-translate/issues/1546)) ([#812](https://github.com/googleapis/nodejs-translate/issues/812)) ([d82da1f](https://github.com/googleapis/nodejs-translate/commit/d82da1f4788f273931324e8a84a2d06abc9a7e7e)) | ||
* use google-gax v3.3.0 ([15e8ec9](https://github.com/googleapis/nodejs-translate/commit/15e8ec92bfa95adcfd31f8f8945f7ad6b7f02a79)) | ||
## [7.0.1](https://github.com/googleapis/nodejs-translate/compare/v7.0.0...v7.0.1) (2022-08-10) | ||
@@ -9,0 +20,0 @@ |
{ | ||
"name": "@google-cloud/translate", | ||
"description": "Cloud Translation API Client Library for Node.js", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"license": "Apache-2.0", | ||
@@ -54,3 +54,3 @@ "author": "Google Inc.", | ||
"extend": "^3.0.2", | ||
"google-gax": "^3.0.1", | ||
"google-gax": "^3.3.0", | ||
"is-html": "^2.0.0" | ||
@@ -57,0 +57,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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3679616
56676
Updatedgoogle-gax@^3.3.0