instana-aws-lambda-auto-wrap
Advanced tools
Comparing version 1.79.0 to 1.79.1
{ | ||
"name": "instana-aws-lambda-auto-wrap", | ||
"version": "1.79.0", | ||
"version": "1.79.1", | ||
"description": "Automatically wrap AWS Lambdas for Instana tracing and monitoring without code modification.", | ||
@@ -57,3 +57,3 @@ "author": { | ||
"dependencies": { | ||
"@instana/aws-lambda": "^1.79.0" | ||
"@instana/aws-lambda": "^1.79.1" | ||
}, | ||
@@ -66,3 +66,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "58b5339a88d9f12e868889036b334562ce019fac" | ||
"gitHead": "d5d38529721d9bd104c51c71484ed1233b0f2a02" | ||
} |
@@ -15,5 +15,10 @@ 'use strict'; | ||
let wrappedHandler; | ||
if (!wrappedHandler) { | ||
const targetHandler = loadTargetHandlerFunction(); | ||
wrappedHandler = instana.wrap(targetHandler); | ||
} | ||
exports.handler = function instanaAutowrapHandler(event, context, callback) { | ||
const targetHandler = loadTargetHandlerFunction(); | ||
const wrappedHandler = instana.wrap(targetHandler); | ||
return wrappedHandler(event, context, callback); | ||
@@ -43,7 +48,5 @@ }; | ||
} | ||
if (typeof targetHandlerFunction !== 'function') { | ||
throw new lambdaRuntimeErrors.HandlerNotFound(`${targetHandlerEnvVar} is not a function`); | ||
} | ||
return targetHandlerFunction; | ||
@@ -50,0 +53,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
91
0
6739
4
Updated@instana/aws-lambda@^1.79.1