@google-cloud/web-risk
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -35,3 +35,3 @@ import * as gax from 'google-gax'; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -59,7 +59,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* 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 | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -66,0 +65,0 @@ constructor(opts?: ClientOptions); |
@@ -43,3 +43,3 @@ "use strict"; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -67,7 +67,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* 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 | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -74,0 +73,0 @@ constructor(opts) { |
@@ -32,3 +32,3 @@ import * as gax from 'google-gax'; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -56,7 +56,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* 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 | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -63,0 +62,0 @@ constructor(opts?: ClientOptions); |
@@ -43,3 +43,3 @@ "use strict"; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -67,7 +67,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* 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 | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -74,0 +73,0 @@ constructor(opts) { |
@@ -7,2 +7,9 @@ # Changelog | ||
## [3.1.0](https://github.com/googleapis/nodejs-web-risk/compare/v3.0.0...v3.1.0) (2022-06-29) | ||
### Features | ||
* support regapic LRO ([#331](https://github.com/googleapis/nodejs-web-risk/issues/331)) ([265c092](https://github.com/googleapis/nodejs-web-risk/commit/265c092562ea66e985950c27ae8dd030b2c45925)) | ||
## [3.0.0](https://github.com/googleapis/nodejs-web-risk/compare/v2.2.0...v3.0.0) (2022-05-17) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"repository": "googleapis/nodejs-web-risk", | ||
"name": "@google-cloud/web-risk", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"author": "Google LLC", | ||
@@ -38,4 +38,4 @@ "description": "Web Risk API client for Node.js", | ||
"jsdoc": "^3.5.5", | ||
"jsdoc-fresh": "^1.0.1", | ||
"jsdoc-region-tag": "^1.0.2", | ||
"jsdoc-fresh": "^2.0.0", | ||
"jsdoc-region-tag": "^2.0.0", | ||
"linkinator": "^2.0.0", | ||
@@ -42,0 +42,0 @@ "mocha": "^9.2.2", |
@@ -66,3 +66,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
// Create the WebRisk client library. | ||
const {WebRiskServiceClient} = require('@google-cloud/web-risk'); | ||
const {WebRiskServiceClient, protos} = require('@google-cloud/web-risk'); | ||
const client = new WebRiskServiceClient(); | ||
@@ -74,3 +74,7 @@ | ||
uri: uri, | ||
threatTypes: ['MALWARE', 'SOCIAL_ENGINEERING', 'UNWANTED_SOFTWARE'], | ||
threatTypes: [ | ||
protos.google.cloud.webrisk.v1.ThreatType.MALWARE, | ||
protos.google.cloud.webrisk.v1.ThreatType.SOCIAL_ENGINEERING, | ||
protos.google.cloud.webrisk.v1.ThreatType.UNWANTED_SOFTWARE, | ||
], | ||
}; | ||
@@ -77,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1682020
170
26834