@domain.js/main 0.6.2 → 0.6.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/http/router.js +1 -1
- package/package.json +1 -1
package/dist/http/router.js
CHANGED
|
@@ -91,7 +91,7 @@ function Router(deps) {
|
|
|
91
91
|
throw Error(`Missing domain method: ${methodPath}`);
|
|
92
92
|
}
|
|
93
93
|
const send = async (res, results, isEventStream = false) => {
|
|
94
|
-
if (typeof results === "object" &&
|
|
94
|
+
if (results && typeof results === "object" && typeof results.pipe === "function") {
|
|
95
95
|
if (isEventStream) {
|
|
96
96
|
res.setHeader("Content-Type", "text/event-stream");
|
|
97
97
|
await new Promise((resolve) => {
|