FreeAllMedia / akiro

Magically compile NPM packages with native extensions for AWS Lambda.
MIT License
10 stars 1 forks source link

Upgrade to AkiroBuilder to Node4.3 #4

Open dcrockwell opened 8 years ago

dcrockwell commented 8 years ago

AkiroBuilder needs to be updated to replace the context-based returns wtih the 4.3 callback-style function returns:

// old way
function handler(event, context) {
    context.fail();
}
// new way
function handler(event, context, callback) {
    callback(new Error());
}