chuvsu-js 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lk/client.js +1 -2
- package/dist/tt/client.js +1 -2
- package/package.json +1 -1
package/dist/lk/client.js
CHANGED
|
@@ -55,8 +55,7 @@ export class StudentPortalClient {
|
|
|
55
55
|
}
|
|
56
56
|
isBinarySessionExpired(response) {
|
|
57
57
|
const prefix = response.body.subarray(0, 8_192).toString("utf8");
|
|
58
|
-
return this.isSessionExpired(prefix)
|
|
59
|
-
response.contentType?.toLowerCase().includes("text/html") === true;
|
|
58
|
+
return this.isSessionExpired(prefix);
|
|
60
59
|
}
|
|
61
60
|
async authGetBuffer(url) {
|
|
62
61
|
let res = await this.http.getBufferResponse(url);
|
package/dist/tt/client.js
CHANGED
|
@@ -191,8 +191,7 @@ export class TimetableClient {
|
|
|
191
191
|
}
|
|
192
192
|
isBinarySessionExpired(response) {
|
|
193
193
|
const prefix = response.body.subarray(0, 8_192).toString("utf8");
|
|
194
|
-
return this.isSessionExpired(prefix)
|
|
195
|
-
response.contentType?.toLowerCase().includes("text/html") === true;
|
|
194
|
+
return this.isSessionExpired(prefix);
|
|
196
195
|
}
|
|
197
196
|
async relogin() {
|
|
198
197
|
if (!this.loginMode)
|