Commit 0fa86c77 authored by nanahira's avatar nanahira

bump

parent 940dde6a
Pipeline #42921 passed with stages
in 3 minutes and 15 seconds
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"js-yaml": "^4.1.1", "js-yaml": "^4.1.1",
"sql.js": "^1.13.0", "sql.js": "^1.13.0",
"ygopro-jstest": "^1.0.10", "ygopro-jstest": "^1.0.10",
"ygopro-msg-encode": "^1.1.6" "ygopro-msg-encode": "^1.1.7"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^30.0.0", "@types/jest": "^30.0.0",
...@@ -6399,9 +6399,9 @@ ...@@ -6399,9 +6399,9 @@
} }
}, },
"node_modules/ygopro-msg-encode": { "node_modules/ygopro-msg-encode": {
"version": "1.1.6", "version": "1.1.7",
"resolved": "https://registry.npmjs.org/ygopro-msg-encode/-/ygopro-msg-encode-1.1.6.tgz", "resolved": "https://registry.npmjs.org/ygopro-msg-encode/-/ygopro-msg-encode-1.1.7.tgz",
"integrity": "sha512-ViNMcSM5o32zW0GhaPgXCQSz8hJJ/4Nd5HPQVRA6o9qqZ+2+0tjLZX8vviMA48iFmsA03ABTx6Y5iT8h1e11jQ==", "integrity": "sha512-KQ5uirF+LfD1/IlTrIJh/f37IwXc5IMFs5qO8Uw+KZI7cW4UVQmH7CRygDS+lbJcnHDrd2qhD4l3YpsmYqqBkg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"typed-reflector": "^1.0.14", "typed-reflector": "^1.0.14",
......
...@@ -15,13 +15,14 @@ export interface YrpInfo { ...@@ -15,13 +15,14 @@ export interface YrpInfo {
export const toYrpInfo = (test: YGOProTest): YrpInfo => { export const toYrpInfo = (test: YGOProTest): YrpInfo => {
const snapshot = test.querySnapshot(); const snapshot = test.querySnapshot();
const snapshotText = formatSnapshot(snapshot); const snapshotText = formatSnapshot(snapshot);
const stripMsgName = (msg: string) => msg.replace(/^YGOProMsg/, "");
return { return {
messages: test.allMessages.map((msg) => ({ messages: test.allMessages.map((msg) => ({
identifier: msg.identifier, identifier: msg.identifier,
msg: msg.constructor.name, msg: stripMsgName(msg.constructor.name),
...msg, ...msg,
})), })),
snapshot, snapshot,
snapshotText, snapshotText,
}; };
} };
messages: messages:
- identifier: 33 - identifier: 33
msg: YGOProMsgShuffleHand msg: ShuffleHand
player: 0 player: 0
count: 2 count: 2
cards: cards:
- 28985331 - 28985331
- 10000000 - 10000000
- identifier: 41 - identifier: 41
msg: YGOProMsgNewPhase msg: NewPhase
phase: 1 phase: 1
- identifier: 41 - identifier: 41
msg: YGOProMsgNewPhase msg: NewPhase
phase: 2 phase: 2
- identifier: 41 - identifier: 41
msg: YGOProMsgNewPhase msg: NewPhase
phase: 4 phase: 4
- identifier: 11 - identifier: 11
msg: YGOProMsgSelectIdleCmd msg: SelectIdleCmd
player: 0 player: 0
summonableCount: 1 summonableCount: 1
summonableCards: summonableCards:
......
This diff is collapsed.
...@@ -54,7 +54,9 @@ describe("YRP", () => { ...@@ -54,7 +54,9 @@ describe("YRP", () => {
); );
const sortMesssages = (messages: MsgSnapshot[]) => const sortMesssages = (messages: MsgSnapshot[]) =>
messages messages
.filter((m) => !m.msg.includes("Hint")) .filter(
(m) => !m.msg.includes("Hint") && m.msg !== "ConfirmCards",
)
.map((m) => { .map((m) => {
// go through all properties and prune every desc // go through all properties and prune every desc
const pruneDesc = <T>(obj: T, visited = new Set<any>()): T => { const pruneDesc = <T>(obj: T, visited = new Set<any>()): T => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment