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
2
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

to
0.2.1

4

package.json
{
"name": "azure-kusto-data",
"version": "0.1.5",
"version": "0.2.1",
"description": "Azure Data Explorer Query SDK",

@@ -34,4 +34,4 @@ "main": "index.js",

"mocha": "^5.2.0",
"sinon": "^6.3.4"
"sinon": "^7.2.3"
}
}

@@ -59,7 +59,7 @@ # Microsoft Azure Kusto Data Library for Node

// will log the DEVICE token and url to use
KustoConnectionStringBuilder.withAadDeviceAuthentication(`https://${clusterName}.kusto.windows.net`);
KustoConnectionStringBuilder.withAadDeviceAuthentication(`https://${clusterName}.kusto.windows.net`, authId);
// in case you want to do your own thing with the response, you can pass a callback
// NOTICE: code will still block until device is authenticated
KustoConnectionStringBuilder.withAadDeviceAuthentication(`https://${clusterName}.kusto.windows.net`, (toeknResponse) => {
KustoConnectionStringBuilder.withAadDeviceAuthentication(`https://${clusterName}.kusto.windows.net`, authId, (toeknResponse) => {
// your code, for example copy to clipboard or open url in browser

@@ -66,0 +66,0 @@ console.log("Open " + tokenResponse.verificationUrl + " and use " + tokenResponse.userCode + " code to authorize.");

@@ -112,4 +112,5 @@ const KeywordMapping = Object.freeze({

static withAadDeviceAuthentication(connectionString, authCallback) {
static withAadDeviceAuthentication(connectionString, authorityId, authCallback) {
const kcsb = new KustoConnectionStringBuilder(connectionString);
kcsb[KeywordMapping.authorityId.propName] = authorityId;
kcsb.AuthorizationCallback = authCallback;

@@ -116,0 +117,0 @@

@@ -52,3 +52,3 @@ const moment = require("moment");

toString() {
JSON.stringify(this.toJson());
return JSON.stringify(this.toJson());
}

@@ -77,2 +77,9 @@ }

this._rows = tableObj.Rows;
if (this._rows && this._rows.length > 0) {
for (let i = 0; i<tableObj.Rows.length; i++) {
Object.defineProperty(this, i, { get: () => new KustoResultRow(this.columns, this._rows[i])});
}
}
}

@@ -79,0 +86,0 @@