serverless-offline-edge-lambda
Version:
A plugin for the Serverless Framework that simulates the behavior of AWS CloudFront Edge Lambdas while developing offline.
23 lines • 635 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildContext = void 0;
function buildContext() {
return {
callbackWaitsForEmptyEventLoop: true,
functionName: '',
functionVersion: '',
invokedFunctionArn: '',
memoryLimitInMB: '128',
awsRequestId: '',
logGroupName: '',
logStreamName: '',
getRemainingTimeInMillis() {
return Infinity;
},
done() { },
fail() { },
succeed(messageOrObject) { },
};
}
exports.buildContext = buildContext;
//# sourceMappingURL=context.builder.js.map