New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/language

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/language - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

2

build/src/v1/index.js
"use strict";
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

import * as gax from 'google-gax';
import { Callback, Descriptors, ClientOptions } from 'google-gax';
import { Callback, CallOptions, Descriptors, ClientOptions } from 'google-gax';
import * as protos from '../../protos/protos';

@@ -51,5 +51,5 @@ /**

* API remote host.
* @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
* TODO(@alexander-fenster): link to gax documentation.
* @param {boolean} fallback - Use HTTP fallback mode.
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
* Follows the structure of {@link gapicConfig}.
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
* In fallback mode, a special browser-compatible transport implementation is used

@@ -99,19 +99,19 @@ * instead of gRPC transport. In browser context (if the `window` object is defined)

getProjectId(callback: Callback<string, undefined, undefined>): void;
analyzeSentiment(request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeSentimentResponse, protos.google.cloud.language.v1.IAnalyzeSentimentRequest | undefined, {} | undefined]>;
analyzeSentiment(request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeSentimentResponse, protos.google.cloud.language.v1.IAnalyzeSentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeSentiment(request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeSentimentResponse, protos.google.cloud.language.v1.IAnalyzeSentimentRequest | undefined, {} | undefined]>;
analyzeSentiment(request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeSentimentResponse, protos.google.cloud.language.v1.IAnalyzeSentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeSentiment(request: protos.google.cloud.language.v1.IAnalyzeSentimentRequest, callback: Callback<protos.google.cloud.language.v1.IAnalyzeSentimentResponse, protos.google.cloud.language.v1.IAnalyzeSentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeEntities(request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1.IAnalyzeEntitiesRequest | undefined, {} | undefined]>;
analyzeEntities(request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1.IAnalyzeEntitiesRequest | null | undefined, {} | null | undefined>): void;
analyzeEntities(request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1.IAnalyzeEntitiesRequest | undefined, {} | undefined]>;
analyzeEntities(request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1.IAnalyzeEntitiesRequest | null | undefined, {} | null | undefined>): void;
analyzeEntities(request: protos.google.cloud.language.v1.IAnalyzeEntitiesRequest, callback: Callback<protos.google.cloud.language.v1.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1.IAnalyzeEntitiesRequest | null | undefined, {} | null | undefined>): void;
analyzeEntitySentiment(request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeEntitySentimentResponse, (protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest | undefined), {} | undefined]>;
analyzeEntitySentiment(request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeEntitySentimentResponse, protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeEntitySentiment(request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeEntitySentimentResponse, (protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest | undefined), {} | undefined]>;
analyzeEntitySentiment(request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeEntitySentimentResponse, protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeEntitySentiment(request: protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest, callback: Callback<protos.google.cloud.language.v1.IAnalyzeEntitySentimentResponse, protos.google.cloud.language.v1.IAnalyzeEntitySentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeSyntax(request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1.IAnalyzeSyntaxRequest | undefined, {} | undefined]>;
analyzeSyntax(request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1.IAnalyzeSyntaxRequest | null | undefined, {} | null | undefined>): void;
analyzeSyntax(request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1.IAnalyzeSyntaxRequest | undefined, {} | undefined]>;
analyzeSyntax(request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1.IAnalyzeSyntaxRequest | null | undefined, {} | null | undefined>): void;
analyzeSyntax(request: protos.google.cloud.language.v1.IAnalyzeSyntaxRequest, callback: Callback<protos.google.cloud.language.v1.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1.IAnalyzeSyntaxRequest | null | undefined, {} | null | undefined>): void;
classifyText(request: protos.google.cloud.language.v1.IClassifyTextRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1.IClassifyTextResponse, protos.google.cloud.language.v1.IClassifyTextRequest | undefined, {} | undefined]>;
classifyText(request: protos.google.cloud.language.v1.IClassifyTextRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1.IClassifyTextResponse, protos.google.cloud.language.v1.IClassifyTextRequest | null | undefined, {} | null | undefined>): void;
classifyText(request: protos.google.cloud.language.v1.IClassifyTextRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1.IClassifyTextResponse, protos.google.cloud.language.v1.IClassifyTextRequest | undefined, {} | undefined]>;
classifyText(request: protos.google.cloud.language.v1.IClassifyTextRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1.IClassifyTextResponse, protos.google.cloud.language.v1.IClassifyTextRequest | null | undefined, {} | null | undefined>): void;
classifyText(request: protos.google.cloud.language.v1.IClassifyTextRequest, callback: Callback<protos.google.cloud.language.v1.IClassifyTextResponse, protos.google.cloud.language.v1.IClassifyTextRequest | null | undefined, {} | null | undefined>): void;
annotateText(request: protos.google.cloud.language.v1.IAnnotateTextRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1.IAnnotateTextResponse, protos.google.cloud.language.v1.IAnnotateTextRequest | undefined, {} | undefined]>;
annotateText(request: protos.google.cloud.language.v1.IAnnotateTextRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnnotateTextResponse, protos.google.cloud.language.v1.IAnnotateTextRequest | null | undefined, {} | null | undefined>): void;
annotateText(request: protos.google.cloud.language.v1.IAnnotateTextRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1.IAnnotateTextResponse, protos.google.cloud.language.v1.IAnnotateTextRequest | undefined, {} | undefined]>;
annotateText(request: protos.google.cloud.language.v1.IAnnotateTextRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1.IAnnotateTextResponse, protos.google.cloud.language.v1.IAnnotateTextRequest | null | undefined, {} | null | undefined>): void;
annotateText(request: protos.google.cloud.language.v1.IAnnotateTextRequest, callback: Callback<protos.google.cloud.language.v1.IAnnotateTextResponse, protos.google.cloud.language.v1.IAnnotateTextRequest | null | undefined, {} | null | undefined>): void;

@@ -118,0 +118,0 @@ /**

"use strict";
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//

@@ -21,4 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

exports.LanguageServiceClient = void 0;
/* global window */
const gax = require("google-gax");
const path = require("path");
/**
* Client JSON configuration object, loaded from
* `src/v1/language_service_client_config.json`.
* This file defines retry strategy and timeouts for all API methods in this library.
*/
const gapicConfig = require("./language_service_client_config.json");

