node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

aog-micro-patch

aog-micro-patch

temporary patch for micro's request and response for actions-on-google

usage

import { ActionsSdkAssistant } from 'actions-on-google'
import micro from 'micro'
import patch from 'aog-micro-patch'
 
micro(async (req, res) => {
    const request = await patch.request(req)
    const response = patch.response(res)
    const assistant = new ActionsSdkAssistant({request, response})
    /* ... */
})