srvx 0.11.14 → 0.11.15
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/adapters/node.mjs +8 -1
- package/dist/cli.mjs +1 -1
- package/package.json +1 -1
package/dist/adapters/node.mjs
CHANGED
|
@@ -519,8 +519,15 @@ var WebRequestSocket = class extends Duplex {
|
|
|
519
519
|
port: 0
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
+
bodyReader() {
|
|
523
|
+
try {
|
|
524
|
+
return this.#request.body?.getReader();
|
|
525
|
+
} catch (error) {
|
|
526
|
+
this.emit("error", error);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
522
529
|
_read(_size) {
|
|
523
|
-
const reader = this.#reqReader ??= this
|
|
530
|
+
const reader = this.#reqReader ??= this.bodyReader();
|
|
524
531
|
if (!reader) {
|
|
525
532
|
this.push(null);
|
|
526
533
|
return;
|
package/dist/cli.mjs
CHANGED