@rhyster/wow-casc-dbc 2.1.0 → 2.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/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1541,7 +1541,7 @@ class CASCClient {
|
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
1543
|
async loadRemoteListFile() {
|
|
1544
|
-
const url = "https://github.com/wowdev/wow-listfile/releases/download/
|
|
1544
|
+
const url = "https://github.com/wowdev/wow-listfile/releases/latest/download/community-listfile.csv";
|
|
1545
1545
|
const text = await (await fetch(url)).text();
|
|
1546
1546
|
const lines = text.split("\n").map((line) => line.trim()).filter((line) => line.length > 0);
|
|
1547
1547
|
lines.forEach((line) => {
|
|
@@ -1593,7 +1593,7 @@ class CASCClient {
|
|
|
1593
1593
|
const { rootFile } = this.preload;
|
|
1594
1594
|
const { nameHash2FileDataID } = rootFile;
|
|
1595
1595
|
const nameHash = getNameHash(name);
|
|
1596
|
-
return nameHash2FileDataID.get(nameHash) ?? this.name2FileDataID.get(name);
|
|
1596
|
+
return nameHash2FileDataID.get(nameHash) ?? this.name2FileDataID.get(name.toLowerCase());
|
|
1597
1597
|
}
|
|
1598
1598
|
getContentKeysByFileDataID(fileDataID) {
|
|
1599
1599
|
assert__default(this.preload, "Client not initialized");
|
package/dist/index.mjs
CHANGED
|
@@ -1529,7 +1529,7 @@ class CASCClient {
|
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
async loadRemoteListFile() {
|
|
1532
|
-
const url = "https://github.com/wowdev/wow-listfile/releases/download/
|
|
1532
|
+
const url = "https://github.com/wowdev/wow-listfile/releases/latest/download/community-listfile.csv";
|
|
1533
1533
|
const text = await (await fetch(url)).text();
|
|
1534
1534
|
const lines = text.split("\n").map((line) => line.trim()).filter((line) => line.length > 0);
|
|
1535
1535
|
lines.forEach((line) => {
|
|
@@ -1581,7 +1581,7 @@ class CASCClient {
|
|
|
1581
1581
|
const { rootFile } = this.preload;
|
|
1582
1582
|
const { nameHash2FileDataID } = rootFile;
|
|
1583
1583
|
const nameHash = getNameHash(name);
|
|
1584
|
-
return nameHash2FileDataID.get(nameHash) ?? this.name2FileDataID.get(name);
|
|
1584
|
+
return nameHash2FileDataID.get(nameHash) ?? this.name2FileDataID.get(name.toLowerCase());
|
|
1585
1585
|
}
|
|
1586
1586
|
getContentKeysByFileDataID(fileDataID) {
|
|
1587
1587
|
assert(this.preload, "Client not initialized");
|