@infrab4a/connect 3.9.0-beta.3 → 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.
@@ -1761,7 +1761,11 @@
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
+ 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
+ },
1765
1769
  })];
1766
1770
  case 1:
1767
1771
  data = (_a.sent()).data;
@@ -1783,7 +1787,11 @@
1783
1787
  url: this.config.url + "/" + index + "/_search",
1784
1788
  method: 'POST',
1785
1789
  responseType: 'json',
1786
- headers: { Authorization: "ApiKey " + this.config.credential, 'Content-Type': 'application/x-ndjson' },
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
+ },
1787
1795
  data: query,
1788
1796
  })];
1789
1797
  case 1: