@dudousxd/nestjs-agent 1.19.0 → 1.19.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/durable/index.cjs +7 -1
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.js +7 -1
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
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");
|