@infrab4a/connect 3.9.0-beta.2 → 3.9.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1760,7 +1760,8 @@
|
|
|
1760
1760
|
return [4 /*yield*/, axios__default["default"]({
|
|
1761
1761
|
url: this.config.url + "/" + index + "/_doc/" + id,
|
|
1762
1762
|
method: 'GET',
|
|
1763
|
-
|
|
1763
|
+
responseType: 'json',
|
|
1764
|
+
headers: { Authorization: "ApiKey " + this.config.credential, 'Content-Type': 'application/x-ndjson' },
|
|
1764
1765
|
})];
|
|
1765
1766
|
case 1:
|
|
1766
1767
|
data = (_a.sent()).data;
|
|
@@ -1780,8 +1781,9 @@
|
|
|
1780
1781
|
switch (_a.label) {
|
|
1781
1782
|
case 0: return [4 /*yield*/, axios__default["default"]({
|
|
1782
1783
|
url: this.config.url + "/" + index + "/_search",
|
|
1783
|
-
method: '
|
|
1784
|
-
|
|
1784
|
+
method: 'POST',
|
|
1785
|
+
responseType: 'json',
|
|
1786
|
+
headers: { Authorization: "ApiKey " + this.config.credential, 'Content-Type': 'application/x-ndjson' },
|
|
1785
1787
|
data: query,
|
|
1786
1788
|
})];
|
|
1787
1789
|
case 1:
|