From 28ec6906ef7f32b25cefc655fe424bb5f25c369b Mon Sep 17 00:00:00 2001 From: JIscariot Date: Thu, 19 Dec 2024 19:34:39 +0300 Subject: [PATCH] nodejs: fix port for http (#502) Co-authored-by: Kirill Fomichev --- CHANGELOG.md | 2 ++ examples/typescript/package-lock.json | 6 +++--- examples/typescript/package.json | 2 +- yellowstone-grpc-client-nodejs/package-lock.json | 4 ++-- yellowstone-grpc-client-nodejs/package.json | 2 +- yellowstone-grpc-client-nodejs/src/index.ts | 2 ++ 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6381270..79a4af85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ The minor version will be incremented upon a breaking change and the patch versi ### Fixes +- nodejs: fix port for https ([#502](https://github.com/rpcpool/yellowstone-grpc/pull/502)) + ### Features ### Breaking diff --git a/examples/typescript/package-lock.json b/examples/typescript/package-lock.json index 4847d911..27d20894 100644 --- a/examples/typescript/package-lock.json +++ b/examples/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "yellowstone-grpc-client-example-ts", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "yellowstone-grpc-client-example-ts", - "version": "2.0.0", + "version": "2.0.1", "license": "Apache-2.0", "dependencies": { "@triton-one/yellowstone-grpc": "file:../../yellowstone-grpc-client-nodejs", @@ -19,7 +19,7 @@ }, "../../yellowstone-grpc-client-nodejs": { "name": "@triton-one/yellowstone-grpc", - "version": "1.4.0", + "version": "1.4.1", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.8.0" diff --git a/examples/typescript/package.json b/examples/typescript/package.json index 61b4219b..128c4e94 100644 --- a/examples/typescript/package.json +++ b/examples/typescript/package.json @@ -1,6 +1,6 @@ { "name": "yellowstone-grpc-client-example-ts", - "version": "2.0.0", + "version": "2.0.1", "license": "Apache-2.0", "author": "Triton One", "main": "dist/client.js", diff --git a/yellowstone-grpc-client-nodejs/package-lock.json b/yellowstone-grpc-client-nodejs/package-lock.json index 1cb8f146..9c459af3 100644 --- a/yellowstone-grpc-client-nodejs/package-lock.json +++ b/yellowstone-grpc-client-nodejs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@triton-one/yellowstone-grpc", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@triton-one/yellowstone-grpc", - "version": "1.4.0", + "version": "1.4.1", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "^1.8.0" diff --git a/yellowstone-grpc-client-nodejs/package.json b/yellowstone-grpc-client-nodejs/package.json index 2f0f6703..3dd1d4e2 100644 --- a/yellowstone-grpc-client-nodejs/package.json +++ b/yellowstone-grpc-client-nodejs/package.json @@ -1,6 +1,6 @@ { "name": "@triton-one/yellowstone-grpc", - "version": "1.4.0", + "version": "1.4.1", "license": "Apache-2.0", "author": "Triton One", "description": "Yellowstone gRPC Geyser Node.js Client", diff --git a/yellowstone-grpc-client-nodejs/src/index.ts b/yellowstone-grpc-client-nodejs/src/index.ts index 97513da3..47e1b71c 100644 --- a/yellowstone-grpc-client-nodejs/src/index.ts +++ b/yellowstone-grpc-client-nodejs/src/index.ts @@ -106,8 +106,10 @@ export default class Client { switch (endpointURL.protocol) { case "https:": port = "443"; + break; case "http:": port = "80"; + break; } }