@dudousxd/nestjs-agent 1.19.1 → 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/durable/index.js
CHANGED
|
@@ -15,10 +15,16 @@ __name(utcDay, "utcDay");
|
|
|
15
15
|
function childSinkWriter(writer) {
|
|
16
16
|
return {
|
|
17
17
|
write: /* @__PURE__ */ __name((chunk) => writer.write(chunk), "write"),
|
|
18
|
+
// The top-level run owns end/fail — but what the child wrote must not be held back past it.
|
|
18
19
|
end: /* @__PURE__ */ __name(async () => {
|
|
20
|
+
await writer.flush?.();
|
|
19
21
|
}, "end"),
|
|
20
22
|
fail: /* @__PURE__ */ __name(async () => {
|
|
21
|
-
|
|
23
|
+
await writer.flush?.();
|
|
24
|
+
}, "fail"),
|
|
25
|
+
flush: /* @__PURE__ */ __name(async () => {
|
|
26
|
+
await writer.flush?.();
|
|
27
|
+
}, "flush")
|
|
22
28
|
};
|
|
23
29
|
}
|
|
24
30
|
__name(childSinkWriter, "childSinkWriter");
|