@google-cloud/common
Advanced tools
Comparing version 3.7.3 to 3.7.4
@@ -36,2 +36,3 @@ import { GoogleAuth, GoogleAuthOptions } from 'google-auth-library'; | ||
userAgent?: string; | ||
useAuthWithCustomEndpoint?: boolean; | ||
} | ||
@@ -38,0 +39,0 @@ export declare class Service { |
@@ -54,2 +54,6 @@ /// <reference types="node" /> | ||
/** | ||
* If true, will authenticate when using a custom endpoint. Default: false. | ||
*/ | ||
useAuthWithCustomEndpoint?: boolean; | ||
/** | ||
* Account email address, required for PEM/P12 usage. | ||
@@ -255,2 +259,3 @@ */ | ||
* @param {boolean=} config.customEndpoint - If true, just return the provided request options. Default: false. | ||
* @param {boolean=} config.useAuthWithCustomEndpoint - If true, will authenticate when using a custom endpoint. Default: false. | ||
* @param {string=} config.email - Account email address, required for PEM/P12 usage. | ||
@@ -257,0 +262,0 @@ * @param {number=} config.maxRetries - Maximum number of automatic retries attempted before returning the error. (default: 3) |
@@ -312,2 +312,3 @@ "use strict"; | ||
* @param {boolean=} config.customEndpoint - If true, just return the provided request options. Default: false. | ||
* @param {boolean=} config.useAuthWithCustomEndpoint - If true, will authenticate when using a custom endpoint. Default: false. | ||
* @param {string=} config.email - Account email address, required for PEM/P12 usage. | ||
@@ -390,3 +391,3 @@ * @param {number=} config.maxRetries - Maximum number of automatic retries attempted before returning the error. (default: 3) | ||
: authClient.getProjectId(), | ||
reqConfig.customEndpoint | ||
reqConfig.customEndpoint && reqConfig.useAuthWithCustomEndpoint !== true | ||
? // Using a custom API override. Do not use `google-auth-library` for | ||
@@ -393,0 +394,0 @@ // authentication. (ex: connecting to a local Datastore server) |
@@ -7,2 +7,9 @@ # Changelog | ||
### [3.7.4](https://www.github.com/googleapis/nodejs-common/compare/v3.7.3...v3.7.4) (2021-10-06) | ||
### Bug Fixes | ||
* allow authentication with custom endpoint ([#698](https://www.github.com/googleapis/nodejs-common/issues/698)) ([4c0f7ec](https://www.github.com/googleapis/nodejs-common/commit/4c0f7ec0c6ebedc34eaaab79fc053e7e889e243d)) | ||
### [3.7.3](https://www.github.com/googleapis/nodejs-common/compare/v3.7.2...v3.7.3) (2021-10-06) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/common", | ||
"description": "Common components for Cloud APIs Node.js Client Libraries", | ||
"version": "3.7.3", | ||
"version": "3.7.4", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
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
124672
1914