Upgrade transport (#1618)

This commit is contained in:
Tomas Della Vedova
2022-02-11 09:19:34 +01:00
committed by GitHub
parent 451a805ecd
commit a0c5c98a99
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({