Adrian Schweizer
03/21/2022, 4:09 PMThomas Ankcorn
03/21/2022, 4:15 PMthdxr
03/21/2022, 4:39 PMthdxr
03/21/2022, 4:40 PMthdxr
03/21/2022, 4:40 PMBoris Tane
03/21/2022, 5:40 PMAdrian Schweizer
03/21/2022, 6:36 PMAdrian Schweizer
03/21/2022, 7:41 PMAdrian Schweizer
03/21/2022, 8:12 PMThomas Ankcorn
03/21/2022, 8:23 PMAdrian Schweizer
03/21/2022, 8:47 PMRoss Coundon
03/22/2022, 7:50 AMRoss Coundon
03/22/2022, 7:51 AMconst handler
?Ross Coundon
03/22/2022, 7:54 AMThomas Ankcorn
03/22/2022, 11:31 AMexports.handler = handler(adapter(app))
Adrian Schweizer
03/22/2022, 11:33 AMAdrian Schweizer
03/22/2022, 11:39 AMThomas Ankcorn
03/22/2022, 11:41 AMAdrian Schweizer
03/22/2022, 11:41 AMconst laconia = require("@laconia/core");
const { s3 } = require("@laconia/event");
const app = objectFromS3 => console.log(objectFromS3);
const adapter = app => async event => app(await s3(event).getObject());
exports.handler = laconia(adapter(app));
Adrian Schweizer
03/22/2022, 11:43 AMRoss Coundon
03/22/2022, 11:47 AMAdrian Schweizer
03/22/2022, 11:48 AMAdrian Schweizer
03/22/2022, 12:02 PMlaconia
, because this is actually more or less what laconia doesAdrian Schweizer
03/22/2022, 12:03 PMconst handler = laconia(adapter(app));
Adrian Schweizer
03/22/2022, 12:06 PMAdrian Schweizer
03/22/2022, 12:11 PMThomas Ankcorn
03/22/2022, 8:12 PMRoss Coundon
03/22/2022, 8:15 PMAdrian Schweizer
03/22/2022, 8:26 PM