Update dependencies, except YAML for now since it has formatting changes

This commit is contained in:
mtkennerly 2023-06-23 01:17:32 +08:00
parent c18384129f
commit 307fc3470c
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 1335 additions and 1034 deletions

2333
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,19 +17,19 @@
},
"devDependencies": {
"@types/js-yaml": "^3.12.4",
"@types/minimist": "^1.2.0",
"@types/node": "^14.0.13",
"ajv-cli": "^3.2.1",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
"@types/minimist": "^1.2.2",
"@types/node": "^20.3.1",
"ajv-cli": "^5.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
},
"dependencies": {
"js-yaml": "^3.14.0",
"minimist": "^1.2.5",
"moment": "^2.27.0",
"nodemw": "^0.13.0",
"steam-user": "^4.24.3",
"wikiapi": "^1.10.0",
"minimist": "^1.2.8",
"moment": "^2.29.4",
"nodemw": "^0.19.0",
"steam-user": "^4.28.6",
"wikiapi": "^1.19.4",
"wikiparse": "^1.0.27"
}
}

View file

@ -39,7 +39,7 @@ export abstract class YamlFile<T = object> {
load(): void {
if (fs.existsSync(this.path)) {
this.data = yaml.safeLoad(fs.readFileSync(this.path, "utf8"));
this.data = yaml.safeLoad(fs.readFileSync(this.path, "utf8")) as T;
} else {
this.data = this.defaultData;
}

View file

@ -149,7 +149,7 @@ interface SteamProductInfoResponse {
export async function getSteamClient(): Promise<SteamUser> {
const client = new SteamUser();
client.logOn();
client.logOn({ anonymous: true });
await new Promise<void>(resolve => {
client.on("loggedOn", () => {
resolve();