@opentelemetry/instrumentation-cucumber
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -26,2 +26,3 @@ "use strict"; | ||
const steps = ['Given', 'When', 'Then']; | ||
const supportedVersions = ['>=8.0.0 <11']; | ||
class CucumberInstrumentation extends instrumentation_1.InstrumentationBase { | ||
@@ -33,3 +34,3 @@ constructor(config = {}) { | ||
return [ | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('@cucumber/cucumber', ['^8.0.0', '^9.0.0', '^10.0.0'], (moduleExports) => { | ||
new instrumentation_1.InstrumentationNodeModuleDefinition('@cucumber/cucumber', supportedVersions, (moduleExports) => { | ||
this.module = moduleExports; | ||
@@ -56,3 +57,3 @@ steps.forEach(step => { | ||
}, [ | ||
new instrumentation_1.InstrumentationNodeModuleFile('@cucumber/cucumber/lib/runtime/test_case_runner.js', ['^8.0.0', '^9.0.0', '^10.0.0'], moduleExports => { | ||
new instrumentation_1.InstrumentationNodeModuleFile('@cucumber/cucumber/lib/runtime/test_case_runner.js', supportedVersions, moduleExports => { | ||
if ((0, instrumentation_1.isWrapped)(moduleExports.default.prototype.run)) { | ||
@@ -59,0 +60,0 @@ this._unwrap(moduleExports.default.prototype, 'run'); |
@@ -1,3 +0,3 @@ | ||
export declare const PACKAGE_VERSION = "0.7.0"; | ||
export declare const PACKAGE_VERSION = "0.8.0"; | ||
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-cucumber"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,4 +20,4 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.PACKAGE_VERSION = '0.7.0'; | ||
exports.PACKAGE_VERSION = '0.8.0'; | ||
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-cucumber'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-cucumber", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "OpenTelemetry instrumentation for `@cucumber/cucumber` automated tests runner", | ||
@@ -15,2 +15,3 @@ "main": "build/src/index.js", | ||
"lint:fix": "eslint . --ext .ts --fix", | ||
"lint:readme": "node ../../../scripts/lint-readme.js", | ||
"precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-cucumber --include-dependencies", | ||
@@ -70,3 +71,3 @@ "prewatch": "npm run precompile", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-cucumber#readme", | ||
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020" | ||
"gitHead": "ad8436d6a4174f2288cb939080cd4e74da94b0d7" | ||
} |
@@ -18,2 +18,6 @@ # OpenTelemetry Cucumber Instrumentation for Node.js | ||
## Supported Versions | ||
- [`@cucumber/cucumber`](https://www.npmjs.com/package/@cucumber/cucumber) versions `>=8.0.0 <11` | ||
## Usage | ||
@@ -20,0 +24,0 @@ |
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
62068
391
78