@google-cloud/translate
Advanced tools
Comparing version 6.2.5 to 6.2.6
@@ -14,2 +14,3 @@ /// <reference types="node" /> | ||
private _opts; | ||
private _providedCustomServicePath; | ||
private _gaxModule; | ||
@@ -21,2 +22,3 @@ private _gaxGrpc; | ||
descriptors: Descriptors; | ||
warn: (code: string, message: string, warnType?: string) => void; | ||
innerApiCalls: { | ||
@@ -23,0 +25,0 @@ [name: string]: Function; |
@@ -84,2 +84,3 @@ "use strict"; | ||
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath; | ||
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint)); | ||
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; | ||
@@ -164,2 +165,4 @@ const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {}; | ||
this.innerApiCalls = {}; | ||
// Add a warn function to the client constructor so it can be easily tested. | ||
this.warn = gax.warn; | ||
} | ||
@@ -187,3 +190,3 @@ /** | ||
: // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
this._protos.google.cloud.translation.v3.TranslationService, this._opts); | ||
this._protos.google.cloud.translation.v3.TranslationService, this._opts, this._providedCustomServicePath); | ||
// Iterate over each of the methods that the service provides | ||
@@ -190,0 +193,0 @@ // and create an API call method for each. |
@@ -14,2 +14,3 @@ /// <reference types="node" /> | ||
private _opts; | ||
private _providedCustomServicePath; | ||
private _gaxModule; | ||
@@ -21,2 +22,3 @@ private _gaxGrpc; | ||
descriptors: Descriptors; | ||
warn: (code: string, message: string, warnType?: string) => void; | ||
innerApiCalls: { | ||
@@ -23,0 +25,0 @@ [name: string]: Function; |
@@ -7,2 +7,9 @@ # Changelog | ||
### [6.2.6](https://www.github.com/googleapis/nodejs-translate/compare/v6.2.5...v6.2.6) (2021-07-21) | ||
### Bug Fixes | ||
* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#699](https://www.github.com/googleapis/nodejs-translate/issues/699)) ([41e7ba3](https://www.github.com/googleapis/nodejs-translate/commit/41e7ba31041a2138c7068ce0e14528d044cb3606)) | ||
### [6.2.5](https://www.github.com/googleapis/nodejs-translate/compare/v6.2.4...v6.2.5) (2021-07-12) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/translate", | ||
"description": "Cloud Translation API Client Library for Node.js", | ||
"version": "6.2.5", | ||
"version": "6.2.6", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
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
3108217
48342