@rhyster/wow-casc-dbc 2.8.0 → 2.8.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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/dbd.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhyster/wow-casc-dbc",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Fetch World of Warcraft data files from CASC and parse DBC/DB2 files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"author": "Rhythm",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@rhyster/eslint-config": "^1.6.
|
|
41
|
+
"@rhyster/eslint-config": "^1.6.13",
|
|
42
42
|
"@types/async": "^3.2.24",
|
|
43
43
|
"@types/cli-progress": "^3.11.6",
|
|
44
|
-
"@types/node": "^22.10.
|
|
44
|
+
"@types/node": "^22.10.3",
|
|
45
45
|
"eslint": "^9.17.0",
|
|
46
46
|
"tsx": "^4.19.2",
|
|
47
47
|
"typescript": "^5.7.2",
|
package/src/dbd.ts
CHANGED
|
@@ -135,8 +135,8 @@ export default class DBDParser {
|
|
|
135
135
|
const versionChunk = chunks.find((chunk) => chunk.find((line) => {
|
|
136
136
|
const layoutsMatch = PATTERN_LAYOUT.exec(line);
|
|
137
137
|
const layouts = layoutsMatch?.[1].split(',').map((v) => v.trim().toLowerCase());
|
|
138
|
-
return layouts?.includes(layoutHashHex);
|
|
139
|
-
}));
|
|
138
|
+
return layouts?.includes(layoutHashHex) === true;
|
|
139
|
+
}) !== undefined);
|
|
140
140
|
|
|
141
141
|
assert(versionChunk, `No version definition found for layout hash ${layoutHashHex}`);
|
|
142
142
|
|