Skip to content

Commit 8abbb46

Browse files
feat: move ts target to es2018 from es2016 (#348)
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 687f3a5 commit 8abbb46

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

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

+1-1
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_os_login_3_0_0_protos || ($protobuf.roots._google_cloud_os_login_3_0_0_protos = {});
31+
var $root = $protobuf.roots._google_cloud_os_login_protos || ($protobuf.roots._google_cloud_os_login_protos = {});
3232

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

packages/google-cloud-oslogin/src/v1/os_login_service_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ export class OsLoginServiceClient {
9393
}
9494
opts.servicePath = opts.servicePath || servicePath;
9595
opts.port = opts.port || port;
96+
97+
// users can override the config from client side, like retry codes name.
98+
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
99+
// The way to override client config for Showcase API:
100+
//
101+
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
102+
// const showcaseClient = new showcaseClient({ projectId, customConfig });
96103
opts.clientConfig = opts.clientConfig || {};
97104

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

packages/google-cloud-oslogin/src/v1beta/os_login_service_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ export class OsLoginServiceClient {
9393
}
9494
opts.servicePath = opts.servicePath || servicePath;
9595
opts.port = opts.port || port;
96+
97+
// users can override the config from client side, like retry codes name.
98+
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
99+
// The way to override client config for Showcase API:
100+
//
101+
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
102+
// const showcaseClient = new showcaseClient({ projectId, customConfig });
96103
opts.clientConfig = opts.clientConfig || {};
97104

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

packages/google-cloud-oslogin/synth.metadata

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-os-login.git",
7-
"sha": "dd4328ea06e8320f029953039118e05cb9242a50"
7+
"sha": "9313894fbae15b9693155145ac708886f0676fe8"
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-oslogin/tsconfig.json

+1-1
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)