Skip to content

Commit 63e888c

Browse files
badsyntaxRichard Willis
and
Richard Willis
authored
Update packages and examples (#67)
Co-authored-by: Richard Willis <[email protected]>
1 parent d90db35 commit 63e888c

File tree

18 files changed

+8239
-11485
lines changed

18 files changed

+8239
-11485
lines changed

examples/gradle-ts-protoc-gen/package-lock.json

+1,469-1,821
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/gradle-ts-protoc-gen/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222
"author": "",
2323
"license": "ISC",
2424
"dependencies": {
25-
"@grpc/grpc-js": "^1.3.1",
26-
"google-protobuf": "^3.17.0"
25+
"@grpc/grpc-js": "^1.6.8",
26+
"google-protobuf": "^3.21.0"
2727
},
2828
"devDependencies": {
29-
"@tsconfig/node12": "^1.0.7",
30-
"@types/google-protobuf": "^3.15.2",
29+
"@tsconfig/node12": "^1.0.11",
30+
"@types/google-protobuf": "^3.15.6",
3131
"@types/node": "^15.0.3",
32-
"@typescript-eslint/eslint-plugin": "^4.23.0",
33-
"@typescript-eslint/parser": "^4.23.0",
34-
"eslint": "^7.26.0",
35-
"eslint-config-prettier": "^8.3.0",
32+
"@typescript-eslint/eslint-plugin": "^5.31.0",
33+
"@typescript-eslint/parser": "^5.31.0",
34+
"eslint": "^8.20.0",
35+
"eslint-config-prettier": "^8.5.0",
3636
"eslint-plugin-node": "^11.1.0",
37-
"eslint-plugin-prettier": "^3.4.0",
38-
"grpc-tools": "^1.11.1",
39-
"prettier": "^2.3.0",
37+
"eslint-plugin-prettier": "^4.2.1",
38+
"grpc-tools": "^1.11.2",
39+
"prettier": "^2.7.1",
4040
"ts-protoc-gen": "^0.15.0",
41-
"typescript": "^4.2.4"
41+
"typescript": "^4.7.4"
4242
},
4343
"eslintConfig": {
4444
"ignorePatterns": [

examples/grpc-proto-loader/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function doUnaryCall() {
4848
{
4949
clientMessage: 'Message from client',
5050
},
51-
(error?: grpc.ServiceError, serverMessage?: ServerMessage) => {
51+
(error?: grpc.ServiceError | null, serverMessage?: ServerMessage) => {
5252
if (error) {
5353
console.error(error.message);
5454
} else if (serverMessage) {
@@ -70,7 +70,7 @@ function doServerStreamingCall() {
7070
}
7171

7272
function doClientStreamingCall() {
73-
const stream = client.clientStreamingCall((error?: grpc.ServiceError) => {
73+
const stream = client.clientStreamingCall((error?: grpc.ServiceError | null) => {
7474
if (error) {
7575
console.error(error.message);
7676
}

0 commit comments

Comments
 (0)