@moneypot/hub 1.17.0-dev.3 → 1.17.0

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.
@@ -25,7 +25,7 @@ export const IsolationLevel = {
25
25
  };
26
26
  export async function withPgPoolTransaction(pool, callbackOrIsolationLevel, callbackOrRetryCount, retryCountOrMaxRetries = 0, maxRetries = 3) {
27
27
  let callback;
28
- let isolationLevel = IsolationLevel.SERIALIZABLE;
28
+ let isolationLevel = IsolationLevel.READ_COMMITTED;
29
29
  let retryCount = 0;
30
30
  if (typeof callbackOrIsolationLevel === "function") {
31
31
  callback = callbackOrIsolationLevel;
@@ -34,4 +34,4 @@ export const HubPreimageHashFieldPlugin = extendSchema((build) => {
34
34
  },
35
35
  },
36
36
  };
37
- });
37
+ }, "HubPreimageHashFieldPlugin");
@@ -70,4 +70,4 @@ export const HubRevealHashChainPlugin = extendSchema((build) => {
70
70
  },
71
71
  },
72
72
  };
73
- });
73
+ }, "HubRevealHashChainPlugin");
@@ -114,7 +114,7 @@ export const HubChatCreateSystemMessagePlugin = extendSchema((build) => {
114
114
  },
115
115
  },
116
116
  };
117
- });
117
+ }, "HubChatCreateSystemMessagePlugin");
118
118
  function normalizeSystemMessageBody(body) {
119
119
  return body
120
120
  .normalize("NFC")
@@ -221,7 +221,7 @@ export const HubChatCreateUserMessagePlugin = extendSchema((build) => {
221
221
  },
222
222
  },
223
223
  };
224
- });
224
+ }, "HubChatCreateUserMessagePlugin");
225
225
  function normalizeUserMessageBody(body) {
226
226
  return (body
227
227
  .normalize("NFC")
@@ -224,4 +224,4 @@ export const HubChatModManagementPlugin = extendSchema((build) => {
224
224
  },
225
225
  },
226
226
  };
227
- });
227
+ }, "HubChatModManagementPlugin");
@@ -183,4 +183,4 @@ export const HubChatMuteUserPlugin = extendSchema((build) => {
183
183
  },
184
184
  },
185
185
  };
186
- });
186
+ }, "HubChatMuteUserPlugin");
@@ -130,4 +130,4 @@ export const HubChatSubscriptionPlugin = extendSchema((build) => {
130
130
  },
131
131
  },
132
132
  };
133
- });
133
+ }, "HubChatSubscriptionPlugin");
@@ -143,4 +143,4 @@ export const HubChatUnmuteUserPlugin = extendSchema((build) => {
143
143
  },
144
144
  },
145
145
  };
146
- });
146
+ }, "HubChatUnmuteUserPlugin");
@@ -156,4 +156,4 @@ export const HubAddCasinoPlugin = makeExtendSchemaPlugin((build) => {
156
156
  },
157
157
  },
158
158
  };
159
- });
159
+ }, "HubAddCasinoPlugin");
@@ -231,4 +231,4 @@ export const HubAuthenticatePlugin = extendSchema(() => {
231
231
  },
232
232
  },
233
233
  };
234
- });
234
+ }, "HubAuthenticatePlugin");
@@ -44,4 +44,4 @@ export const HubBalanceAlertPlugin = makeExtendSchemaPlugin(() => {
44
44
  },
45
45
  },
46
46
  };
47
- });
47
+ }, "HubBalanceAlertPlugin");
@@ -183,7 +183,7 @@ export const HubCreatePlaygroundSessionPlugin = extendSchema(() => {
183
183
  },
184
184
  },
185
185
  };
186
- });
186
+ }, "HubCreatePlaygroundSessionPlugin");
187
187
  function uuidv7() {
188
188
  const now = BigInt(Date.now());
189
189
  let timestamp = now & ((1n << 48n) - 1n);
@@ -44,4 +44,4 @@ export const HubCurrentXPlugin = extendSchema((build) => {
44
44
  },
45
45
  },
46
46
  };
47
- });
47
+ }, "HubCurrentXPlugin");
@@ -62,4 +62,4 @@ export const HubPutAlertPlugin = extendSchema((_build) => {
62
62
  },
63
63
  },
64
64
  };
65
- });
65
+ }, "HubPutAlertPlugin");
@@ -29,4 +29,4 @@ export const HubUserBalanceByCurrencyPlugin = makeExtendSchemaPlugin((build) =>
29
29
  },
30
30
  },
31
31
  };
32
- });
32
+ }, "HubUserBalanceByCurrencyPlugin");
@@ -147,4 +147,4 @@ export const HubWithdrawPlugin = makeExtendSchemaPlugin((build) => {
147
147
  },
148
148
  },
149
149
  };
150
- });
150
+ }, "HubWithdrawPlugin");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneypot/hub",
3
- "version": "1.17.0-dev.3",
3
+ "version": "1.17.0",
4
4
  "author": "moneypot.com",
5
5
  "homepage": "https://moneypot.com/hub",
6
6
  "keywords": [
@@ -34,6 +34,7 @@
34
34
  "scripts": {
35
35
  "build": "tsc && cp -R src/pg-versions dist/src/ && npm run build-dashboard",
36
36
  "check": "tsc --noEmit && npm run check-dashboard",
37
+ "check-tests": "tsc -p tests/tsconfig.json --noEmit",
37
38
  "check-dashboard": "cd ./dashboard && npm run check",
38
39
  "lint": "eslint --fix . && npm run lint-dashboard",
39
40
  "lint-dashboard": "cd ./dashboard && npm run lint",