@@ -59,5 +65,5 @@ const version = require('../../../package.json').version;

* API remote host.
* @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
* TODO(@alexander-fenster): link to gax documentation.
* @param {boolean} fallback - Use HTTP fallback mode.
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
* Follows the structure of {@link gapicConfig}.
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
* In fallback mode, a special browser-compatible transport implementation is used

@@ -82,3 +88,3 @@ * instead of gRPC transport. In browser context (if the `window` object is defined)

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';
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');
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);

@@ -85,0 +91,0 @@ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.

"use strict";
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

import * as gax from 'google-gax';
import { Callback, Descriptors, ClientOptions } from 'google-gax';
import { Callback, CallOptions, Descriptors, ClientOptions } from 'google-gax';
import * as protos from '../../protos/protos';

@@ -51,5 +51,5 @@ /**

* API remote host.
* @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
* TODO(@alexander-fenster): link to gax documentation.
* @param {boolean} fallback - Use HTTP fallback mode.
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
* Follows the structure of {@link gapicConfig}.
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
* In fallback mode, a special browser-compatible transport implementation is used

@@ -99,19 +99,19 @@ * instead of gRPC transport. In browser context (if the `window` object is defined)

getProjectId(callback: Callback<string, undefined, undefined>): void;
analyzeSentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeSentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest | undefined, {} | undefined]>;
analyzeSentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeSentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeSentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeSentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest | undefined, {} | undefined]>;
analyzeSentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeSentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeSentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeSentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeSentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeEntities(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest | undefined, {} | undefined]>;
analyzeEntities(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest | null | undefined, {} | null | undefined>): void;
analyzeEntities(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest | undefined, {} | undefined]>;
analyzeEntities(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest | null | undefined, {} | null | undefined>): void;
analyzeEntities(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeEntitiesResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitiesRequest | null | undefined, {} | null | undefined>): void;
analyzeEntitySentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, (protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest | undefined), {} | undefined]>;
analyzeEntitySentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeEntitySentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, (protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest | undefined), {} | undefined]>;
analyzeEntitySentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeEntitySentiment(request: protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentResponse, protos.google.cloud.language.v1beta2.IAnalyzeEntitySentimentRequest | null | undefined, {} | null | undefined>): void;
analyzeSyntax(request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest | undefined, {} | undefined]>;
analyzeSyntax(request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest | null | undefined, {} | null | undefined>): void;
analyzeSyntax(request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest | undefined, {} | undefined]>;
analyzeSyntax(request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest | null | undefined, {} | null | undefined>): void;
analyzeSyntax(request: protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest, callback: Callback<protos.google.cloud.language.v1beta2.IAnalyzeSyntaxResponse, protos.google.cloud.language.v1beta2.IAnalyzeSyntaxRequest | null | undefined, {} | null | undefined>): void;
classifyText(request: protos.google.cloud.language.v1beta2.IClassifyTextRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1beta2.IClassifyTextResponse, protos.google.cloud.language.v1beta2.IClassifyTextRequest | undefined, {} | undefined]>;
classifyText(request: protos.google.cloud.language.v1beta2.IClassifyTextRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IClassifyTextResponse, protos.google.cloud.language.v1beta2.IClassifyTextRequest | null | undefined, {} | null | undefined>): void;
classifyText(request: protos.google.cloud.language.v1beta2.IClassifyTextRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1beta2.IClassifyTextResponse, protos.google.cloud.language.v1beta2.IClassifyTextRequest | undefined, {} | undefined]>;
classifyText(request: protos.google.cloud.language.v1beta2.IClassifyTextRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IClassifyTextResponse, protos.google.cloud.language.v1beta2.IClassifyTextRequest | null | undefined, {} | null | undefined>): void;
classifyText(request: protos.google.cloud.language.v1beta2.IClassifyTextRequest, callback: Callback<protos.google.cloud.language.v1beta2.IClassifyTextResponse, protos.google.cloud.language.v1beta2.IClassifyTextRequest | null | undefined, {} | null | undefined>): void;
annotateText(request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest, options?: gax.CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnnotateTextResponse, protos.google.cloud.language.v1beta2.IAnnotateTextRequest | undefined, {} | undefined]>;
annotateText(request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest, options: gax.CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnnotateTextResponse, protos.google.cloud.language.v1beta2.IAnnotateTextRequest | null | undefined, {} | null | undefined>): void;
annotateText(request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest, options?: CallOptions): Promise<[protos.google.cloud.language.v1beta2.IAnnotateTextResponse, protos.google.cloud.language.v1beta2.IAnnotateTextRequest | undefined, {} | undefined]>;
annotateText(request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest, options: CallOptions, callback: Callback<protos.google.cloud.language.v1beta2.IAnnotateTextResponse, protos.google.cloud.language.v1beta2.IAnnotateTextRequest | null | undefined, {} | null | undefined>): void;
annotateText(request: protos.google.cloud.language.v1beta2.IAnnotateTextRequest, callback: Callback<protos.google.cloud.language.v1beta2.IAnnotateTextResponse, protos.google.cloud.language.v1beta2.IAnnotateTextRequest | null | undefined, {} | null | undefined>): void;

@@ -118,0 +118,0 @@ /**

"use strict";
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//

@@ -21,4 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

exports.LanguageServiceClient = void 0;
/* global window */
const gax = require("google-gax");
const path = require("path");
/**
* Client JSON configuration object, loaded from
* `src/v1beta2/language_service_client_config.json`.
* This file defines retry strategy and timeouts for all API methods in this library.
*/
const gapicConfig = require("./language_service_client_config.json");

