@rhyster/wow-casc-dbc 2.11.28 → 2.11.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhyster/wow-casc-dbc",
3
- "version": "2.11.28",
3
+ "version": "2.11.29",
4
4
  "description": "Fetch World of Warcraft data files from CASC and parse DBC/DB2 files.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,18 +38,18 @@
38
38
  "author": "Rhythm",
39
39
  "license": "MIT",
40
40
  "devDependencies": {
41
- "@rhyster/eslint-config": "^1.7.33",
42
- "@types/async": "^3.2.24",
41
+ "@rhyster/eslint-config": "^1.8.2",
42
+ "@types/async": "^3.2.25",
43
43
  "@types/cli-progress": "^3.11.6",
44
- "@types/node": "^22.16.5",
45
- "eslint": "^9.32.0",
44
+ "@types/node": "^22.17.1",
45
+ "eslint": "^9.33.0",
46
46
  "tsx": "^4.20.3",
47
- "typescript": "^5.8.3",
47
+ "typescript": "^5.9.2",
48
48
  "unbuild": "^3.6.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "async": "^3.2.6",
52
52
  "cli-progress": "^3.12.0"
53
53
  },
54
- "packageManager": "pnpm@10.13.1"
54
+ "packageManager": "pnpm@10.14.0"
55
55
  }
package/src/dbd.ts CHANGED
@@ -163,9 +163,9 @@ export default class DBDParser {
163
163
  const size = sizeText ? parseInt(sizeText, 10) : undefined;
164
164
  const arraySize = arraySizeText ? parseInt(arraySizeText, 10) : undefined;
165
165
 
166
- const isID = !!annotations.includes('id');
166
+ const isID = annotations.includes('id');
167
167
  const isInline = !annotations.includes('noninline');
168
- const isRelation = !!annotations.includes('relation');
168
+ const isRelation = annotations.includes('relation');
169
169
  const isSigned = !unsigned;
170
170
 
171
171
  this.columns.push({
package/src/utils.ts CHANGED
@@ -13,7 +13,7 @@ const JEDEC = [
13
13
  export const formatFileSize = (input: number) => {
14
14
  if (Number.isNaN(input)) return '';
15
15
 
16
- let size = Number(input);
16
+ let size = input;
17
17
  const isNegative = size < 0;
18
18
  const result = [];
19
19