Skip to content

Commit 1998c70

Browse files
committed
fix wx wrappers
1 parent 507d7d3 commit 1998c70

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

webui/src/main/assets/ext/wrapInputStream.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { wrapToReadableStream, defaultStreamOptions } from "https://mui.kernelsu.org/internal/assets/wrapToReadableStream.mjs"
1+
import { wrapToReadableStream, defaultStreamOptions } from "https://mui.kernelsu.org/internal/assets/ext/wrapToReadableStream.mjs"
22

3-
export async function wrapInputStream(inputStream, options = {}) {
3+
async function wrapInputStream(inputStream, options = {}) {
44
const mergedOptions = { ...defaultStreamOptions, ...options };
55

66
try {
@@ -15,3 +15,5 @@ export async function wrapInputStream(inputStream, options = {}) {
1515
throw new Error("wrapInputStream failed: " + error.message);
1616
}
1717
}
18+
19+
export { wrapInputStream }

webui/src/main/assets/ext/wrapToReadableStream.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
export const defaultStreamOptions = {
1+
const defaultStreamOptions = {
22
chunkSize: 1024 * 1024,
33
signal: null,
44
};
55

6-
export async function wrapToReadableStream(inputStream, options = {}) {
6+
async function wrapToReadableStream(inputStream, options = {}) {
77
const mergedOptions = { ...defaultStreamOptions, ...options };
88

99
return new Promise((resolve, reject) => {
@@ -77,3 +77,5 @@ export async function wrapToReadableStream(inputStream, options = {}) {
7777
resolve(stream);
7878
});
7979
}
80+
81+
export { defaultStreamOptions, wrapToReadableStream }

0 commit comments

Comments
 (0)