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.
@@ -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.#request.body?.getReader();
530
+ const reader = this.#reqReader ??= this.bodyReader();
524
531
  if (!reader) {
525
532
  this.push(null);
526
533
  return;
package/dist/cli.mjs CHANGED
@@ -184,7 +184,7 @@ function getResponseFormat(res) {
184
184
  //#region src/cli/_meta.ts
185
185
  const srvxMeta = {
186
186
  name: "srvx",
187
- version: "0.11.14",
187
+ version: "0.11.15",
188
188
  description: "Universal Server."
189
189
  };
190
190
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "srvx",
3
- "version": "0.11.14",
3
+ "version": "0.11.15",
4
4
  "description": "Universal Server.",
5
5
  "homepage": "https://srvx.h3.dev",
6
6
  "license": "MIT",