Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/google-cloud-translate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
1. [Select or create a Cloud Platform project][projects].
1. [Enable billing for your project][billing].
1. [Enable the Cloud Translation API][enable_api].
1. [Set up authentication][auth] so you can access the
1. [Set up authentication with a service account][auth] so you can access the
API from your local workstation.

### Installing the client library
Expand Down Expand Up @@ -211,4 +211,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=translate.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
[auth]: https://cloud.google.com/docs/authentication/getting-started
50 changes: 25 additions & 25 deletions packages/google-cloud-translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=14.0.0"
"node": ">=18"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,36 +49,36 @@
"test": "c8 mocha build/test"
},
"dependencies": {
"@google-cloud/common": "^5.0.0",
"@google-cloud/promisify": "^4.0.0",
"@google-cloud/common": "^6.0.0",
"@google-cloud/promisify": "^5.0.0",
"arrify": "^2.0.0",
"extend": "^3.0.2",
"google-gax": "^4.0.3",
"google-gax": "^5.0.0-rc.3",
"is-html": "^2.0.0"
},
"devDependencies": {
"@types/extend": "^3.0.0",
"@types/mocha": "^9.0.0",
"@types/node": "^22.0.0",
"@types/proxyquire": "^1.3.28",
"@types/request": "^2.47.1",
"@types/sinon": "^17.0.0",
"c8": "^9.0.0",
"codecov": "^3.0.2",
"gapic-tools": "^0.4.0",
"google-auth-library": "^9.0.0",
"gts": "^5.0.0",
"http2spy": "^2.0.0",
"jsdoc": "^4.0.0",
"@types/extend": "^3.0.4",
"@types/mocha": "^10.0.10",
"@types/node": "^22.13.10",
"@types/proxyquire": "^1.3.31",
"@types/request": "^2.48.12",
"@types/sinon": "^17.0.4",
"c8": "^10.1.3",
"codecov": "^3.8.3",
"gapic-tools": "^1.0.1",
"google-auth-library": "^10.0.0-rc.1",
"gts": "^6.0.2",
"http2spy": "^2.0.2",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^3.0.0",
"jsdoc-region-tag": "^3.0.0",
"linkinator": "4.1.2",
"long": "^5.2.3",
"mocha": "^9.2.2",
"pack-n-play": "^2.0.0",
"proxyquire": "^2.0.1",
"sinon": "^18.0.0",
"typescript": "^5.1.6"
"linkinator": "^6.1.2",
"long": "^5.3.1",
"mocha": "^11.1.0",
"pack-n-play": "^3.0.0",
"proxyquire": "^2.1.3",
"sinon": "^19.0.2",
"typescript": "^5.8.2"
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-translate"
}
}
3 changes: 0 additions & 3 deletions packages/google-cloud-translate/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/google-cloud-translate/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"!test/"
],
"engines": {
"node": ">=14.0.0"
"node": ">=18"
},
"scripts": {
"test": "mocha --recursive --timeout 240000"
Expand Down
6 changes: 6 additions & 0 deletions packages/google-cloud-translate/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ describe('Translate v2', () => {
});

it('should make the correct request', done => {
translate.request = () => {
done();
};
const fakeOptions = {
uri: '/test',
a: 'b',
Expand Down Expand Up @@ -601,6 +604,9 @@ describe('Translate v2', () => {
});

it('should make the correct request', done => {
translate.request = () => {
done();
};
const userAgent = 'user-agent/0.0.0';

const getUserAgentFn = fakeUtil.getUserAgentFromPackageJson;
Expand Down
6 changes: 4 additions & 2 deletions packages/google-cloud-translate/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"outDir": "build",
"resolveJsonModule": true,
"lib": [
"es2018",
"es2023",
"dom"
]
},
Expand All @@ -14,6 +14,8 @@
"src/**/*.ts",
"test/*.ts",
"test/**/*.ts",
"system-test/*.ts"
"system-test/*.ts",
"src/**/*.json",
"protos/**/*.json",
]
}