@zhin.js/plugin-roulette 0.1.10 → 0.1.12
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 +19 -0
- package/lib/runtime.d.ts +2 -1
- package/lib/runtime.js +4 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @zhin.js/plugin-roulette
|
|
2
2
|
|
|
3
|
+
## 0.1.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [008ccad]
|
|
8
|
+
- Updated dependencies [a1f1028]
|
|
9
|
+
- @zhin.js/core@1.1.58
|
|
10
|
+
- @zhin.js/game-kit@1.1.23
|
|
11
|
+
|
|
12
|
+
## 0.1.11
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [6163abc]
|
|
17
|
+
- Updated dependencies [bc6ccb1]
|
|
18
|
+
- Updated dependencies [72b5a12]
|
|
19
|
+
- @zhin.js/core@1.1.57
|
|
20
|
+
- @zhin.js/game-kit@1.1.22
|
|
21
|
+
|
|
3
22
|
## 0.1.10
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/lib/runtime.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import type { RouletteFlow } from './game-flow.js';
|
|
|
4
4
|
import { type AdapterProjectionContext } from './mute-penalty.js';
|
|
5
5
|
import type { RouletteServices } from './session-service.js';
|
|
6
6
|
/** Owner-scoped services consumed by discovered commands, middleware and the deadline job. */
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const rouletteServicesStore: import("zhin.js").PluginStore<RouletteServices, unknown>;
|
|
8
|
+
export declare const rouletteServicesToken: import("zhin.js").PluginStore<RouletteServices, unknown>;
|
|
8
9
|
/** A command, middleware or schedule capability context. */
|
|
9
10
|
export interface RouletteCapabilityContext extends AdapterProjectionContext {
|
|
10
11
|
readonly locale?: Locale;
|
package/lib/runtime.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { definePluginStore } from 'zhin.js';
|
|
2
2
|
import { resolveRouletteConfig } from './config.js';
|
|
3
3
|
import { resolveMutePenalty } from './mute-penalty.js';
|
|
4
4
|
/** Owner-scoped services consumed by discovered commands, middleware and the deadline job. */
|
|
5
|
-
export const
|
|
5
|
+
export const rouletteServicesStore = definePluginStore('zhin.game.roulette.services');
|
|
6
|
+
export const rouletteServicesToken = rouletteServicesStore;
|
|
6
7
|
export function resolveRouletteFlow(context) {
|
|
7
8
|
return {
|
|
8
|
-
services:
|
|
9
|
+
services: rouletteServicesStore.use(context),
|
|
9
10
|
config: resolveRouletteConfig(context.config),
|
|
10
11
|
penalty: resolveMutePenalty(context),
|
|
11
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-roulette",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Zhin.js 俄罗斯轮盘 — 多人轮流开枪,可按群开启禁言惩罚 (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
],
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@zhin.js/core": "1.1.
|
|
34
|
-
"@zhin.js/game-kit": "1.1.
|
|
33
|
+
"@zhin.js/core": "1.1.58",
|
|
34
|
+
"@zhin.js/game-kit": "1.1.23"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^6.0.3",
|
|
38
38
|
"vitest": "^4.1.10",
|
|
39
|
-
"@zhin.js/schedule-feature": "1.1.
|
|
40
|
-
"@zhin.js/testing": "1.0.
|
|
41
|
-
"zhin.js": "1.1.
|
|
39
|
+
"@zhin.js/schedule-feature": "1.1.14",
|
|
40
|
+
"@zhin.js/testing": "1.0.9",
|
|
41
|
+
"zhin.js": "1.1.23"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
|
44
44
|
"type": "git",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"plugins": []
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@zhin.js/command": "^1.1.
|
|
83
|
-
"@zhin.js/middleware": "^1.1.
|
|
84
|
-
"zhin.js": "^1.1.
|
|
85
|
-
"@zhin.js/schedule-feature": "^1.1.
|
|
82
|
+
"@zhin.js/command": "^1.1.16",
|
|
83
|
+
"@zhin.js/middleware": "^1.1.15",
|
|
84
|
+
"zhin.js": "^1.1.23",
|
|
85
|
+
"@zhin.js/schedule-feature": "^1.1.14"
|
|
86
86
|
},
|
|
87
87
|
"peerDependenciesMeta": {
|
|
88
88
|
"@zhin.js/command": {
|