UNPKG

@smithy/util-middleware

Version:
7 lines (6 loc) 186 B
export const normalizeProvider = (input) => { if (typeof input === "function") return input; const promisified = Promise.resolve(input); return () => promisified; };