@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.js CHANGED
@@ -276,10 +276,16 @@ __name(utcDay, "utcDay");
276
276
  function childSinkWriter(writer) {
277
277
  return {
278
278
  write: /* @__PURE__ */ __name((chunk) => writer.write(chunk), "write"),
279
+ // The top-level run owns end/fail — but what the child wrote must not be held back past it.
279
280
  end: /* @__PURE__ */ __name(async () => {
281
+ await writer.flush?.();
280
282
  }, "end"),
281
283
  fail: /* @__PURE__ */ __name(async () => {
282
- }, "fail")
284
+ await writer.flush?.();
285
+ }, "fail"),
286
+ flush: /* @__PURE__ */ __name(async () => {
287
+ await writer.flush?.();
288
+ }, "flush")
283
289
  };
284
290
  }
285
291
  __name(childSinkWriter, "childSinkWriter");