Skip to content

Commit

Permalink
CODEBASE: Update webpack and katex (bitburner-official#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg authored Feb 27, 2025
1 parent 1982e71 commit 5f29c5b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
29 changes: 22 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"rehype-mathjax": "^4.0.3",
"remark-math": "^5.1.1",
"style-loader": "^3.3.3",
"typescript": "^5.2.2",
"typescript": "^5.7.3",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Corporation/Division.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class Division {
//If this industry has a warehouse in this city, process the market
//for every material this industry requires or produces
if (this.warehouses[city]) {
const wh = this.warehouses[city] as Warehouse; // Warehouse type is known due to if check above
const wh = this.warehouses[city];
for (const name of Object.keys(reqMats) as CorpMaterialName[]) {
if (Object.hasOwn(reqMats, name)) {
wh.materials[name].processMarket();
Expand Down
4 changes: 3 additions & 1 deletion src/ui/formatNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ function getFormatter(
formatList = digitFormats,
options: Intl.NumberFormatOptions = {},
): Intl.NumberFormat {
if (formatList[fractionalDigits]) return formatList[fractionalDigits] as Intl.NumberFormat;
if (formatList[fractionalDigits]) {
return formatList[fractionalDigits];
}
return (formatList[fractionalDigits] = makeFormatter(fractionalDigits, options));
}

Expand Down

0 comments on commit 5f29c5b

Please sign in to comment.