Skip to content

Commit

Permalink
chore: update WEB_VIEW_VERSION and queries
Browse files Browse the repository at this point in the history
fix: readLines may read corrupted data
  • Loading branch information
spacemeowx2 committed Feb 23, 2024
1 parent 5bc3003 commit c77519c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"package": {
"productName": "s3si-ts",
"version": "0.4.13"
"version": "0.4.14"
},
"tauri": {
"allowlist": {
Expand Down
6 changes: 3 additions & 3 deletions src/constant.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function* readLines(readable: ReadableStream<Uint8Array>) {
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) {
Expand Down

0 comments on commit c77519c

Please sign in to comment.