UNPKG

yandex-cloud

Version:
13 lines (10 loc) 470 B
const run = require('./').run; const { InvokeService } = require('../lib/serverless/functions/v1/invoke'); run(async (session, _, folderId) => { const invokeService = new InvokeService(session); const resp = await invokeService.invoke('d4e9s9vmnd5lhlc8gmq2'); console.log(`Got function response with keys`, Object.keys(resp)); const myWrapped = invokeService.wrap('d4e9s9vmnd5lhlc8gmq2'); const data = await myWrapped(); console.log(data); });