@@ -59,5 +65,5 @@ const version = require('../../../package.json').version;

* API remote host.
* @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
* TODO(@alexander-fenster): link to gax documentation.
* @param {boolean} fallback - Use HTTP fallback mode.
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
* Follows the structure of {@link gapicConfig}.
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
* In fallback mode, a special browser-compatible transport implementation is used

@@ -82,3 +88,3 @@ * instead of gRPC transport. In browser context (if the `window` object is defined)

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';
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');
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);

@@ -85,0 +91,0 @@ // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.

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

### [4.2.2](https://www.github.com/googleapis/nodejs-language/compare/v4.2.1...v4.2.2) (2021-03-07)
### Bug Fixes
* **deps:** update dependency mathjs to v9 ([#537](https://www.github.com/googleapis/nodejs-language/issues/537)) ([794f530](https://www.github.com/googleapis/nodejs-language/commit/794f530137cc79c9d834befbeaeef70e9d414bd5))
### [4.2.1](https://www.github.com/googleapis/nodejs-language/compare/v4.2.0...v4.2.1) (2020-11-07)

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

{
"name": "@google-cloud/language",
"description": "Google Cloud Natural Language API client for Node.js",
"version": "4.2.1",
"version": "4.2.2",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "author": "Google Inc",

@@ -93,4 +93,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

Samples are in the [`samples/`](https://github.com/googleapis/nodejs-language/tree/master/samples) directory. The samples' `README.md`
has instructions for running the samples.
Samples are in the [`samples/`](https://github.com/googleapis/nodejs-language/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.

@@ -114,3 +113,3 @@ | Sample | Source Code | Try it |

Client libraries targetting some end-of-life versions of Node.js are available, and
Client libraries targeting some end-of-life versions of Node.js are available, and
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).

@@ -117,0 +116,0 @@ The dist-tags follow the naming convention `legacy-(version)`.

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 not supported yet

Sorry, the diff of this file is not supported yet

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