@google-cloud/policy-troubleshooter
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -56,4 +56,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 | ||
@@ -66,3 +65,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 IamCheckerClient({fallback: 'rest'}, gax); | ||
* const client = new IamCheckerClient({fallback: true}, gax); | ||
* ``` | ||
@@ -69,0 +68,0 @@ */ |
@@ -65,4 +65,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 | ||
@@ -75,3 +74,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 IamCheckerClient({fallback: 'rest'}, gax); | ||
* const client = new IamCheckerClient({fallback: true}, gax); | ||
* ``` | ||
@@ -133,3 +132,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -136,0 +135,0 @@ } |
# Changelog | ||
## [3.1.1](https://github.com/googleapis/google-cloud-node/compare/policy-troubleshooter-v3.1.0...policy-troubleshooter-v3.1.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)) | ||
* **deps:** Update dependency @google-cloud/local-auth to v3 ([#4546](https://github.com/googleapis/google-cloud-node/issues/4546)) ([f2beef4](https://github.com/googleapis/google-cloud-node/commit/f2beef407ce694af7133d0013221c11e7f093a59)) | ||
## [3.1.0](https://github.com/googleapis/google-cloud-node/compare/policy-troubleshooter-v3.0.0...policy-troubleshooter-v3.1.0) (2023-08-09) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "@google-cloud/policy-troubleshooter", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Policytroubleshooter client for Node.js", | ||
@@ -59,4 +59,4 @@ "repository": { | ||
"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", | ||
@@ -63,0 +63,0 @@ "long": "^5.2.3", |
1525987
26504