@google-cloud/dlp 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/PACKAGE NAME?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [5.0.1](https://github.com/googleapis/google-cloud-node/compare/dlp-v5.0.0...dlp-v5.0.1) (2023-09-06)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4589](https://github.com/googleapis/google-cloud-node/issues/4589)) ([07967ad](https://github.com/googleapis/google-cloud-node/commit/07967add1b5fc28b548cf74721b595ea0ba90d5b))
|
|
13
|
+
|
|
7
14
|
## [5.0.0](https://github.com/googleapis/google-cloud-node/compare/dlp-v4.4.3...dlp-v5.0.0) (2023-08-06)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -65,8 +65,7 @@ export declare class DlpServiceClient {
|
|
|
65
65
|
* API remote host.
|
|
66
66
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
67
67
|
* Follows the structure of {@link gapicConfig}.
|
|
68
|
-
* @param {boolean
|
|
69
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
68
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
70
69
|
* For more information, please check the
|
|
71
70
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
72
71
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -74,7 +73,7 @@ export declare class DlpServiceClient {
|
|
|
74
73
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
75
74
|
* ```
|
|
76
75
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
77
|
-
* const client = new DlpServiceClient({fallback:
|
|
76
|
+
* const client = new DlpServiceClient({fallback: true}, gax);
|
|
78
77
|
* ```
|
|
79
78
|
*/
|
|
80
79
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -68,8 +68,7 @@ class DlpServiceClient {
|
|
|
68
68
|
* API remote host.
|
|
69
69
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
70
70
|
* Follows the structure of {@link gapicConfig}.
|
|
71
|
-
* @param {boolean
|
|
72
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
71
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
73
72
|
* For more information, please check the
|
|
74
73
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
75
74
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -77,7 +76,7 @@ class DlpServiceClient {
|
|
|
77
76
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
78
77
|
* ```
|
|
79
78
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
80
|
-
* const client = new DlpServiceClient({fallback:
|
|
79
|
+
* const client = new DlpServiceClient({fallback: true}, gax);
|
|
81
80
|
* ```
|
|
82
81
|
*/
|
|
83
82
|
constructor(opts, gaxInstance) {
|
|
@@ -135,7 +134,7 @@ class DlpServiceClient {
|
|
|
135
134
|
if (!opts.fallback) {
|
|
136
135
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
|
137
136
|
}
|
|
138
|
-
else
|
|
137
|
+
else {
|
|
139
138
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
|
140
139
|
}
|
|
141
140
|
if (opts.libName && opts.libVersion) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/dlp",
|
|
3
3
|
"description": "DLP API client for Node.js",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc",
|
|
7
7
|
"engines": {
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"gapic-tools": "^0.1.8",
|
|
59
59
|
"gts": "^5.0.0",
|
|
60
60
|
"jsdoc": "^4.0.0",
|
|
61
|
-
"jsdoc-fresh": "^
|
|
62
|
-
"jsdoc-region-tag": "^
|
|
61
|
+
"jsdoc-fresh": "^3.0.0",
|
|
62
|
+
"jsdoc-region-tag": "^3.0.0",
|
|
63
63
|
"linkinator": "4.1.2",
|
|
64
64
|
"long": "^5.2.3",
|
|
65
65
|
"mocha": "^9.2.2",
|