UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

15 lines (14 loc) 383 B
export class SmithyMessageEncoderStream { constructor(options) { this.options = options; } [Symbol.asyncIterator]() { return this.asyncIterator(); } async *asyncIterator() { for await (const chunk of this.options.inputStream) { const payloadBuf = this.options.serializer(chunk); yield payloadBuf; } } }