mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
upgrade deps
This commit is contained in:
16 files changed
+81
-95
No files matched your search
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user