@eyepop.ai/eyepop 1.14.0 → 1.14.2
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/eyepop.index.mjs
CHANGED
|
@@ -8817,6 +8817,14 @@ function readableStreamAsyncIterable(stream) {
|
|
|
8817
8817
|
}
|
|
8818
8818
|
};
|
|
8819
8819
|
}
|
|
8820
|
+
function readableStreamFromString(s) {
|
|
8821
|
+
return new ReadableStream({
|
|
8822
|
+
start(controller) {
|
|
8823
|
+
controller.enqueue(Buffer.from(s));
|
|
8824
|
+
controller.close();
|
|
8825
|
+
}
|
|
8826
|
+
});
|
|
8827
|
+
}
|
|
8820
8828
|
|
|
8821
8829
|
// worker/worker_types.ts
|
|
8822
8830
|
var VideoMode = /* @__PURE__ */ ((VideoMode2) => {
|
|
@@ -8927,12 +8935,18 @@ var AbstractJob = class {
|
|
|
8927
8935
|
} else if (response.status != 200) {
|
|
8928
8936
|
reject(`upload error ${response.status}: ${await response.text()}`);
|
|
8929
8937
|
break;
|
|
8930
|
-
} else if (
|
|
8931
|
-
reject("response body is empty");
|
|
8932
|
-
break;
|
|
8933
|
-
} else {
|
|
8938
|
+
} else if (response.body) {
|
|
8934
8939
|
resolve(response.body);
|
|
8935
8940
|
break;
|
|
8941
|
+
} else {
|
|
8942
|
+
const text = await response.text();
|
|
8943
|
+
if (text) {
|
|
8944
|
+
resolve(readableStreamFromString(text));
|
|
8945
|
+
break;
|
|
8946
|
+
} else {
|
|
8947
|
+
reject("response body is empty");
|
|
8948
|
+
break;
|
|
8949
|
+
}
|
|
8936
8950
|
}
|
|
8937
8951
|
} catch (error) {
|
|
8938
8952
|
if (retries--) {
|
|
@@ -10195,7 +10209,7 @@ if ("document" in globalThis && "implementation" in globalThis.document) {
|
|
|
10195
10209
|
this.logger
|
|
10196
10210
|
);
|
|
10197
10211
|
} else {
|
|
10198
|
-
this.logger.warn(`[${TcpSockets}] Could not load '${TcpSocketsName}' (reason
|
|
10212
|
+
this.logger.warn(`[${TcpSockets}] Could not load '${TcpSocketsName}' (reason: ${TcpSocketsError}), include this package in your application to enable streamed uploads; without this package local files have to be loaded into memory uploading and this will cause Out-Of-Memory errors for large files.`);
|
|
10199
10213
|
try {
|
|
10200
10214
|
const chunks = [];
|
|
10201
10215
|
const reader = streamBody.getReader();
|
|
@@ -12294,7 +12308,8 @@ export {
|
|
|
12294
12308
|
WebrtcWhep,
|
|
12295
12309
|
WebrtcWhip,
|
|
12296
12310
|
WorkerEndpoint,
|
|
12297
|
-
index_default as default
|
|
12311
|
+
index_default as default,
|
|
12312
|
+
readableStreamFromString
|
|
12298
12313
|
};
|
|
12299
12314
|
/*! Bundled license information:
|
|
12300
12315
|
|