UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

11 lines (10 loc) 505 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBlob = exports.isReadableStream = void 0; const isReadableStream = (stream) => typeof ReadableStream === "function" && (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream); exports.isReadableStream = isReadableStream; const isBlob = (blob) => { return typeof Blob === "function" && (blob?.constructor?.name === Blob.name || blob instanceof Blob); }; exports.isBlob = isBlob;