@google-cloud/clientconnectorservices
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -85,3 +85,3 @@ "use strict"; | ||
constructor(opts, gaxInstance) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c, _d, _e; | ||
this._terminated = false; | ||
@@ -102,4 +102,7 @@ this.descriptors = { | ||
} | ||
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object' | ||
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] | ||
: undefined; | ||
this._universeDomain = | ||
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com'; | ||
(_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com'; | ||
this._servicePath = 'beyondcorp.' + this._universeDomain; | ||
@@ -109,4 +112,4 @@ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath; | ||
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port; | ||
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {}; | ||
const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); | ||
const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {}; | ||
const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function'); | ||
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts); | ||
@@ -143,3 +146,3 @@ // Request numeric enum values if REST transport is used. | ||
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; | ||
if (typeof process !== 'undefined' && 'versions' in process) { | ||
if (typeof process === 'object' && 'versions' in process) { | ||
clientHeader.push(`gl-node/${process.versions.node}`); | ||
@@ -356,3 +359,3 @@ } | ||
static get servicePath() { | ||
if (typeof process !== undefined && | ||
if (typeof process === 'object' && | ||
typeof process.emitWarning === 'function') { | ||
@@ -369,3 +372,3 @@ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); | ||
static get apiEndpoint() { | ||
if (typeof process !== undefined && | ||
if (typeof process === 'object' && | ||
typeof process.emitWarning === 'function') { | ||
@@ -372,0 +375,0 @@ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); |
# Changelog | ||
## [2.2.0](https://github.com/googleapis/google-cloud-node/compare/clientconnectorservices-v2.1.0...clientconnectorservices-v2.2.0) (2024-03-29) | ||
### Features | ||
* [Many APIs] add several fields to manage state of database encryption update ([#5186](https://github.com/googleapis/google-cloud-node/issues/5186)) ([97c7951](https://github.com/googleapis/google-cloud-node/commit/97c7951481ef70d8f49c3d218f7c22ce00df9174)) | ||
## [2.1.0](https://github.com/googleapis/google-cloud-node/compare/clientconnectorservices-v2.0.1...clientconnectorservices-v2.1.0) (2024-02-09) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/clientconnectorservices", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "BeyondCorp API client for Node.js", | ||
@@ -55,4 +55,4 @@ "repository": { | ||
"@types/sinon": "^17.0.0", | ||
"c8": "^8.0.1", | ||
"gapic-tools": "^0.3.0", | ||
"c8": "^9.0.0", | ||
"gapic-tools": "^0.4.0", | ||
"gts": "^5.0.0", | ||
@@ -59,0 +59,0 @@ "jsdoc": "^4.0.0", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
2135032
35862
2