@moneypot/hub 1.19.16 → 1.19.17
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.
package/dist/cli/add-casino.js
CHANGED
|
@@ -106,7 +106,7 @@ function printUsageExample() {
|
|
|
106
106
|
async function main() {
|
|
107
107
|
const args = process.argv.slice(2);
|
|
108
108
|
const params = parseArgs(args);
|
|
109
|
-
console.log("params", params);
|
|
109
|
+
console.log("params", { ...params, api_key: params.api_key && "[redacted]" });
|
|
110
110
|
const validated = AddCasinoSchema.safeParse(params);
|
|
111
111
|
if (!validated.success) {
|
|
112
112
|
console.error("Validation error:");
|
package/dist/cli/db-migrate.js
CHANGED
|
File without changes
|
|
@@ -56,8 +56,8 @@ export const HubAddCasinoPlugin = makeExtendSchemaPlugin((build) => {
|
|
|
56
56
|
throw new GraphQLError("Unauthorized");
|
|
57
57
|
}
|
|
58
58
|
assert(is(input));
|
|
59
|
-
logger.info(input, "Input");
|
|
60
59
|
const { name, baseUrl, graphqlUrl, apiKey } = input;
|
|
60
|
+
logger.info({ name, baseUrl, graphqlUrl }, "Input");
|
|
61
61
|
const graphqlClient = new GraphQLClient(graphqlUrl, {
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `apikey:${apiKey}`,
|
|
@@ -50,7 +50,7 @@ async function mpGetExperienceTransfer(graphqlClient, id) {
|
|
|
50
50
|
return mpTransfer;
|
|
51
51
|
}
|
|
52
52
|
export function startWebsocketProcessor({ casinoId, graphqlUrl, signal, controllerId, apiKey, pool, }) {
|
|
53
|
-
logger.info(`Starting websocket processor for ${graphqlUrl}
|
|
53
|
+
logger.info(`Starting websocket processor for ${graphqlUrl}`);
|
|
54
54
|
const client = createWebsocketClient({
|
|
55
55
|
url: httpToWs(new URL(graphqlUrl)).toString(),
|
|
56
56
|
connectionParams: {
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneypot/hub",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.17",
|
|
4
4
|
"author": "moneypot.com",
|
|
5
5
|
"homepage": "https://moneypot.com/hub",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"moneypot"
|
|
8
8
|
],
|
|
9
9
|
"description": "Official MoneyPot hub server",
|
|
10
|
-
"packageManager": "pnpm@10.25.0",
|
|
11
10
|
"type": "module",
|
|
12
11
|
"main": "dist/src/index.js",
|
|
13
12
|
"types": "dist/src/index.d.ts",
|
|
@@ -35,24 +34,6 @@
|
|
|
35
34
|
"add-casino": "./dist/cli/add-casino.js",
|
|
36
35
|
"db-migrate": "./dist/cli/db-migrate.js"
|
|
37
36
|
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build:hub": "tsc && cp -R src/pg-versions dist/src/ && ./scripts/strip-sql.sh",
|
|
40
|
-
"build": "pnpm run build:hub && pnpm run build-dashboard",
|
|
41
|
-
"check": "tsc --noEmit && pnpm run check-dashboard",
|
|
42
|
-
"check-tests": "tsc -p tests/tsconfig.json --noEmit",
|
|
43
|
-
"check-dashboard": "cd ./dashboard && pnpm run check",
|
|
44
|
-
"format": "prettier --write \"**/*.ts\"",
|
|
45
|
-
"lint": "eslint --fix . && pnpm run lint-dashboard",
|
|
46
|
-
"lint-dashboard": "cd ./dashboard && pnpm run lint",
|
|
47
|
-
"prepublishOnly": "pnpm run build",
|
|
48
|
-
"codegen": "npx graphql-codegen",
|
|
49
|
-
"codegen-watch": "graphql-codegen --watch",
|
|
50
|
-
"build-dashboard": "cd ./dashboard && pnpm run build && rm -rf ../dist/dashboard && cp -Rv dist ../dist/dashboard",
|
|
51
|
-
"test:startup": "dropdb --if-exists hub-test && createdb hub-test && SUPERUSER_DATABASE_URL=postgres://localhost:5432/hub-test DATABASE_URL=postgres://localhost:5432/hub-test tsx src/test-startup.ts",
|
|
52
|
-
"test": "vitest run",
|
|
53
|
-
"test:watch": "vitest",
|
|
54
|
-
"test:bail": "pnpm test -- --bail --silent --reporter=basic 2>&1 | head -25"
|
|
55
|
-
},
|
|
56
37
|
"dependencies": {
|
|
57
38
|
"@graphile-contrib/pg-omit-archived": "4.0.0-rc.1",
|
|
58
39
|
"@moneypot/hash-herald": "^1.0.0",
|
|
@@ -95,5 +76,22 @@
|
|
|
95
76
|
"optionalDependencies": {
|
|
96
77
|
"@moneypot/server": "file:../moneypot-server"
|
|
97
78
|
},
|
|
98
|
-
"license": "UNLICENSED"
|
|
99
|
-
|
|
79
|
+
"license": "UNLICENSED",
|
|
80
|
+
"scripts": {
|
|
81
|
+
"build:hub": "tsc && cp -R src/pg-versions dist/src/ && ./scripts/strip-sql.sh",
|
|
82
|
+
"build": "pnpm run build:hub && pnpm run build-dashboard",
|
|
83
|
+
"check": "tsc --noEmit && pnpm run check-dashboard",
|
|
84
|
+
"check-tests": "tsc -p tests/tsconfig.json --noEmit",
|
|
85
|
+
"check-dashboard": "cd ./dashboard && pnpm run check",
|
|
86
|
+
"format": "prettier --write \"**/*.ts\"",
|
|
87
|
+
"lint": "eslint --fix . && pnpm run lint-dashboard",
|
|
88
|
+
"lint-dashboard": "cd ./dashboard && pnpm run lint",
|
|
89
|
+
"codegen": "npx graphql-codegen",
|
|
90
|
+
"codegen-watch": "graphql-codegen --watch",
|
|
91
|
+
"build-dashboard": "cd ./dashboard && pnpm run build && rm -rf ../dist/dashboard && cp -Rv dist ../dist/dashboard",
|
|
92
|
+
"test:startup": "dropdb --if-exists hub-test && createdb hub-test && SUPERUSER_DATABASE_URL=postgres://localhost:5432/hub-test DATABASE_URL=postgres://localhost:5432/hub-test tsx src/test-startup.ts",
|
|
93
|
+
"test": "vitest run",
|
|
94
|
+
"test:watch": "vitest",
|
|
95
|
+
"test:bail": "pnpm test -- --bail --silent --reporter=basic 2>&1 | head -25"
|
|
96
|
+
}
|
|
97
|
+
}
|