chore: update `WEB_VIEW_VERSION` and queries

fix: readLines may read corrupted data
splashcat-exporter-v2
spacemeowx2 2024-02-23 17:11:52 +08:00
parent 5bc3003f6d
commit c77519c229
4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
## 0.4.14
chore: update `WEB_VIEW_VERSION` and queries
fix: readLines may read corrupted data
## 0.4.13 ## 0.4.13
refactor: upgraded the version of dependencies and fixed the deprecated API refactor: upgraded the version of dependencies and fixed the deprecated API

View File

@ -9,7 +9,7 @@
}, },
"package": { "package": {
"productName": "s3si-ts", "productName": "s3si-ts",
"version": "0.4.13" "version": "0.4.14"
}, },
"tauri": { "tauri": {
"allowlist": { "allowlist": {

View File

@ -1,9 +1,9 @@
import type { StatInkPostBody, VsHistoryDetail } from "./types.ts"; import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
export const AGENT_NAME = "s3si.ts"; export const AGENT_NAME = "s3si.ts";
export const S3SI_VERSION = "0.4.13"; export const S3SI_VERSION = "0.4.14";
export const NSOAPP_VERSION = "2.8.1"; export const NSOAPP_VERSION = "2.9.0";
export const WEB_VIEW_VERSION = "6.0.0-1249ecb9"; export const WEB_VIEW_VERSION = "6.0.0-eb33aadc";
export enum Queries { export enum Queries {
HomeQuery = HomeQuery =
"51fc56bbf006caf37728914aa8bc0e2c86a80cf195b4d4027d6822a3623098a8", "51fc56bbf006caf37728914aa8bc0e2c86a80cf195b4d4027d6822a3623098a8",

View File

@ -12,7 +12,7 @@ export async function* readLines(readable: ReadableStream<Uint8Array>) {
let buffer = ""; let buffer = "";
for await (const chunk of readable) { for await (const chunk of readable) {
buffer += decoder.decode(chunk); buffer += decoder.decode(chunk, { stream: true });
let lineEndIndex; let lineEndIndex;
while ((lineEndIndex = buffer.indexOf("\n")) !== -1) { while ((lineEndIndex = buffer.indexOf("\n")) !== -1) {