Skip to content

Commit

Permalink
nodejs: fix port for http (#502)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Fomichev <[email protected]>
  • Loading branch information
JIscariot and fanatid committed Dec 19, 2024
1 parent b838efc commit cd9a27e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/typescript/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions yellowstone-grpc-client-nodejs/package-lock.json

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

2 changes: 1 addition & 1 deletion yellowstone-grpc-client-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"publish": false,
"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",
Expand Down
2 changes: 2 additions & 0 deletions yellowstone-grpc-client-nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ export default class Client {
switch (endpointURL.protocol) {
case "https:":
port = "443";
break;
case "http:":
port = "80";
break;
}
}

Expand Down

0 comments on commit cd9a27e

Please sign in to comment.