Update dependencies, except YAML for now since it has formatting changes
This commit is contained in:
parent
c18384129f
commit
307fc3470c
4 changed files with 1335 additions and 1034 deletions
2333
package-lock.json
generated
2333
package-lock.json
generated
File diff suppressed because it is too large
Load diff
20
package.json
20
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Reference in a new issue