node不支持ReadableStream

This commit is contained in:
wkj 2025-05-15 12:58:42 +08:00
parent f48e723391
commit 8cb5d5316b
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ class SimpleConnector {
};
}
async serializeResult(result, opRecords, headers, body, message) {
if (result instanceof stream_1.Stream || result instanceof Buffer || result instanceof ReadableStream) {
if (result instanceof stream_1.Stream || result instanceof Buffer) {
return {
body: result,
headers: {

View File

@ -221,7 +221,7 @@ export default class SimpleConnector<ED extends EntityDict & BaseEntityDict, Fro
body: any,
message?: string
): Promise<{ body: any; headers?: Record<string, any> | undefined }> {
if (result instanceof Stream || result instanceof Buffer || result instanceof ReadableStream) {
if (result instanceof Stream || result instanceof Buffer) {
return {
body: result,
headers: {