@google-cloud/phishing-protection
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -57,4 +57,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 | ||
@@ -67,3 +66,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 PhishingProtectionServiceV1Beta1Client({fallback: 'rest'}, gax); | ||
* const client = new PhishingProtectionServiceV1Beta1Client({fallback: true}, gax); | ||
* ``` | ||
@@ -70,0 +69,0 @@ */ |
@@ -63,4 +63,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 | ||
@@ -73,3 +72,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 PhishingProtectionServiceV1Beta1Client({fallback: 'rest'}, gax); | ||
* const client = new PhishingProtectionServiceV1Beta1Client({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,9 @@ # Changelog | ||
## [4.0.1](https://github.com/googleapis/google-cloud-node/compare/phishing-protection-v4.0.0...phishing-protection-v4.0.1) (2023-09-06) | ||
### Bug Fixes | ||
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4587](https://github.com/googleapis/google-cloud-node/issues/4587)) ([e3b1e7e](https://github.com/googleapis/google-cloud-node/commit/e3b1e7e46d666abb4df28c3cd69e97c08b88445a)) | ||
## [4.0.0](https://github.com/googleapis/google-cloud-node/compare/phishing-protection-v3.0.8...phishing-protection-v4.0.0) (2023-08-06) | ||
@@ -9,0 +16,0 @@ |
@@ -9,3 +9,3 @@ { | ||
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-phishingprotection", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"author": "Google LLC", | ||
@@ -44,4 +44,4 @@ "description": "Phishing Protection API client for Node.js", | ||
"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", | ||
@@ -48,0 +48,0 @@ "long": "^5.2.3", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1237855
0
21639