@moneypot/hub 1.20.1 → 1.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ export const NODE_ENV = getEnvVariable("NODE_ENV", (value) => {
13
13
  });
14
14
  export const PORT = getEnvVariable("PORT", (value) => {
15
15
  const parsed = Number.parseInt(value, 10);
16
- if (!parsed || parsed <= 0 || !Number.isSafeInteger(parsed)) {
16
+ if (!Number.isSafeInteger(parsed) || parsed < 0 || isNaN(parsed)) {
17
17
  const DEFAULT_PORT = 4000;
18
18
  console.warn(`Warning: PORT missing or invalid, defaulting to ${DEFAULT_PORT}`);
19
19
  return DEFAULT_PORT;
@@ -51,7 +51,7 @@ async function mpGetExperienceTransfer(graphqlClient, id) {
51
51
  return mpTransfer;
52
52
  }
53
53
  export function startWebsocketProcessor({ casinoId, graphqlUrl, signal, controllerId, apiKey, pool, }) {
54
- logger.info(`Starting websocket processor for ${graphqlUrl} using apiKey ${apiKey}`);
54
+ logger.info(`Starting websocket processor for ${graphqlUrl}`);
55
55
  const client = createWebsocketClient({
56
56
  url: httpToWs(new URL(graphqlUrl)).toString(),
57
57
  connectionParams: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.20.1",
3
+ "version": "1.20.3",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [