Skip to content

Commit ae6abc9

Browse files
feat: move ts target to es2018 from es2016 (#151)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/9b55eba7-85ee-48d5-a737-8b677439db4d/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: googleapis/synthtool@1c92077
1 parent 25448e8 commit ae6abc9

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

packages/google-cloud-phishingprotection/protos/protos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
2929

3030
// Exported root namespace
31-
var $root = $protobuf.roots._google_cloud_phishing_protection_2_0_0_protos || ($protobuf.roots._google_cloud_phishing_protection_2_0_0_protos = {});
31+
var $root = $protobuf.roots._google_cloud_phishing_protection_protos || ($protobuf.roots._google_cloud_phishing_protection_protos = {});
3232

3333
$root.google = (function() {
3434

packages/google-cloud-phishingprotection/src/v1beta1/phishing_protection_service_v1_beta1_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ export class PhishingProtectionServiceV1Beta1Client {
9191
}
9292
opts.servicePath = opts.servicePath || servicePath;
9393
opts.port = opts.port || port;
94+
95+
// users can override the config from client side, like retry codes name.
96+
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
97+
// The way to override client config for Showcase API:
98+
//
99+
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
100+
// const showcaseClient = new showcaseClient({ projectId, customConfig });
94101
opts.clientConfig = opts.clientConfig || {};
95102

96103
const isBrowser = typeof window !== 'undefined';

packages/google-cloud-phishingprotection/synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-phishing-protection.git",
7-
"sha": "b5ec964526fa7a87bdfe5330e9eb7fdfc945ca49"
7+
"sha": "2a56034f5b60fcfae84afbb484a26bcc79ab9224"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "be74d3e532faa47eb59f1a0eaebde0860d1d8ab4"
22+
"sha": "1c92077459db3dc50741e878f98b08c6261181e0"
2323
}
2424
}
2525
],

packages/google-cloud-phishingprotection/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"outDir": "build",
66
"resolveJsonModule": true,
77
"lib": [
8-
"es2016",
8+
"es2018",
99
"dom"
1010
]
1111
},

0 commit comments

Comments
 (0)