@opentelemetry/instrumentation
Advanced tools
Comparing version 0.29.2 to 0.30.0
@@ -99,2 +99,3 @@ /* | ||
InstrumentationBase.prototype._onRequire = function (module, exports, name, baseDir) { | ||
var _this = this; | ||
var _a; | ||
@@ -122,15 +123,16 @@ if (!baseDir) { | ||
} | ||
return exports; | ||
} | ||
else { | ||
// internal file | ||
var files = (_a = module.files) !== null && _a !== void 0 ? _a : []; | ||
var file = files.find(function (f) { return f.name === name; }); | ||
if (file && isSupported(file.supportedVersions, version, module.includePrerelease)) { | ||
file.moduleExports = exports; | ||
if (this._enabled) { | ||
return file.patch(exports, module.moduleVersion); | ||
} | ||
// internal file | ||
var files = (_a = module.files) !== null && _a !== void 0 ? _a : []; | ||
var supportedFileInstrumentations = files | ||
.filter(function (f) { return f.name === name; }) | ||
.filter(function (f) { return isSupported(f.supportedVersions, version, module.includePrerelease); }); | ||
return supportedFileInstrumentations.reduce(function (patchedExports, file) { | ||
file.moduleExports = patchedExports; | ||
if (_this._enabled) { | ||
return file.patch(patchedExports, module.moduleVersion); | ||
} | ||
} | ||
return exports; | ||
return patchedExports; | ||
}, exports); | ||
}; | ||
@@ -137,0 +139,0 @@ InstrumentationBase.prototype.enable = function () { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.29.2"; | ||
export declare const VERSION = "0.30.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.29.2'; | ||
export var VERSION = '0.30.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -91,15 +91,16 @@ /* | ||
} | ||
return exports; | ||
} | ||
else { | ||
// internal file | ||
const files = (_a = module.files) !== null && _a !== void 0 ? _a : []; | ||
const file = files.find(f => f.name === name); | ||
if (file && isSupported(file.supportedVersions, version, module.includePrerelease)) { | ||
file.moduleExports = exports; | ||
if (this._enabled) { | ||
return file.patch(exports, module.moduleVersion); | ||
} | ||
// internal file | ||
const files = (_a = module.files) !== null && _a !== void 0 ? _a : []; | ||
const supportedFileInstrumentations = files | ||
.filter(f => f.name === name) | ||
.filter(f => isSupported(f.supportedVersions, version, module.includePrerelease)); | ||
return supportedFileInstrumentations.reduce((patchedExports, file) => { | ||
file.moduleExports = patchedExports; | ||
if (this._enabled) { | ||
return file.patch(patchedExports, module.moduleVersion); | ||
} | ||
} | ||
return exports; | ||
return patchedExports; | ||
}, exports); | ||
} | ||
@@ -106,0 +107,0 @@ enable() { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.29.2"; | ||
export declare const VERSION = "0.30.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '0.29.2'; | ||
export const VERSION = '0.30.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -94,15 +94,16 @@ "use strict"; | ||
} | ||
return exports; | ||
} | ||
else { | ||
// internal file | ||
const files = (_a = module.files) !== null && _a !== void 0 ? _a : []; | ||
const file = files.find(f => f.name === name); | ||
if (file && isSupported(file.supportedVersions, version, module.includePrerelease)) { | ||
file.moduleExports = exports; | ||
if (this._enabled) { | ||
return file.patch(exports, module.moduleVersion); | ||
} | ||
// internal file | ||
const files = (_a = module.files) !== null && _a !== void 0 ? _a : []; | ||
const supportedFileInstrumentations = files | ||
.filter(f => f.name === name) | ||
.filter(f => isSupported(f.supportedVersions, version, module.includePrerelease)); | ||
return supportedFileInstrumentations.reduce((patchedExports, file) => { | ||
file.moduleExports = patchedExports; | ||
if (this._enabled) { | ||
return file.patch(patchedExports, module.moduleVersion); | ||
} | ||
} | ||
return exports; | ||
return patchedExports; | ||
}, exports); | ||
} | ||
@@ -109,0 +110,0 @@ enable() { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.29.2"; | ||
export declare const VERSION = "0.30.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.29.2'; | ||
exports.VERSION = '0.30.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation", | ||
"version": "0.29.2", | ||
"version": "0.30.0", | ||
"description": "Base class for node which OpenTelemetry instrumentation modules extend", | ||
@@ -71,3 +71,3 @@ "author": "OpenTelemetry Authors", | ||
"dependencies": { | ||
"@opentelemetry/api-metrics": "0.29.2", | ||
"@opentelemetry/api-metrics": "0.30.0", | ||
"require-in-the-middle": "^5.0.3", | ||
@@ -110,3 +110,6 @@ "semver": "^7.3.2", | ||
}, | ||
"gitHead": "51afd54bd63e46d5d530266761144c7be2f6b3a7" | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
"gitHead": "e39ab883b18636238ef0fd741df4ce5ed53e8d04" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
271260
2850
+ Added@opentelemetry/api-metrics@0.30.0(transitive)
- Removed@opentelemetry/api-metrics@0.29.2(transitive)