@moneypot/hub 1.20.6 → 1.21.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.
- package/dist/cli/add-casino.js +1 -1
- package/dist/cli/db-migrate.js +0 -0
- package/dist/dashboard/assets/{index-0G7cFk_0.js → index-n_xD3-qc.js} +48 -48
- package/dist/dashboard/index.html +1 -1
- package/dist/src/audit-log.d.ts +1 -1
- package/dist/src/pg-versions/018-scope-chat-owner-reads.sql +49 -0
- package/dist/src/plugins/chat/hub-chat-create-system-message.js +5 -1
- package/dist/src/plugins/chat/hub-chat-mod-management.js +4 -4
- package/dist/src/plugins/hub-add-casino.js +1 -1
- package/dist/src/plugins/hub-adjust-bankroll.d.ts +1 -0
- package/dist/src/plugins/hub-adjust-bankroll.js +106 -0
- package/dist/src/plugins/validate-fields.js +0 -8
- package/dist/src/process-transfers/index.js +0 -44
- package/dist/src/process-transfers/polling-processor.js +45 -21
- package/dist/src/process-transfers/process-transfer.js +0 -4
- package/dist/src/process-transfers/websocket-processor.js +1 -1
- package/dist/src/server/graphile.config.js +2 -0
- package/dist/src/smart-tags.js +7 -7
- package/dist/src/take-request/process-take-request.js +87 -44
- package/package.json +20 -23
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneypot/hub",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
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,25 +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": "rm -rf dist/src && tsc && cp -R src/pg-versions dist/src/ && ./scripts/strip-sql.sh",
|
|
40
|
-
"build": "pnpm run build:hub && rm -rf dist/dashboard && 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
|
-
"prepare": "husky"
|
|
56
|
-
},
|
|
57
37
|
"dependencies": {
|
|
58
38
|
"@graphile-contrib/pg-omit-archived": "4.0.0-rc.1",
|
|
59
39
|
"@moneypot/hash-herald": "^1.0.0",
|
|
@@ -94,5 +74,22 @@
|
|
|
94
74
|
"peerDependencies": {
|
|
95
75
|
"graphile-config": "^1.0.0-rc.2"
|
|
96
76
|
},
|
|
97
|
-
"license": "UNLICENSED"
|
|
98
|
-
|
|
77
|
+
"license": "UNLICENSED",
|
|
78
|
+
"scripts": {
|
|
79
|
+
"build:hub": "rm -rf dist/src && tsc && cp -R src/pg-versions dist/src/ && ./scripts/strip-sql.sh",
|
|
80
|
+
"build": "pnpm run build:hub && rm -rf dist/dashboard && pnpm run build-dashboard",
|
|
81
|
+
"check": "tsc --noEmit && pnpm run check-dashboard",
|
|
82
|
+
"check-tests": "tsc -p tests/tsconfig.json --noEmit",
|
|
83
|
+
"check-dashboard": "cd ./dashboard && pnpm run check",
|
|
84
|
+
"format": "prettier --write \"**/*.ts\"",
|
|
85
|
+
"lint": "eslint --fix . && pnpm run lint-dashboard",
|
|
86
|
+
"lint-dashboard": "cd ./dashboard && pnpm run lint",
|
|
87
|
+
"codegen": "npx graphql-codegen",
|
|
88
|
+
"codegen-watch": "graphql-codegen --watch",
|
|
89
|
+
"build-dashboard": "cd ./dashboard && pnpm run build && rm -rf ../dist/dashboard && cp -Rv dist ../dist/dashboard",
|
|
90
|
+
"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",
|
|
91
|
+
"test": "vitest run",
|
|
92
|
+
"test:watch": "vitest",
|
|
93
|
+
"test:bail": "pnpm test -- --bail --silent --reporter=basic 2>&1 | head -25"
|
|
94
|
+
}
|
|
95
|
+
}
|