azure-kusto-data
Advanced tools
Comparing version
{ | ||
"name": "azure-kusto-data", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Azure Data Explorer Query SDK", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -122,3 +122,3 @@ const moment = require("moment"); | ||
if (response.statusCode >= 200 && response.statusCode < 400) { | ||
if (raw === true) { | ||
if (raw === true || response.request.path.toLowerCase().startsWith("/v1/rest/ingest")) { | ||
return callback(null, body); | ||
@@ -131,5 +131,5 @@ } | ||
if (response.request.path.toLowerCase().startsWith("/v2/")) { | ||
kustoResponse = new KustoResponseDataSetV2(body); | ||
kustoResponse = new KustoResponseDataSetV2(JSON.parse(body)); | ||
} else if (response.request.path.toLowerCase().startsWith("/v1/")) { | ||
kustoResponse = new KustoResponseDataSetV1(body); | ||
kustoResponse = new KustoResponseDataSetV1(JSON.parse(body)); | ||
} | ||
@@ -143,4 +143,2 @@ | ||
} | ||
return callback(null, kustoResponse); | ||
@@ -147,0 +145,0 @@ } else { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
32367
0.28%0
-100%