Socket
Socket
Sign inDemoInstall

@google-cloud/common

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/common - npm Package Compare versions

Comparing version 3.7.3 to 3.7.4

1

build/src/service.d.ts

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

3

build/src/util.js

@@ -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.",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc