[Backport 8.1] Upgrade transport (#1619)

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-02-11 09:22:49 +01:00
committed by GitHub
parent 7985aab860
commit 84d8b68007
2 changed files with 7 additions and 2 deletions

View File

@ -80,7 +80,7 @@
"xmlbuilder2": "^3.0.2" "xmlbuilder2": "^3.0.2"
}, },
"dependencies": { "dependencies": {
"@elastic/transport": "^8.1.0-beta.1", "@elastic/transport": "^8.0.1",
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },
"tap": { "tap": {

View File

@ -251,7 +251,12 @@ export default class Client extends API {
context: options.context, context: options.context,
productCheck: 'Elasticsearch', productCheck: 'Elasticsearch',
maxResponseSize: options.maxResponseSize, maxResponseSize: options.maxResponseSize,
maxCompressedResponseSize: options.maxCompressedResponseSize maxCompressedResponseSize: options.maxCompressedResponseSize,
vendoredHeaders: {
jsonContentType: 'application/vnd.elasticsearch+json; compatible-with=8',
ndjsonContentType: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8',
accept: 'application/vnd.elasticsearch+json; compatible-with=8,text/plain'
}
}) })
this.helpers = new Helpers({ this.helpers = new Helpers({