@opentelemetry/instrumentation-cucumber
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -6,3 +6,3 @@ import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; | ||
constructor(config?: CucumberInstrumentationConfig); | ||
init(): InstrumentationNodeModuleDefinition<any>[]; | ||
init(): InstrumentationNodeModuleDefinition[]; | ||
private static mapTags; | ||
@@ -9,0 +9,0 @@ private static setSpanToError; |
@@ -32,4 +32,3 @@ "use strict"; | ||
return [ | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('@cucumber/cucumber', ['^8.0.0', '^9.0.0', '^10.0.0'], (moduleExports, moduleVersion) => { | ||
this._diag.debug(`Applying patch for @cucumber/cucumber@${moduleVersion}`); | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('@cucumber/cucumber', ['^8.0.0', '^9.0.0', '^10.0.0'], (moduleExports) => { | ||
this.module = moduleExports; | ||
@@ -49,6 +48,5 @@ steps.forEach(step => { | ||
return moduleExports; | ||
}, (moduleExports, moduleVersion) => { | ||
}, (moduleExports) => { | ||
if (moduleExports === undefined) | ||
return; | ||
this._diag.debug(`Removing patch for @cucumber/cucumber@${moduleVersion}`); | ||
[...hooks, ...steps].forEach(method => { | ||
@@ -58,4 +56,3 @@ this._unwrap(moduleExports, method); | ||
}, [ | ||
new instrumentation_1.InstrumentationNodeModuleFile('@cucumber/cucumber/lib/runtime/test_case_runner.js', ['^8.0.0', '^9.0.0', '^10.0.0'], (moduleExports, moduleVersion) => { | ||
this._diag.debug(`Applying patch for @cucumber/cucumber/lib/runtime/test_case_runner.js@${moduleVersion}`); | ||
new instrumentation_1.InstrumentationNodeModuleFile('@cucumber/cucumber/lib/runtime/test_case_runner.js', ['^8.0.0', '^9.0.0', '^10.0.0'], moduleExports => { | ||
if ((0, instrumentation_1.isWrapped)(moduleExports.default.prototype.run)) { | ||
@@ -74,6 +71,5 @@ this._unwrap(moduleExports.default.prototype, 'run'); | ||
return moduleExports; | ||
}, (moduleExports, moduleVersion) => { | ||
}, moduleExports => { | ||
if (moduleExports === undefined) | ||
return; | ||
this._diag.debug(`Removing patch for @cucumber/cucumber/lib/runtime/test_case_runner.js@${moduleVersion}`); | ||
this._unwrap(moduleExports.default.prototype, 'run'); | ||
@@ -80,0 +76,0 @@ this._unwrap(moduleExports.default.prototype, 'runStep'); |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.5.0"; | ||
export declare const VERSION = "0.6.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.5.0'; | ||
exports.VERSION = '0.6.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-cucumber", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "OpenTelemetry cucumber automatic instrumentation package.", | ||
@@ -65,7 +65,7 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.50.0", | ||
"@opentelemetry/instrumentation": "^0.51.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-cucumber#readme", | ||
"gitHead": "17a0bc1da3baa472ba9b867eee3c60730cc130fb" | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
} |
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
60677
388
+ Added@opentelemetry/api-logs@0.51.1(transitive)
+ Added@opentelemetry/instrumentation@0.51.1(transitive)
+ Addedacorn-import-attributes@1.9.5(transitive)
+ Addedimport-in-the-middle@1.7.4(transitive)
- Removed@opentelemetry/api-logs@0.50.0(transitive)
- Removed@opentelemetry/instrumentation@0.50.0(transitive)
- Removedacorn-import-assertions@1.9.0(transitive)
- Removedimport-in-the-middle@1.7.1(transitive)