aws-lambda-stream
Advanced tools
@@ -14,4 +14,4 @@ "use strict"; | ||
const run = (event, context) => { | ||
stack.push((n, o, e, c) => handle(e, c, o)); // do the real work last | ||
const runner = index => _bluebird.default.resolve(stack[index](() => runner(index + 1), opt, event, context)); | ||
const mwStack = [...stack, (n, o, e, c) => handle(e, c, o)]; // Do the real work last | ||
const runner = index => _bluebird.default.resolve(mwStack[index](() => runner(index + 1), opt, event, context)); | ||
return _bluebird.default.resolve(runner(0)); | ||
@@ -18,0 +18,0 @@ }; |
{ | ||
"name": "aws-lambda-stream", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "Create stream processors with AWS Lambda functions.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
236015
0.01%