Skip to content

Commit

Permalink
chore: bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Aug 4, 2023
1 parent c8a6725 commit f2ccb76
Show file tree
Hide file tree
Showing 149 changed files with 18,223 additions and 852 deletions.
2 changes: 1 addition & 1 deletion packages/gapic-node-templating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/yargs": "^17.0.10",
"c8": "^7.11.3",
"cross-env": "^7.0.3",
"gapic-tools": "^0.1.7",
"gapic-tools": "^0.1.8",
"gts": "^5.0.0",
"mocha": "^9.2.2",
"sinon": "^15.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ export async function getDistributionName(
});

const bazelLocation = join(__dirname, 'BUILD.bazel');
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if (isFile((file as any).data)) {
writeFileSync(
bazelLocation,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Buffer.from((file as any).data.content, 'base64').toString('utf8')
);
}
Expand Down Expand Up @@ -116,12 +118,12 @@ export async function compileVars(
export function getServiceName(serviceConfig: ServiceConfig) {
let serviceName = '';
if (serviceConfig?.apis) {
for (const api of serviceConfig?.apis) {
if (api.name.endsWith('Service')) {
serviceName = api.name.split('.')[api.name.split('.').length - 1];
for (const api of serviceConfig?.apis ?? []) {
if (api.name.endsWith('Service')) {
serviceName = api.name.split('.')[api.name.split('.').length - 1];
}
}
}
}

return serviceName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ describe('get bootstrap template vars', () => {
it('should get the distribution name', async () => {
const getContentStub = sinon
.stub(octokit.repos, 'getContent')
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.resolves({data: {name: 'BUILD.bazel', content: 'content'}} as any);

await getDistributionName(
Expand Down
4 changes: 1 addition & 3 deletions packages/google-ai-generativelanguage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
"pack-n-play": "^1.0.0-2",
"sinon": "^15.0.0",
"ts-loader": "^9.0.0",
"typescript": "^5.1.6",
"webpack": "^5.9.0",
"webpack-cli": "^5.0.0"
"typescript": "^5.1.6"
},
"engines": {
"node": ">=14.0.0"
Expand Down
Loading

0 comments on commit f2ccb76

Please sign in to comment.