willfarrell on 3.2.0
willfarrell on main
ci: hide new ide Merge branch 'main' of https://… chore: version bump (compare)
willfarrell on main
feat: self-composing UseFN feat: inherited context propert… chore(lint): ts-standard --fix and 20 more (compare)
willfarrell on main
chore: dep updates (compare)
willfarrell on 3.1.1
willfarrell on main
feat: add in module param to npm chore: version bump (compare)
const handler = middy(awesomeLogic)
.use(jsonBodyParser())
.use(cors());
export default handler;
async function awesomeLogic(evt, ctx) {
// typeof evt.body === "string"
// it's a POST evt with content-type: application/json
}
typeof evt.body === "object"
httpHeaderNormalizer
middleware before the jsonBodyParser
.