@google-cloud/data-fusion
Advanced tools
Comparing version 3.0.1 to 3.1.0
"use strict"; | ||
// Copyright 2023 Google LLC | ||
// Copyright 2024 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -21,2 +21,4 @@ /// <reference types="node" /> | ||
private _defaults; | ||
private _universeDomain; | ||
private _servicePath; | ||
auth: gax.GoogleAuth; | ||
@@ -91,2 +93,3 @@ descriptors: Descriptors; | ||
* The DNS address for this API service. | ||
* @deprecated Use the apiEndpoint method of the client instance. | ||
* @returns {string} The DNS address for this service. | ||
@@ -96,4 +99,4 @@ */ | ||
/** | ||
* The DNS address for this API service - same as servicePath(), | ||
* exists for compatibility reasons. | ||
* The DNS address for this API service - same as servicePath. | ||
* @deprecated Use the apiEndpoint method of the client instance. | ||
* @returns {string} The DNS address for this service. | ||
@@ -103,2 +106,8 @@ */ | ||
/** | ||
* The DNS address for this API service. | ||
* @returns {string} The DNS address for this service. | ||
*/ | ||
get apiEndpoint(): string; | ||
get universeDomain(): string; | ||
/** | ||
* The port for this API service. | ||
@@ -105,0 +114,0 @@ * @returns {number} The default port for this service. |
"use strict"; | ||
// Copyright 2023 Google LLC | ||
// Copyright 2024 Google LLC | ||
// | ||
@@ -77,3 +77,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
constructor(opts, gaxInstance) { | ||
var _a, _b; | ||
var _a, _b, _c, _d, _e; | ||
this._terminated = false; | ||
@@ -88,7 +88,18 @@ this.descriptors = { | ||
const staticMembers = this.constructor; | ||
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath; | ||
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) && | ||
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) && | ||
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) { | ||
throw new Error('Please set either universe_domain or universeDomain, but not both.'); | ||
} | ||
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object' | ||
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] | ||
: undefined; | ||
this._universeDomain = | ||
(_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 = 'datafusion.' + this._universeDomain; | ||
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._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; | ||
const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {}; | ||
const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (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); | ||
@@ -98,3 +109,3 @@ // Request numeric enum values if REST transport is used. | ||
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. | ||
if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { | ||
if (servicePath !== this._servicePath && !('scopes' in opts)) { | ||
opts['scopes'] = staticMembers.scopes; | ||
@@ -117,5 +128,5 @@ } | ||
// Set defaultServicePath on the auth object. | ||
this.auth.defaultServicePath = staticMembers.servicePath; | ||
this.auth.defaultServicePath = this._servicePath; | ||
// Set the default scopes in auth client if needed. | ||
if (servicePath === staticMembers.servicePath) { | ||
if (servicePath === this._servicePath) { | ||
this.auth.defaultScopes = staticMembers.scopes; | ||
@@ -125,3 +136,3 @@ } | ||
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}`); | ||
@@ -289,16 +300,35 @@ } | ||
* The DNS address for this API service. | ||
* @deprecated Use the apiEndpoint method of the client instance. | ||
* @returns {string} The DNS address for this service. | ||
*/ | ||
static get servicePath() { | ||
if (typeof process === 'object' && | ||
typeof process.emitWarning === 'function') { | ||
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning'); | ||
} | ||
return 'datafusion.googleapis.com'; | ||
} | ||
/** | ||
* The DNS address for this API service - same as servicePath(), | ||
* exists for compatibility reasons. | ||
* The DNS address for this API service - same as servicePath. | ||
* @deprecated Use the apiEndpoint method of the client instance. | ||
* @returns {string} The DNS address for this service. | ||
*/ | ||
static get apiEndpoint() { | ||
if (typeof process === 'object' && | ||
typeof process.emitWarning === 'function') { | ||
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning'); | ||
} | ||
return 'datafusion.googleapis.com'; | ||
} | ||
/** | ||
* The DNS address for this API service. | ||
* @returns {string} The DNS address for this service. | ||
*/ | ||
get apiEndpoint() { | ||
return this._servicePath; | ||
} | ||
get universeDomain() { | ||
return this._universeDomain; | ||
} | ||
/** | ||
* The port for this API service. | ||
@@ -305,0 +335,0 @@ * @returns {number} The default port for this service. |
"use strict"; | ||
// Copyright 2023 Google LLC | ||
// Copyright 2024 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -21,2 +21,4 @@ /// <reference types="node" /> | ||
private _defaults; | ||
private _universeDomain; | ||
private _servicePath; | ||
auth: gax.GoogleAuth; | ||
@@ -91,2 +93,3 @@ descriptors: Descriptors; | ||
* The DNS address for this API service. | ||
* @deprecated Use the apiEndpoint method of the client instance. | ||
* @returns {string} The DNS address for this service. | ||
@@ -96,4 +99,4 @@ */ | ||
/** | ||
* The DNS address for this API service - same as servicePath(), | ||
* exists for compatibility reasons. | ||
* The DNS address for this API service - same as servicePath. | ||
* @deprecated Use the apiEndpoint method of the client instance. | ||
* @returns {string} The DNS address for this service. | ||
@@ -103,2 +106,8 @@ */ | ||
/** | ||
* The DNS address for this API service. | ||
* @returns {string} The DNS address for this service. | ||
*/ | ||
get apiEndpoint(): string; | ||
get universeDomain(): string; | ||
/** | ||
* The port for this API service. | ||
@@ -105,0 +114,0 @@ * @returns {number} The default port for this service. |
"use strict"; | ||
// Copyright 2023 Google LLC | ||
// Copyright 2024 Google LLC | ||
// | ||
@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License"); |
# Changelog | ||
## [3.1.0](https://github.com/googleapis/google-cloud-node/compare/data-fusion-v3.0.1...data-fusion-v3.1.0) (2024-03-29) | ||
### Features | ||
* [Many APIs] add several fields to manage state of database encryption update ([#5187](https://github.com/googleapis/google-cloud-node/issues/5187)) ([1952fbe](https://github.com/googleapis/google-cloud-node/commit/1952fbe432b96115278d42e5c1dbdbc7de39036b)) | ||
## [3.0.1](https://github.com/googleapis/google-cloud-node/compare/data-fusion-v3.0.0...data-fusion-v3.0.1) (2023-09-06) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/data-fusion", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "datafusion client for Node.js", | ||
@@ -40,3 +40,3 @@ "repository": { | ||
"lint": "gts check", | ||
"prepare": "npm run compile-protos && npm run compile", | ||
"prepare": "npm run compile", | ||
"prelint": "cd samples; npm link ../; npm i", | ||
@@ -54,5 +54,5 @@ "postpack": "minifyProtoJson", | ||
"@types/node": "^20.4.5", | ||
"@types/sinon": "^10.0.0", | ||
"c8": "^8.0.1", | ||
"gapic-tools": "^0.1.8", | ||
"@types/sinon": "^17.0.0", | ||
"c8": "^9.0.0", | ||
"gapic-tools": "^0.4.0", | ||
"gts": "^5.0.0", | ||
@@ -65,4 +65,4 @@ "jsdoc": "^4.0.0", | ||
"mocha": "^9.2.2", | ||
"pack-n-play": "^1.0.0-2", | ||
"sinon": "^15.0.0", | ||
"pack-n-play": "^2.0.0", | ||
"sinon": "^17.0.0", | ||
"typescript": "^5.1.6" | ||
@@ -69,0 +69,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
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
3250389
54555
4