@otohime-site/parser 23.1.3 → 24.1.1
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/dx_intl/scores.d.ts +2 -2
- package/dx_intl/scores.js +5 -1
- package/package.json +13 -13
package/dx_intl/scores.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ export interface ScoresParseEntryWithoutScore {
|
|
|
4
4
|
title: string;
|
|
5
5
|
deluxe: boolean;
|
|
6
6
|
difficulty: number;
|
|
7
|
-
level: typeof LEVELS[number];
|
|
7
|
+
level: (typeof LEVELS)[number];
|
|
8
8
|
}
|
|
9
9
|
export interface ScoresParseEntryWithScore extends ScoresParseEntryWithoutScore {
|
|
10
10
|
score: number;
|
|
11
11
|
combo_flag: "" | "fc" | "fc+" | "ap" | "ap+";
|
|
12
|
-
sync_flag: "" | "fs" | "fs+" | "fdx" | "fdx+";
|
|
12
|
+
sync_flag: "" | "s" | "fs" | "fs+" | "fdx" | "fdx+";
|
|
13
13
|
}
|
|
14
14
|
export type ScoresParseEntry = ScoresParseEntryWithoutScore | ScoresParseEntryWithScore;
|
|
15
15
|
declare const parseScores: (content: string | Document, categoryTo?: number, withNoScore?: boolean) => ScoresParseEntry[];
|
package/dx_intl/scores.js
CHANGED
|
@@ -104,16 +104,20 @@ const parseScores = (content, categoryTo = 6, withNoScore = false) => {
|
|
|
104
104
|
return Object.assign(Object.assign({}, prevFlags), { combo_flag: "ap+" });
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
const syncMatches = ((_b = currFlagImg.getAttribute("src")) !== null && _b !== void 0 ? _b : "").match(/(fs|fsp|fsd|fsdp)\.png/);
|
|
107
|
+
const syncMatches = ((_b = currFlagImg.getAttribute("src")) !== null && _b !== void 0 ? _b : "").match(/(sync|fs|fsp|fsd|fsdp|fdx|fdxp)\.png/);
|
|
108
108
|
if (syncMatches !== null) {
|
|
109
109
|
switch (syncMatches[1]) {
|
|
110
|
+
case "sync":
|
|
111
|
+
return Object.assign(Object.assign({}, prevFlags), { sync_flag: "s" });
|
|
110
112
|
case "fs":
|
|
111
113
|
return Object.assign(Object.assign({}, prevFlags), { sync_flag: "fs" });
|
|
112
114
|
case "fsp":
|
|
113
115
|
return Object.assign(Object.assign({}, prevFlags), { sync_flag: "fs+" });
|
|
114
116
|
case "fsd":
|
|
117
|
+
case "fdx":
|
|
115
118
|
return Object.assign(Object.assign({}, prevFlags), { sync_flag: "fdx" });
|
|
116
119
|
case "fsdp":
|
|
120
|
+
case "fdxp":
|
|
117
121
|
return Object.assign(Object.assign({}, prevFlags), { sync_flag: "fdx+" });
|
|
118
122
|
}
|
|
119
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otohime-site/parser",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"build": "rm -rf dist/ && tsc && cp README.md dist/ && jq 'del(.scripts.prepare)' package.json > dist/package.json"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
20
|
-
"@typescript-eslint/parser": "^
|
|
19
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
20
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
21
21
|
"eslint": "^8.16.0",
|
|
22
|
-
"eslint-config-prettier": "^
|
|
23
|
-
"eslint-import-resolver-typescript": "^
|
|
24
|
-
"eslint-plugin-import": "^2.
|
|
25
|
-
"eslint-plugin-jest": "^
|
|
22
|
+
"eslint-config-prettier": "^9.0.0",
|
|
23
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
24
|
+
"eslint-plugin-import": "^2.29.1",
|
|
25
|
+
"eslint-plugin-jest": "^27.6.3",
|
|
26
26
|
"husky": "^8.0.1",
|
|
27
|
-
"jest": "^
|
|
28
|
-
"jest-environment-jsdom": "^
|
|
29
|
-
"lint-staged": "^
|
|
30
|
-
"prettier": "^2.
|
|
31
|
-
"ts-jest": "^
|
|
32
|
-
"typescript": "^
|
|
27
|
+
"jest": "^29.7.0",
|
|
28
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
29
|
+
"lint-staged": "^15.2.0",
|
|
30
|
+
"prettier": "^3.2.2",
|
|
31
|
+
"ts-jest": "^29.1.1",
|
|
32
|
+
"typescript": "^5.3.3"
|
|
33
33
|
},
|
|
34
34
|
"lint-staged": {
|
|
35
35
|
"*.js,*.ts": "eslint --cache --fix",
|