UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

4 lines (3 loc) 207 B
import { Readable } from "stream"; export const isStreamingPayload = (request) => request?.body instanceof Readable || (typeof ReadableStream !== "undefined" && request?.body instanceof ReadableStream);