@zhin.js/plugin-dungeon-expedition 1.0.13 → 1.0.14
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/commands/dungeon/[[action]].js +1 -1
- package/commands/dungeon/[[action]].ts +1 -1
- package/lib/runtime-store.d.ts +1 -1
- package/lib/runtime-store.js +1 -1
- package/lib/runtime-store.js.map +1 -1
- package/middlewares/dungeon-choice.js +1 -1
- package/middlewares/dungeon-choice.ts +1 -1
- package/package.json +8 -7
- package/src/runtime-store.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
2
|
+
import { defineCommand } from 'zhin.js/command';
|
|
3
3
|
import { messageFromCommandInput } from '@zhin.js/game-kit';
|
|
4
4
|
import { DUNGEON_HELP, normalizeDungeonAction, runDungeonCommand, } from "../../lib/dungeon-command.js";
|
|
5
5
|
import { resolveGameServices } from "../../lib/runtime-store.js";
|
package/lib/runtime-store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Token } from '
|
|
1
|
+
import { type Token } from 'zhin.js';
|
|
2
2
|
import type { SessionService } from './session-service.js';
|
|
3
3
|
export declare const gameServicesToken: Token<SessionService>;
|
|
4
4
|
export declare function resolveGameServices(context: {
|
package/lib/runtime-store.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createToken } from '
|
|
1
|
+
import { createToken } from 'zhin.js';
|
|
2
2
|
export const gameServicesToken = createToken('zhin.game.dungeon-expedition.services');
|
|
3
3
|
export function resolveGameServices(context) {
|
|
4
4
|
return context.use(gameServicesToken);
|
package/lib/runtime-store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-store.js","sourceRoot":"","sources":["../src/runtime-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,
|
|
1
|
+
{"version":3,"file":"runtime-store.js","sourceRoot":"","sources":["../src/runtime-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,SAAS,CAAC;AAGlD,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAC1C,uCAAuC,CACxC,CAAC;AAEF,MAAM,UAAU,mBAAmB,CACjC,OAAuC;IAEvC,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineMiddleware } from '
|
|
2
|
+
import { defineMiddleware } from 'zhin.js/middleware';
|
|
3
3
|
import { buildChoiceFallbackMap, channelKey, messageFromCommandInput, parseChoicePayload, resolveGameTextPayload, } from '@zhin.js/game-kit';
|
|
4
4
|
import { handleDungeonChoice } from "../lib/game-flow.js";
|
|
5
5
|
import { resolveGameServices } from "../lib/runtime-store.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/plugin-dungeon-expedition",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "Zhin.js multiplayer deterministic dungeon expedition",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -24,15 +24,13 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@zhin.js/
|
|
28
|
-
"@zhin.js/
|
|
29
|
-
"@zhin.js/game-kit": "3.0.9",
|
|
30
|
-
"@zhin.js/middleware": "1.0.10",
|
|
31
|
-
"@zhin.js/plugin-runtime": "1.1.6"
|
|
27
|
+
"@zhin.js/core": "1.5.10",
|
|
28
|
+
"@zhin.js/game-kit": "3.0.10"
|
|
32
29
|
},
|
|
33
30
|
"devDependencies": {
|
|
34
31
|
"typescript": "^6.0.3",
|
|
35
|
-
"vitest": "^4.1.10"
|
|
32
|
+
"vitest": "^4.1.10",
|
|
33
|
+
"zhin.js": "6.0.10"
|
|
36
34
|
},
|
|
37
35
|
"repository": {
|
|
38
36
|
"type": "git",
|
|
@@ -64,6 +62,9 @@
|
|
|
64
62
|
],
|
|
65
63
|
"plugins": []
|
|
66
64
|
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"zhin.js": "6.0.10"
|
|
67
|
+
},
|
|
67
68
|
"scripts": {
|
|
68
69
|
"build": "tsc",
|
|
69
70
|
"clean": "rimraf lib",
|
package/src/runtime-store.ts
CHANGED