@dudousxd/nestjs-agent 1.19.1 → 1.19.3

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/index.cjs CHANGED
@@ -354,10 +354,16 @@ __name(utcDay, "utcDay");
354
354
  function childSinkWriter(writer) {
355
355
  return {
356
356
  write: /* @__PURE__ */ __name((chunk) => writer.write(chunk), "write"),
357
+ // The top-level run owns end/fail — but what the child wrote must not be held back past it.
357
358
  end: /* @__PURE__ */ __name(async () => {
359
+ await writer.flush?.();
358
360
  }, "end"),
359
361
  fail: /* @__PURE__ */ __name(async () => {
360
- }, "fail")
362
+ await writer.flush?.();
363
+ }, "fail"),
364
+ flush: /* @__PURE__ */ __name(async () => {
365
+ await writer.flush?.();
366
+ }, "flush")
361
367
  };
362
368
  }
363
369
  __name(childSinkWriter, "childSinkWriter");