upgrade deps

This commit is contained in:
undefined committed 2023-11-25 06:12:57 +08:00
1 parent e1cb062ec0
commit e2bff17589
16 files changed
+81 -95

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@
"preferUnplugged": true,
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@types/shell-quote": "^1.7.4",
"@types/ws": "^8.5.9"
"@types/shell-quote": "^1.7.5",
"@types/ws": "^8.5.10"
}
}
+2 -1
View File
@@ -224,7 +224,8 @@ export default class Hydro {
const res = await this.post('login', {
uname: this.config.uname, password: this.config.password, rememberme: 'on',
});
await this.setCookie(res.headers['set-cookie'].join(';'));
const setCookie = res.headers['set-cookie'];
await this.setCookie((setCookie instanceof Array) ? setCookie.join(';') : setCookie);
}
async ensureLogin() {