@opentelemetry/instrumentation-aws-lambda
Advanced tools
Comparing version 0.35.1 to 0.35.2
@@ -20,2 +20,3 @@ "use strict"; | ||
const path = require("path"); | ||
const fs = require("fs"); | ||
const instrumentation_1 = require("@opentelemetry/instrumentation"); | ||
@@ -57,4 +58,12 @@ const api_1 = require("@opentelemetry/api"); | ||
if (!filename.endsWith('.js')) { | ||
// Patching infrastructure currently requires a filename when requiring with an absolute path. | ||
filename += '.js'; | ||
// its impossible to know in advance if the user has a cjs or js file. | ||
// check that the .js file exists otherwise fallback to next known possibility | ||
try { | ||
fs.statSync(`${filename}.js`); | ||
filename += '.js'; | ||
} | ||
catch (e) { | ||
// fallback to .cjs | ||
filename += '.cjs'; | ||
} | ||
} | ||
@@ -74,3 +83,3 @@ return [ | ||
}, (moduleExports) => { | ||
if (moduleExports == undefined) | ||
if (moduleExports == null) | ||
return; | ||
@@ -77,0 +86,0 @@ api_1.diag.debug('Removing patch for lambda handler'); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.1"; | ||
export declare const VERSION = "0.35.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.35.1'; | ||
exports.VERSION = '0.35.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-aws-lambda", | ||
"version": "0.35.1", | ||
"version": "0.35.2", | ||
"description": "OpenTelemetry AWS Lambda automatic instrumentation package.", | ||
@@ -55,6 +55,5 @@ "main": "build/src/index.js", | ||
"@types/node": "18.11.7", | ||
"gts": "3.1.0", | ||
"mocha": "7.2.0", | ||
"nyc": "15.1.0", | ||
"rimraf": "4.2.0", | ||
"rimraf": "5.0.0", | ||
"ts-mocha": "10.0.0", | ||
@@ -64,4 +63,4 @@ "typescript": "4.4.4" | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.38.0", | ||
"@opentelemetry/propagator-aws-xray": "^1.2.0", | ||
"@opentelemetry/instrumentation": "^0.39.1", | ||
"@opentelemetry/propagator-aws-xray": "^1.2.1", | ||
"@opentelemetry/resources": "^1.8.0", | ||
@@ -72,3 +71,3 @@ "@opentelemetry/semantic-conventions": "^1.0.0", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-aws-lambda#readme", | ||
"gitHead": "f7183016487c876829abce6437bbe71f76b7538e" | ||
"gitHead": "418b6f6d471b4b38507e8c6ef2916bee31ed2001" | ||
} |
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
44835
12
389
5
+ Added@opentelemetry/instrumentation@0.39.1(transitive)
+ Addedrequire-in-the-middle@7.4.0(transitive)
- Removed@opentelemetry/instrumentation@0.38.0(transitive)
- Removedrequire-in-the-middle@6.0.0(transitive)