@parameter1/micro
Advanced tools
Comparing version 1.1.22 to 1.2.0
{ | ||
"name": "@parameter1/micro", | ||
"version": "1.1.22", | ||
"version": "1.2.0", | ||
"description": "A wrapper for running JSON-based microservices.", | ||
@@ -31,3 +31,3 @@ "author": "Jacob Bare <jacob@parameter1.com>", | ||
}, | ||
"gitHead": "bbd09785f746be390c01d09b4802a28e1e0659da" | ||
"gitHead": "c6110ab07bdebebb96b17359a50e47956ca06283" | ||
} |
@@ -13,2 +13,5 @@ const micro = require('micro'); | ||
onActionStart, | ||
onActionEnd, | ||
onError, | ||
@@ -33,2 +36,3 @@ errorResponseFn, | ||
if (isFn(onActionStart)) await onActionStart(contextData); | ||
const data = await fn(params || {}, { | ||
@@ -40,2 +44,3 @@ req, | ||
}); | ||
if (isFn(onActionEnd)) await onActionEnd(contextData); | ||
return { data }; | ||
@@ -42,0 +47,0 @@ }; |
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
5815
136