Skip to content

Commit 71515b0

Browse files
chore: bump versions
1 parent c8a6725 commit 71515b0

152 files changed

Lines changed: 18219 additions & 1312 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/gapic-node-templating/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@types/yargs": "^17.0.10",
2929
"c8": "^7.11.3",
3030
"cross-env": "^7.0.3",
31-
"gapic-tools": "^0.1.7",
31+
"gapic-tools": "^0.1.8",
3232
"gts": "^5.0.0",
3333
"mocha": "^9.2.2",
3434
"sinon": "^15.0.0",

packages/gapic-node-templating/src/get-bootstrap-template-vars.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ export async function getDistributionName(
7474
});
7575

7676
const bazelLocation = join(__dirname, 'BUILD.bazel');
77+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7778
if (isFile((file as any).data)) {
7879
writeFileSync(
7980
bazelLocation,
81+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
8082
Buffer.from((file as any).data.content, 'base64').toString('utf8')
8183
);
8284
}
@@ -116,12 +118,12 @@ export async function compileVars(
116118
export function getServiceName(serviceConfig: ServiceConfig) {
117119
let serviceName = '';
118120
if (serviceConfig?.apis) {
119-
for (const api of serviceConfig?.apis) {
120-
if (api.name.endsWith('Service')) {
121-
serviceName = api.name.split('.')[api.name.split('.').length - 1];
121+
for (const api of serviceConfig?.apis ?? []) {
122+
if (api.name.endsWith('Service')) {
123+
serviceName = api.name.split('.')[api.name.split('.').length - 1];
124+
}
122125
}
123126
}
124-
}
125127

126128
return serviceName;
127129
}

packages/gapic-node-templating/test/get-bootstrap-template-vars.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ describe('get bootstrap template vars', () => {
106106
it('should get the distribution name', async () => {
107107
const getContentStub = sinon
108108
.stub(octokit.repos, 'getContent')
109+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
109110
.resolves({data: {name: 'BUILD.bazel', content: 'content'}} as any);
110111

111112
await getDistributionName(

packages/google-ai-generativelanguage/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@
6363
"pack-n-play": "^1.0.0-2",
6464
"sinon": "^15.0.0",
6565
"ts-loader": "^9.0.0",
66-
"typescript": "^5.1.6",
67-
"webpack": "^5.9.0",
68-
"webpack-cli": "^5.0.0"
66+
"typescript": "^5.1.6"
6967
},
7068
"engines": {
7169
"node": ">=14.0.0"

0 commit comments

Comments
 (0)