Skip to content

Commit a1c34d6

Browse files
authored
chore: update gapic templating (#6209)
1 parent 40c6b58 commit a1c34d6

4 files changed

Lines changed: 20 additions & 18 deletions

File tree

packages/gapic-node-templating/__snapshots__/templating.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ exports['tests for templates it should create the templates in the directory 3']
4848
"license": "Apache-2.0",
4949
"author": "Google LLC",
5050
"engines": {
51-
"node": ">=14.0.0"
51+
"node": ">=18.0.0"
5252
},
5353
"files": [
5454
"*.js"

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import {writeFileSync} from 'fs';
2020

2121
const LANGUAGE = 'nodejs';
2222

23+
const MIXINS = ['google.cloud.location.Locations', 'google.iam.v1.IAMPolicy', 'google.longrunning.Operations']
24+
2325
export interface GHFile {
2426
content: string | undefined;
2527
}
@@ -119,7 +121,7 @@ export function getServiceName(serviceConfig: ServiceConfig) {
119121
let serviceName = '';
120122
if (serviceConfig?.apis) {
121123
for (const api of serviceConfig?.apis ?? []) {
122-
if (api.name.endsWith('Service')) {
124+
if (!(MIXINS.includes(api.name))) {
123125
serviceName = api.name.split('.')[api.name.split('.').length - 1];
124126
}
125127
}

packages/gapic-node-templating/templates/bootstrap-templates/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,26 @@
4545
"prelint": "cd samples; npm link ../; npm i"
4646
},
4747
"dependencies": {
48-
"google-gax": "^4.0.3"
48+
"google-gax": "^5.1.0-rc"
4949
},
5050
"devDependencies": {
51-
"@types/mocha": "^9.0.0",
52-
"@types/node": "^22.0.0",
53-
"@types/sinon": "^17.0.0",
54-
"c8": "^9.0.0",
55-
"gapic-tools": "^0.4.0",
56-
"gts": "^5.0.0",
57-
"jsdoc": "^4.0.0",
51+
"@types/mocha": "^10.0.10",
52+
"@types/node": "^22.13.9",
53+
"@types/sinon": "^17.0.4",
54+
"c8": "^10.1.3",
55+
"gapic-tools": "^1.0.0",
56+
"gts": "^6.0.2",
57+
"jsdoc": "^4.0.4",
5858
"jsdoc-fresh": "^3.0.0",
5959
"jsdoc-region-tag": "^3.0.0",
60-
"linkinator": "4.1.2",
61-
"long": "^5.2.3",
62-
"mocha": "^9.2.2",
63-
"pack-n-play": "^2.0.0",
64-
"sinon": "^18.0.0",
65-
"typescript": "^5.1.6"
60+
"linkinator": "^6.1.2",
61+
"long": "^5.3.1",
62+
"mocha": "^11.1.0",
63+
"pack-n-play": "^3.0.0",
64+
"sinon": "^19.0.2",
65+
"typescript": "^5.8.2"
6666
},
6767
"engines": {
68-
"node": ">=14.0.0"
68+
"node": ">=18.0.0"
6969
}
7070
}

packages/gapic-node-templating/templates/bootstrap-templates/samples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "Apache-2.0",
55
"author": "Google LLC",
66
"engines": {
7-
"node": ">=14.0.0"
7+
"node": ">=18.0.0"
88
},
99
"files": [
1010
"*.js"

0 commit comments

Comments
 (0)