From 9bb08eaf43f735b25c1a114b17b845c983014512 Mon Sep 17 00:00:00 2001 From: Yihezkel Schoenbrun Date: Wed, 18 Mar 2026 22:47:44 +0200 Subject: [PATCH 1/2] Remove EUII from x-ms-app --- packages/azure-kusto-data/src/clientDetails.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/azure-kusto-data/src/clientDetails.ts b/packages/azure-kusto-data/src/clientDetails.ts index d566788f..f4f2efda 100644 --- a/packages/azure-kusto-data/src/clientDetails.ts +++ b/packages/azure-kusto-data/src/clientDetails.ts @@ -3,6 +3,7 @@ import { isNodeLike } from "@azure/core-util"; import { userInfo } from "os"; +import { basename } from "path"; import { SDK_VERSION } from "./version.js"; // eslint-disable-next-line @typescript-eslint/no-namespace,@typescript-eslint/no-unused-vars -- This is the correct way to augment the global namespace @@ -36,7 +37,9 @@ export class ClientDetails { static defaultApplication(): string { if (isNodeLike) { - return process?.env?.npm_package_name || process?.argv[1] || None; + // Use only the base filename from argv[1] to avoid leaking the full + // filesystem path (which may contain the username). + return process?.env?.npm_package_name || (process?.argv?.[1] ? basename(process.argv[1]) : None); } else { return window?.location?.href || None; } From b77b00c988da0213a382adfa4d610e6948e1b003 Mon Sep 17 00:00:00 2001 From: Yihezkel Schoenbrun Date: Wed, 18 Mar 2026 23:08:06 +0200 Subject: [PATCH 2/2] Add missing dependency --- packages/azure-kusto-data/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/azure-kusto-data/package.json b/packages/azure-kusto-data/package.json index 4678052b..0660e581 100644 --- a/packages/azure-kusto-data/package.json +++ b/packages/azure-kusto-data/package.json @@ -19,6 +19,7 @@ "browser": { "fs": false, "os": false, + "path": false, "process": false, "stream-http": false, "https": false,