@infrab4a/connect 3.9.0-beta.2 → 3.9.0-beta.4

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,12 @@
1760
1760
  return [4 /*yield*/, axios__default["default"]({
1761
1761
  url: this.config.url + "/" + index + "/_doc/" + id,
1762
1762
  method: 'GET',
1763
- headers: { Authorization: "ApiKey " + this.config.credential },
1763
+ responseType: 'json',
1764
+ headers: {
1765
+ Accept: 'application/vnd.elasticsearch+json;compatible-with=7',
1766
+ 'Content-Type': 'application/vnd.elasticsearch+json;compatible-with=7',
1767
+ Authorization: "ApiKey " + this.config.credential,
1768
+ },
1764
1769
  })];
1765
1770
  case 1:
1766
1771
  data = (_a.sent()).data;
@@ -1780,8 +1785,13 @@
1780
1785
  switch (_a.label) {
1781
1786
  case 0: return [4 /*yield*/, axios__default["default"]({
1782
1787
  url: this.config.url + "/" + index + "/_search",
1783
- method: 'GET',
1784
- headers: { Authorization: "ApiKey " + this.config.credential },
1788
+ method: 'POST',
1789
+ responseType: 'json',
1790
+ headers: {
1791
+ Accept: 'application/vnd.elasticsearch+json;compatible-with=7',
1792
+ 'Content-Type': 'application/vnd.elasticsearch+json;compatible-with=7',
1793
+ Authorization: "ApiKey " + this.config.credential,
1794
+ },
1785
1795
  data: query,
1786
1796
  })];
1787
1797
  case 1: