UNPKG

pipio

Version:

Chain functions together and handle a complex workflow

14 lines (13 loc) 367 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lambdaWrapper = void 0; /** * Lambda wrapper middleware * Convert lambda handler arguments to pipio compatible arguments * @returns A pipio handlers */ const lambdaWrapper = () => (args) => ({ event: args[0], context: args[1], }); exports.lambdaWrapper = lambdaWrapper;