New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azure-kusto-data

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-kusto-data - npm Package Compare versions

Comparing version 6.0.2 to 6.0.3

2

dist-esm/src/clientRequestProperties.js

@@ -6,2 +6,3 @@ "use strict";

exports.ClientRequestProperties = void 0;
const SDK_API_VERSION = "2019-02-13"; // TODO: Update when new API version is released
class ClientRequestProperties {

@@ -93,2 +94,3 @@ constructor(options, parameters, clientRequestId, user, application) {

}
headers["x-ms-version"] = SDK_API_VERSION;
return headers;

@@ -95,0 +97,0 @@ }

@@ -5,2 +5,3 @@ "use strict";

};
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -12,2 +13,3 @@ exports.CloudSettings = void 0;

const core_util_1 = require("@azure/core-util");
const AXIOS_ERR_NETWORK = (_b = (_a = axios_1.default === null || axios_1.default === void 0 ? void 0 : axios_1.default.AxiosError) === null || _a === void 0 ? void 0 : _a.ERR_NETWORK) !== null && _b !== void 0 ? _b : "ERR_NETWORK";
/**

@@ -42,3 +44,3 @@ * This class holds data for all cloud instances, and returns the specific data instance by parsing the dns suffix from a URL

try {
const response = await axios_1.default.get(kustoUri + this.METADATA_ENDPOINT, {
const response = await axios_1.default.get(this.getAuthMetadataEndpointFromClusterUri(kustoUri), {
headers: {

@@ -67,3 +69,3 @@ "Cache-Control": "no-cache",

// Axios library has a bug in browser, not propagating the status code, see: https://github.com/axios/axios/issues/5330
if ((((_a = ex.response) === null || _a === void 0 ? void 0 : _a.status) === 404 && core_util_1.isNode) || (ex.code === axios_1.default.AxiosError.ERR_NETWORK && !core_util_1.isNode)) {
if ((core_util_1.isNode && ((_a = ex.response) === null || _a === void 0 ? void 0 : _a.status) === 404) || (!core_util_1.isNode && (!ex.code || ex.code === AXIOS_ERR_NETWORK))) {
// For now as long not all proxies implement the metadata endpoint, if no endpoint exists return public cloud data

@@ -87,2 +89,7 @@ this.cloudCache[kustoUri] = this.defaultCloudInfo;

}
getAuthMetadataEndpointFromClusterUri(kustoUri) {
const url = new URL(kustoUri);
// Returns endpoint URL in the form of https://<cluster>:port/v1/rest/auth/metadata
return `${url.protocol}//${url.host}${this.METADATA_ENDPOINT}`;
}
static getAuthorityUri(cloudInfo, authorityId) {

@@ -89,0 +96,0 @@ return cloudInfo.LoginEndpoint + "/" + (authorityId || "organizations");

5

dist-esm/src/timeUtils.js

@@ -5,7 +5,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseKustoTimestampToMillis = exports.toMilliseconds = void 0;
exports.toMilliseconds = toMilliseconds;
exports.parseKustoTimestampToMillis = parseKustoTimestampToMillis;
function toMilliseconds(hours, minutes, seconds) {
return (hours * 60 * 60 + minutes * 60 + seconds) * 1000;
}
exports.toMilliseconds = toMilliseconds;
// Format: [+|-]d.hh:mm:ss[.fffffff]

@@ -28,3 +28,2 @@ const TimespanRegex = /^(-?)(?:(\d+).)?(\d{2}):(\d{2}):(\d{2}(\.\d+)?$)/;

}
exports.parseKustoTimestampToMillis = parseKustoTimestampToMillis;
//# sourceMappingURL=timeUtils.js.map

@@ -5,3 +5,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getStringTailLowerCase = void 0;
exports.getStringTailLowerCase = getStringTailLowerCase;
function getStringTailLowerCase(val, tailLength) {

@@ -16,3 +16,2 @@ if (tailLength <= 0) {

}
exports.getStringTailLowerCase = getStringTailLowerCase;
//# sourceMappingURL=utils.js.map
{
"name": "azure-kusto-data",
"version": "6.0.2",
"version": "6.0.3",
"description": "Azure Data Explorer Query SDK",

@@ -67,3 +67,3 @@ "module": "dist-esm/src/index.js",

},
"gitHead": "591383875554bad2b3382806c06d6850e83e97b6"
"gitHead": "05f39251c694f96f769fc1b4c0e5935245697330"
}

@@ -19,3 +19,4 @@ export declare class ClientDetails {

"x-ms-client-request-id": string | null;
"x-ms-version": string | null;
}
//# sourceMappingURL=clientDetails.d.ts.map

@@ -27,6 +27,6 @@ import { KustoHeaders } from "./clientDetails";

[option: string]: any;
} | undefined;
};
Parameters?: {
[option: string]: any;
} | undefined;
};
} | null;

@@ -36,6 +36,6 @@ toJSON(): {

[option: string]: any;
} | undefined;
};
Parameters?: {
[option: string]: any;
} | undefined;
};
} | null;

@@ -42,0 +42,0 @@ toString(): string;

@@ -23,2 +23,3 @@ export type CloudInfo = {

private normalizeUrl;
getAuthMetadataEndpointFromClusterUri(kustoUri: string): string;
static getAuthorityUri(cloudInfo: CloudInfo, authorityId?: string): string;

@@ -25,0 +26,0 @@ }

@@ -77,3 +77,3 @@ import { DeviceCodeInfo, InteractiveBrowserCredentialInBrowserOptions, InteractiveBrowserCredentialNodeOptions } from "@azure/identity";

readonly MaxPort = 65536;
constructor(kustoUri: string, interactiveCredentialOptions?: InteractiveBrowserCredentialNodeOptions | InteractiveBrowserCredentialInBrowserOptions | undefined, timeoutMs?: number);
constructor(kustoUri: string, interactiveCredentialOptions?: (InteractiveBrowserCredentialInBrowserOptions | InteractiveBrowserCredentialNodeOptions) | undefined, timeoutMs?: number);
getCredential(): TokenCredential;

@@ -80,0 +80,0 @@ private getRandomPortInRange;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc