lambda-serverless-api
Advanced tools
Comparing version 10.1.5 to 10.1.6
@@ -9,2 +9,4 @@ /* load-hot */ | ||
const getErrorMessage = (error) => String(get(error, 'message', 'Exception')).split('\n')[0]; | ||
export const asApiGatewayResponse = (resp, stringifyJson = true) => { | ||
@@ -112,3 +114,3 @@ if (get(resp, 'isApiResponse') !== true) { | ||
logger.warn([ | ||
`${handler.route}: ${error.message}`, | ||
`${getErrorMessage(error)}: ${handler.route}`, | ||
JSON.stringify({ | ||
@@ -115,0 +117,0 @@ context: 'lambda-serverless-api', |
@@ -41,3 +41,3 @@ { | ||
}, | ||
"version": "10.1.5", | ||
"version": "10.1.6", | ||
"scripts": { | ||
@@ -44,0 +44,0 @@ "clean": "rm -rf lib", |
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
99828
2927