alpha-lambda-bunyan
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -18,3 +18,2 @@ 'use strict'; | ||
const newContext = _.cloneDeep(context); | ||
const log = bunyan.createLogger({ | ||
@@ -32,3 +31,3 @@ name: context.functionName, | ||
return _.assign(newContext, { log, child }); | ||
return _.assign(context, { log, child }); | ||
} | ||
@@ -38,4 +37,3 @@ | ||
return function(event, context, next) { | ||
const newContext = extend(context, options); | ||
return next(null, newContext); | ||
return next(null, extend(context, options)); | ||
}; | ||
@@ -42,0 +40,0 @@ }; |
{ | ||
"name": "alpha-lambda-bunyan", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Bunyan logger middleware for alpha-lambda", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
106681
3085