From 6793bd742a958354a09a934618104e5a8b8d6bee Mon Sep 17 00:00:00 2001 From: Tanmaya Panda Date: Thu, 11 Jan 2024 10:53:30 +0530 Subject: [PATCH] removed unnecessary constant --- src/ServerClient/ADXClient.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ServerClient/ADXClient.ts b/src/ServerClient/ADXClient.ts index 74163cc..df3f6f1 100644 --- a/src/ServerClient/ADXClient.ts +++ b/src/ServerClient/ADXClient.ts @@ -2,7 +2,6 @@ import { ADXResponse, RawADXResponse } from "./ADXResponse"; const packageJson = require('../../package.json'); type ADXTokenProvider = () => Promise; -const version = packageJson.version; declare global { interface Crypto { @@ -73,7 +72,7 @@ export class ADXClient { Authorization: `Bearer ${token}`, "x-ms-client-request-id": `KTrender;${self.crypto.randomUUID()}`, "x-ms-app": "KustoTrender", - "x-ms-client-version": version, + "x-ms-client-version": packageJson.version, "x-ms-user" : "KustoTrender" }, body: JSON.stringify(body),