Huge News!Announcing our $40M Series B led by Abstract Ventures.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 6.0.0 to 6.1.0

build/protos/google/cloud/language/v2/language_service.proto

4

build/src/index.d.ts
import * as v1 from './v1';
import * as v1beta2 from './v1beta2';
import * as v2 from './v2';
declare const LanguageServiceClient: typeof v1.LanguageServiceClient;
type LanguageServiceClient = v1.LanguageServiceClient;
export { v1, v1beta2, LanguageServiceClient };
export { v1, v1beta2, v2, LanguageServiceClient };
declare const _default: {
v1: typeof v1;
v1beta2: typeof v1beta2;
v2: typeof v2;
LanguageServiceClient: typeof v1.LanguageServiceClient;

@@ -10,0 +12,0 @@ };

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.protos = exports.LanguageServiceClient = exports.v1beta2 = exports.v1 = void 0;
exports.protos = exports.LanguageServiceClient = exports.v2 = exports.v1beta2 = exports.v1 = void 0;
const v1 = require("./v1");

@@ -26,7 +26,9 @@ exports.v1 = v1;

exports.v1beta2 = v1beta2;
const v2 = require("./v2");
exports.v2 = v2;
const LanguageServiceClient = v1.LanguageServiceClient;
exports.LanguageServiceClient = LanguageServiceClient;
exports.default = { v1, v1beta2, LanguageServiceClient };
exports.default = { v1, v1beta2, v2, LanguageServiceClient };
const protos = require("../protos/protos");
exports.protos = protos;
//# sourceMappingURL=index.js.map

@@ -55,4 +55,3 @@ import type * as gax from 'google-gax';

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -65,3 +64,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new LanguageServiceClient({fallback: 'rest'}, gax);
* const client = new LanguageServiceClient({fallback: true}, gax);
* ```

@@ -68,0 +67,0 @@ */

@@ -64,4 +64,3 @@ "use strict";

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -74,3 +73,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new LanguageServiceClient({fallback: 'rest'}, gax);
* const client = new LanguageServiceClient({fallback: true}, gax);
* ```

@@ -132,3 +131,3 @@ */

}
else if (opts.fallback === 'rest') {
else {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);

@@ -135,0 +134,0 @@ }

@@ -55,4 +55,3 @@ import type * as gax from 'google-gax';

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -65,3 +64,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new LanguageServiceClient({fallback: 'rest'}, gax);
* const client = new LanguageServiceClient({fallback: true}, gax);
* ```

@@ -68,0 +67,0 @@ */

@@ -64,4 +64,3 @@ "use strict";

* Follows the structure of {@link gapicConfig}.
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
* For more information, please check the

@@ -74,3 +73,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.

* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
* const client = new LanguageServiceClient({fallback: 'rest'}, gax);
* const client = new LanguageServiceClient({fallback: true}, gax);
* ```

@@ -132,3 +131,3 @@ */

}
else if (opts.fallback === 'rest') {
else {
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);

@@ -135,0 +134,0 @@ }

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

## [6.1.0](https://github.com/googleapis/google-cloud-node/compare/language-v6.0.0...language-v6.1.0) (2023-09-06)
### Features
* [language] Add support for the v2 API ([#4538](https://github.com/googleapis/google-cloud-node/issues/4538)) ([f6ae7e4](https://github.com/googleapis/google-cloud-node/commit/f6ae7e464084f5d6f931e43b19479fa6219427f3))
### Bug Fixes
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4586](https://github.com/googleapis/google-cloud-node/issues/4586)) ([4b18686](https://github.com/googleapis/google-cloud-node/commit/4b186867323b8b15469bf5e1cb890bf703b531b3))
* **deps:** Update dependency @google-cloud/automl to v4 ([#4545](https://github.com/googleapis/google-cloud-node/issues/4545)) ([ccf817a](https://github.com/googleapis/google-cloud-node/commit/ccf817a2ce9f54b6cab93920a29b27fa30105846))
## [6.0.0](https://github.com/googleapis/google-cloud-node/compare/language-v5.3.0...language-v6.0.0) (2023-08-06)

@@ -9,0 +22,0 @@

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

@@ -66,4 +66,4 @@ "author": "Google Inc",

"jsdoc": "^4.0.0",
"jsdoc-fresh": "^2.0.0",
"jsdoc-region-tag": "^2.0.0",
"jsdoc-fresh": "^3.0.0",
"jsdoc-region-tag": "^3.0.0",
"linkinator": "4.1.2",

@@ -70,0 +70,0 @@ "long": "^5.2.3",

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

| Language_service.moderate_text | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/generated/v1beta2/language_service.moderate_text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/generated/v1beta2/language_service.moderate_text.js,packages/google-cloud-language/samples/README.md) |
| Language_service.analyze_entities | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/generated/v2/language_service.analyze_entities.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/generated/v2/language_service.analyze_entities.js,packages/google-cloud-language/samples/README.md) |
| Language_service.analyze_sentiment | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/generated/v2/language_service.analyze_sentiment.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/generated/v2/language_service.analyze_sentiment.js,packages/google-cloud-language/samples/README.md) |
| Language_service.annotate_text | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/generated/v2/language_service.annotate_text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/generated/v2/language_service.annotate_text.js,packages/google-cloud-language/samples/README.md) |
| Language_service.classify_text | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/generated/v2/language_service.classify_text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/generated/v2/language_service.classify_text.js,packages/google-cloud-language/samples/README.md) |
| Language_service.moderate_text | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/generated/v2/language_service.moderate_text.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/generated/v2/language_service.moderate_text.js,packages/google-cloud-language/samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-language/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-language/samples/quickstart.js,packages/google-cloud-language/samples/README.md) |

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

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