Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/speech

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/speech - npm Package Compare versions

Comparing version 6.3.0 to 6.4.0

17

build/src/v1/adaptation_client.js

@@ -75,3 +75,3 @@ "use strict";

constructor(opts, gaxInstance) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
this._terminated = false;

@@ -91,4 +91,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 = 'speech.' + this._universeDomain;

@@ -98,4 +101,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);

@@ -130,3 +133,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}`);

@@ -231,3 +234,3 @@ }

static get servicePath() {
if (typeof process !== undefined &&
if (typeof process === 'object' &&
typeof process.emitWarning === 'function') {

@@ -244,3 +247,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') {

@@ -247,0 +250,0 @@ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');

@@ -76,3 +76,3 @@ "use strict";

constructor(opts, gaxInstance) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
this._terminated = false;

@@ -92,4 +92,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 = 'speech.' + this._universeDomain;

@@ -99,4 +102,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);

@@ -131,3 +134,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}`);

@@ -260,3 +263,3 @@ }

static get servicePath() {
if (typeof process !== undefined &&
if (typeof process === 'object' &&
typeof process.emitWarning === 'function') {

@@ -273,3 +276,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') {

@@ -276,0 +279,0 @@ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');

@@ -75,3 +75,3 @@ "use strict";

constructor(opts, gaxInstance) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
this._terminated = false;

@@ -91,4 +91,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 = 'speech.' + this._universeDomain;

@@ -98,4 +101,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);

@@ -130,3 +133,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}`);

@@ -231,3 +234,3 @@ }

static get servicePath() {
if (typeof process !== undefined &&
if (typeof process === 'object' &&
typeof process.emitWarning === 'function') {

@@ -244,3 +247,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') {

@@ -247,0 +250,0 @@ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');

@@ -76,3 +76,3 @@ "use strict";

constructor(opts, gaxInstance) {
var _a, _b, _c, _d;
var _a, _b, _c, _d, _e;
this._terminated = false;

@@ -92,4 +92,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 = 'speech.' + this._universeDomain;

@@ -99,4 +102,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);

@@ -131,3 +134,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}`);

@@ -260,3 +263,3 @@ }

static get servicePath() {
if (typeof process !== undefined &&
if (typeof process === 'object' &&
typeof process.emitWarning === 'function') {

@@ -273,3 +276,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') {

@@ -276,0 +279,0 @@ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');

@@ -7,2 +7,9 @@ # Changelog

## [6.4.0](https://github.com/googleapis/google-cloud-node/compare/speech-v6.3.0...speech-v6.4.0) (2024-03-29)
### Features
* [Many APIs] add several fields to manage state of database encryption update ([#5191](https://github.com/googleapis/google-cloud-node/issues/5191)) ([57567db](https://github.com/googleapis/google-cloud-node/commit/57567db36033ca53ae2f54e6517b8cd12145bb82))
## [6.3.0](https://github.com/googleapis/google-cloud-node/compare/speech-v6.2.0...speech-v6.3.0) (2024-02-22)

@@ -9,0 +16,0 @@

{
"name": "@google-cloud/speech",
"description": "Cloud Speech Client Library for Node.js",
"version": "6.3.0",
"version": "6.4.0",
"license": "Apache-2.0",

@@ -64,5 +64,5 @@ "author": "Google Inc.",

"@types/sinon": "^17.0.0",
"c8": "^8.0.1",
"c8": "^9.0.0",
"codecov": "^3.0.2",
"gapic-tools": "^0.3.0",
"gapic-tools": "^0.4.0",
"gts": "^5.0.0",

@@ -69,0 +69,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

Sorry, the diff of this file is too big to display

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