[release-12.0.1] Prometheus: Fix semver import path (#104945)
Prometheus: Fix semver import path (#104756)
chore(prometheus): import from semver so consumers builds dont break with esm
(cherry picked from commit 90f628abff)
This commit is contained in:
@@ -3,7 +3,7 @@ import { defaults } from 'lodash';
|
||||
import { tz } from 'moment-timezone';
|
||||
import { lastValueFrom, Observable, throwError } from 'rxjs';
|
||||
import { map, tap } from 'rxjs/operators';
|
||||
import semver from 'semver/preload';
|
||||
import { gte } from 'semver';
|
||||
|
||||
import {
|
||||
AbstractQuery,
|
||||
@@ -214,7 +214,7 @@ export class PrometheusDatasource
|
||||
return false;
|
||||
}
|
||||
|
||||
return semver.gte(this.datasourceConfigurationPrometheusVersion, targetVersion);
|
||||
return gte(this.datasourceConfigurationPrometheusVersion, targetVersion);
|
||||
}
|
||||
|
||||
_addTracingHeaders(httpOptions: PromQueryRequest, options: DataQueryRequest<PromQuery>) {
|
||||
|
||||
Reference in New Issue
Block a user