@helyx/bot 0.4.29 → 0.4.30
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/CHANGELOG.md +6 -0
- package/dist/numeric-write-behind-redis.js +3 -2
- package/package.json +70 -70
package/CHANGELOG.md
CHANGED
|
@@ -508,6 +508,7 @@ export class RedisNumericWriteBehindService {
|
|
|
508
508
|
async #acquireBarrier(scope, kind, guildId, subjectId) {
|
|
509
509
|
this.#assertAvailable(scope);
|
|
510
510
|
const barrierId = randomUUID();
|
|
511
|
+
const now = Date.now();
|
|
511
512
|
const result = await this.#redis.eval(ACQUIRE_BARRIER_SCRIPT, {
|
|
512
513
|
keys: keysFor(this.#prefix, scope),
|
|
513
514
|
arguments: [
|
|
@@ -515,8 +516,8 @@ export class RedisNumericWriteBehindService {
|
|
|
515
516
|
guildId,
|
|
516
517
|
subjectId,
|
|
517
518
|
barrierId,
|
|
518
|
-
String(
|
|
519
|
-
String(
|
|
519
|
+
String(now),
|
|
520
|
+
String(now + this.#barrierLeaseMs),
|
|
520
521
|
],
|
|
521
522
|
});
|
|
522
523
|
if (Number(result) === 2)
|
package/package.json
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@helyx/bot",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Production Discord runtime for the modular Helyx platform.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"helyx",
|
|
7
|
-
"discord",
|
|
8
|
-
"bot",
|
|
9
|
-
"modular"
|
|
10
|
-
],
|
|
11
|
-
"private": false,
|
|
12
|
-
"license": "HSAL 1.0",
|
|
13
|
-
"homepage": "https://helyx.gg/",
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/ZyC0R3/Helyx/issues"
|
|
16
|
-
},
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/ZyC0R3/Helyx.git",
|
|
20
|
-
"directory": "apps/bot"
|
|
21
|
-
},
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=24 <27",
|
|
24
|
-
"npm": ">=11"
|
|
25
|
-
},
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public",
|
|
28
|
-
"provenance": true
|
|
29
|
-
},
|
|
30
|
-
"type": "module",
|
|
31
|
-
"files": [
|
|
32
|
-
"dist",
|
|
33
|
-
"!dist/*.tsbuildinfo",
|
|
34
|
-
"!dist/**/*.map",
|
|
35
|
-
"CHANGELOG.md",
|
|
36
|
-
"README.md",
|
|
37
|
-
"LICENSE"
|
|
38
|
-
],
|
|
39
|
-
"exports": {
|
|
40
|
-
".": {
|
|
41
|
-
"types": "./dist/index.d.ts",
|
|
42
|
-
"default": "./dist/index.js"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsc -b",
|
|
47
|
-
"dev": "node --env-file-if-exists=../../.env --import tsx src/index.ts",
|
|
48
|
-
"start": "node --env-file-if-exists=../../.env dist/index.js"
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"@helyx/config": ">=0.5.0 <0.6.0",
|
|
52
|
-
"@helyx/control-protocol": ">=0.4.0 <0.5.0",
|
|
53
|
-
"@helyx/core": ">=0.1.0 <0.2.0",
|
|
54
|
-
"@helyx/database": ">=0.8.0 <0.9.0",
|
|
55
|
-
"@helyx/framework": ">=0.1.0 <0.2.0",
|
|
56
|
-
"@helyx/module-manifest": ">=0.6.0 <0.7.0",
|
|
57
|
-
"@helyx/platform": ">=0.5.0 <0.6.0",
|
|
58
|
-
"@helyx/sdk": ">=0.7.0 <0.8.0",
|
|
59
|
-
"@helyx/verification-contracts": ">=0.3.0 <0.4.0",
|
|
60
|
-
"discord.js": "14.27.0",
|
|
61
|
-
"fastify": "5.10.0",
|
|
62
|
-
"pino": "10.3.1",
|
|
63
|
-
"redis": "6.1.0",
|
|
64
|
-
"ws": "8.21.1",
|
|
65
|
-
"zod": "4.4.3"
|
|
66
|
-
},
|
|
67
|
-
"devDependencies": {
|
|
68
|
-
"@types/ws": "8.18.1"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@helyx/bot",
|
|
3
|
+
"version": "0.4.30",
|
|
4
|
+
"description": "Production Discord runtime for the modular Helyx platform.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"helyx",
|
|
7
|
+
"discord",
|
|
8
|
+
"bot",
|
|
9
|
+
"modular"
|
|
10
|
+
],
|
|
11
|
+
"private": false,
|
|
12
|
+
"license": "HSAL 1.0",
|
|
13
|
+
"homepage": "https://helyx.gg/",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/ZyC0R3/Helyx/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/ZyC0R3/Helyx.git",
|
|
20
|
+
"directory": "apps/bot"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=24 <27",
|
|
24
|
+
"npm": ">=11"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"provenance": true
|
|
29
|
+
},
|
|
30
|
+
"type": "module",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"!dist/*.tsbuildinfo",
|
|
34
|
+
"!dist/**/*.map",
|
|
35
|
+
"CHANGELOG.md",
|
|
36
|
+
"README.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"default": "./dist/index.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc -b",
|
|
47
|
+
"dev": "node --env-file-if-exists=../../.env --import tsx src/index.ts",
|
|
48
|
+
"start": "node --env-file-if-exists=../../.env dist/index.js"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@helyx/config": ">=0.5.0 <0.6.0",
|
|
52
|
+
"@helyx/control-protocol": ">=0.4.0 <0.5.0",
|
|
53
|
+
"@helyx/core": ">=0.1.0 <0.2.0",
|
|
54
|
+
"@helyx/database": ">=0.8.0 <0.9.0",
|
|
55
|
+
"@helyx/framework": ">=0.1.0 <0.2.0",
|
|
56
|
+
"@helyx/module-manifest": ">=0.6.0 <0.7.0",
|
|
57
|
+
"@helyx/platform": ">=0.5.0 <0.6.0",
|
|
58
|
+
"@helyx/sdk": ">=0.7.0 <0.8.0",
|
|
59
|
+
"@helyx/verification-contracts": ">=0.3.0 <0.4.0",
|
|
60
|
+
"discord.js": "14.27.0",
|
|
61
|
+
"fastify": "5.10.0",
|
|
62
|
+
"pino": "10.3.1",
|
|
63
|
+
"redis": "6.1.0",
|
|
64
|
+
"ws": "8.21.1",
|
|
65
|
+
"zod": "4.4.3"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@types/ws": "8.18.1"
|
|
69
|
+
}
|
|
70
|
+
}
|