@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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/dbd.ts +2 -2
- package/src/utils.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1028,7 +1028,7 @@ const JEDEC = [
|
|
|
1028
1028
|
];
|
|
1029
1029
|
const formatFileSize = (input) => {
|
|
1030
1030
|
if (Number.isNaN(input)) return "";
|
|
1031
|
-
let size =
|
|
1031
|
+
let size = input;
|
|
1032
1032
|
const isNegative = size < 0;
|
|
1033
1033
|
const result = [];
|
|
1034
1034
|
if (isNegative) size = -size;
|
|
@@ -1956,9 +1956,9 @@ class DBDParser {
|
|
|
1956
1956
|
const annotations = annotationsText ? annotationsText.split(",").map((v) => v.trim()) : [];
|
|
1957
1957
|
const size = sizeText ? parseInt(sizeText, 10) : void 0;
|
|
1958
1958
|
const arraySize = arraySizeText ? parseInt(arraySizeText, 10) : void 0;
|
|
1959
|
-
const isID =
|
|
1959
|
+
const isID = annotations.includes("id");
|
|
1960
1960
|
const isInline = !annotations.includes("noninline");
|
|
1961
|
-
const isRelation =
|
|
1961
|
+
const isRelation = annotations.includes("relation");
|
|
1962
1962
|
const isSigned = !unsigned;
|
|
1963
1963
|
this.columns.push({
|
|
1964
1964
|
name,
|