@middy/core
Advanced tools
Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6
@@ -76,3 +76,3 @@ "use strict"; | ||
*/ | ||
module.exports = (handler = () => {}, plugin) => { | ||
const middy = (handler = () => {}, plugin) => { | ||
var _plugin$beforePrefetc; | ||
@@ -101,3 +101,3 @@ | ||
await runMiddlewares(beforeMiddlewares, request, plugin); | ||
await runMiddlewares(beforeMiddlewares, request, plugin); // catch short circuit | ||
@@ -107,3 +107,2 @@ if (request.response !== undefined) { | ||
// catch short circuit | ||
await (plugin === null || plugin === void 0 ? void 0 : (_plugin$requestEnd = plugin.requestEnd) === null || _plugin$requestEnd === void 0 ? void 0 : _plugin$requestEnd.call(plugin)); | ||
@@ -221,1 +220,3 @@ return request.response; | ||
}; | ||
module.exports = middy; |
{ | ||
"name": "@middy/core", | ||
"version": "2.0.0-alpha.5", | ||
"version": "2.0.0-alpha.6", | ||
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda (core package)", | ||
@@ -48,3 +48,3 @@ "type": "commonjs", | ||
}, | ||
"gitHead": "2e69ea2322abcdcf88adde11fda4d04e4c038b54" | ||
"gitHead": "e6ab94a1f33ca215f63ee613bc9469ccd56caf21" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14800