Skip to content

Commit

Permalink
need to use safe-get to load otel/api's package.json now that it uses…
Browse files Browse the repository at this point in the history
… exports
  • Loading branch information
trentm committed Mar 4, 2024
1 parent e931cce commit d0e9a54
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ const otel = require('@opentelemetry/api');
const semver = require('semver');
const tape = require('tape');

const { safeGetPackageVersion } = require('../_utils');

const supportsGetActiveSpan = semver.satisfies(
require('@opentelemetry/api/package.json').version,
safeGetPackageVersion('@opentelemetry/api').version,
'>=1.2.0',
);

Expand Down

0 comments on commit d0e9a54

Please sign in to comment.