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 @@
"js-yaml": "^4.1.1",
"sql.js": "^1.13.0",
"ygopro-jstest": "^1.0.10",
"ygopro-msg-encode": "^1.1.6"
"ygopro-msg-encode": "^1.1.7"
},
"devDependencies": {
"@types/jest": "^30.0.0",
......@@ -6399,9 +6399,9 @@
}
},
"node_modules/ygopro-msg-encode": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/ygopro-msg-encode/-/ygopro-msg-encode-1.1.6.tgz",
"integrity": "sha512-ViNMcSM5o32zW0GhaPgXCQSz8hJJ/4Nd5HPQVRA6o9qqZ+2+0tjLZX8vviMA48iFmsA03ABTx6Y5iT8h1e11jQ==",
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/ygopro-msg-encode/-/ygopro-msg-encode-1.1.7.tgz",
"integrity": "sha512-KQ5uirF+LfD1/IlTrIJh/f37IwXc5IMFs5qO8Uw+KZI7cW4UVQmH7CRygDS+lbJcnHDrd2qhD4l3YpsmYqqBkg==",
"license": "MIT",
"dependencies": {
"typed-reflector": "^1.0.14",
......
......@@ -15,13 +15,14 @@ export interface YrpInfo {
export const toYrpInfo = (test: YGOProTest): YrpInfo => {
const snapshot = test.querySnapshot();
const snapshotText = formatSnapshot(snapshot);
const stripMsgName = (msg: string) => msg.replace(/^YGOProMsg/, "");
return {
messages: test.allMessages.map((msg) => ({
identifier: msg.identifier,
msg: msg.constructor.name,
msg: stripMsgName(msg.constructor.name),
...msg,
})),
snapshot,
snapshotText,
};
}
};
messages:
- identifier: 33
msg: YGOProMsgShuffleHand
msg: ShuffleHand
player: 0
count: 2
cards:
- 28985331
- 10000000
- identifier: 41
msg: YGOProMsgNewPhase
msg: NewPhase
phase: 1
- identifier: 41
msg: YGOProMsgNewPhase
msg: NewPhase
phase: 2
- identifier: 41
msg: YGOProMsgNewPhase
msg: NewPhase
phase: 4
- identifier: 11
msg: YGOProMsgSelectIdleCmd
msg: SelectIdleCmd
player: 0
summonableCount: 1
summonableCards:
......
This diff is collapsed.
......@@ -54,7 +54,9 @@ describe("YRP", () => {
);
const sortMesssages = (messages: MsgSnapshot[]) =>
messages
.filter((m) => !m.msg.includes("Hint"))
.filter(
(m) => !m.msg.includes("Hint") && m.msg !== "ConfirmCards",
)
.map((m) => {
// go through all properties and prune every desc
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