@google-cloud/web-risk
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1078,2 +1078,6 @@ { | ||
"id": 8 | ||
}, | ||
"proto3Optional": { | ||
"type": "bool", | ||
"id": 17 | ||
} | ||
@@ -1314,3 +1318,3 @@ }, | ||
"options": { | ||
"default": false | ||
"default": true | ||
} | ||
@@ -1317,0 +1321,0 @@ }, |
@@ -39,2 +39,3 @@ { | ||
"CreateSubmission": { | ||
"timeout_millis": 60000, | ||
"retry_codes_name": "non_idempotent", | ||
@@ -41,0 +42,0 @@ "retry_params_name": "default" |
@@ -78,11 +78,14 @@ "use strict"; | ||
opts.port = opts.port || port; | ||
// users can override the config from client side, like retry codes name. | ||
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546 | ||
// The way to override client config for Showcase API: | ||
// | ||
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}} | ||
// const showcaseClient = new showcaseClient({ projectId, customConfig }); | ||
opts.clientConfig = opts.clientConfig || {}; | ||
const isBrowser = typeof window !== 'undefined'; | ||
if (isBrowser) { | ||
opts.fallback = true; | ||
} | ||
// If we are in browser, we are already using fallback because of the | ||
// "browser" field in package.json. | ||
// But if we were explicitly requested to use fallback, let's do it now. | ||
this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax; | ||
// If we're running in browser, it's OK to omit `fallback` since | ||
// google-gax has `browser` field in its `package.json`. | ||
// For Electron (which does not respect `browser` field), | ||
// pass `{fallback: true}` to the WebRiskServiceClient constructor. | ||
this._gaxModule = opts.fallback ? gax.fallback : gax; | ||
// Create a `gaxGrpc` object, with any grpc-specific options | ||
@@ -89,0 +92,0 @@ // sent to the client. |
@@ -79,11 +79,14 @@ "use strict"; | ||
opts.port = opts.port || port; | ||
// users can override the config from client side, like retry codes name. | ||
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546 | ||
// The way to override client config for Showcase API: | ||
// | ||
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}} | ||
// const showcaseClient = new showcaseClient({ projectId, customConfig }); | ||
opts.clientConfig = opts.clientConfig || {}; | ||
const isBrowser = typeof window !== 'undefined'; | ||
if (isBrowser) { | ||
opts.fallback = true; | ||
} | ||
// If we are in browser, we are already using fallback because of the | ||
// "browser" field in package.json. | ||
// But if we were explicitly requested to use fallback, let's do it now. | ||
this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax; | ||
// If we're running in browser, it's OK to omit `fallback` since | ||
// google-gax has `browser` field in its `package.json`. | ||
// For Electron (which does not respect `browser` field), | ||
// pass `{fallback: true}` to the WebRiskServiceV1Beta1Client constructor. | ||
this._gaxModule = opts.fallback ? gax.fallback : gax; | ||
// Create a `gaxGrpc` object, with any grpc-specific options | ||
@@ -90,0 +93,0 @@ // sent to the client. |
@@ -7,2 +7,12 @@ # Changelog | ||
### [2.0.1](https://www.github.com/googleapis/nodejs-web-risk/compare/v2.0.0...v2.0.1) (2020-06-29) | ||
### Bug Fixes | ||
* add CreateSubmission to webrisk/v1 config ([#172](https://www.github.com/googleapis/nodejs-web-risk/issues/172)) ([e7851f5](https://www.github.com/googleapis/nodejs-web-risk/commit/e7851f59de6fa8a83a1e026995304ac05cab4321)) | ||
* handle fallback option properly ([#170](https://www.github.com/googleapis/nodejs-web-risk/issues/170)) ([82d2684](https://www.github.com/googleapis/nodejs-web-risk/commit/82d2684cd9c04b3bdc9edc50a79854cebf9a4990)) | ||
* update node issue template ([#171](https://www.github.com/googleapis/nodejs-web-risk/issues/171)) ([5a93c38](https://www.github.com/googleapis/nodejs-web-risk/commit/5a93c3880a09bbc70160e45d68e1dea547f888c4)) | ||
* version rearrange ([#163](https://www.github.com/googleapis/nodejs-web-risk/issues/163)) ([934b63a](https://www.github.com/googleapis/nodejs-web-risk/commit/934b63aa0163c84aceb27d306e1f656bcb2d8afd)) | ||
## [2.0.0](https://www.github.com/googleapis/nodejs-web-risk/compare/v1.7.0...v2.0.0) (2020-05-12) | ||
@@ -9,0 +19,0 @@ |
{ | ||
"repository": "googleapis/nodejs-web-risk", | ||
"name": "@google-cloud/web-risk", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": "Google LLC", | ||
@@ -41,3 +41,3 @@ "description": "Web Risk API client for Node.js", | ||
"linkinator": "^2.0.0", | ||
"mocha": "^7.0.0", | ||
"mocha": "^8.0.0", | ||
"null-loader": "^4.0.0", | ||
@@ -44,0 +44,0 @@ "pack-n-play": "^1.0.0-2", |
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 not supported yet
Sorry, the diff of this file is not supported yet
1656860
26471