From c77519c229711898ad8f3f27789a422d7561fea0 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Fri, 23 Feb 2024 17:11:52 +0800 Subject: [PATCH] chore: update `WEB_VIEW_VERSION` and queries fix: readLines may read corrupted data --- CHANGELOG.md | 6 ++++++ gui/src-tauri/tauri.conf.json | 2 +- src/constant.ts | 6 +++--- src/utils.ts | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1fa11e..5961192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.4.14 + +chore: update `WEB_VIEW_VERSION` and queries + +fix: readLines may read corrupted data + ## 0.4.13 refactor: upgraded the version of dependencies and fixed the deprecated API diff --git a/gui/src-tauri/tauri.conf.json b/gui/src-tauri/tauri.conf.json index c831bf8..afe5afc 100644 --- a/gui/src-tauri/tauri.conf.json +++ b/gui/src-tauri/tauri.conf.json @@ -9,7 +9,7 @@ }, "package": { "productName": "s3si-ts", - "version": "0.4.13" + "version": "0.4.14" }, "tauri": { "allowlist": { diff --git a/src/constant.ts b/src/constant.ts index fc77e60..9963bee 100644 --- a/src/constant.ts +++ b/src/constant.ts @@ -1,9 +1,9 @@ import type { StatInkPostBody, VsHistoryDetail } from "./types.ts"; export const AGENT_NAME = "s3si.ts"; -export const S3SI_VERSION = "0.4.13"; -export const NSOAPP_VERSION = "2.8.1"; -export const WEB_VIEW_VERSION = "6.0.0-1249ecb9"; +export const S3SI_VERSION = "0.4.14"; +export const NSOAPP_VERSION = "2.9.0"; +export const WEB_VIEW_VERSION = "6.0.0-eb33aadc"; export enum Queries { HomeQuery = "51fc56bbf006caf37728914aa8bc0e2c86a80cf195b4d4027d6822a3623098a8", diff --git a/src/utils.ts b/src/utils.ts index fc2f988..ea68a35 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -12,7 +12,7 @@ export async function* readLines(readable: ReadableStream) { let buffer = ""; for await (const chunk of readable) { - buffer += decoder.decode(chunk); + buffer += decoder.decode(chunk, { stream: true }); let lineEndIndex; while ((lineEndIndex = buffer.indexOf("\n")) !== -1) {