@elastic/transport
Advanced tools
Comparing version 8.6.0 to 8.6.1
@@ -328,4 +328,7 @@ "use strict"; | ||
} | ||
return this.headers.warning | ||
.split(/(?!\B"[^"]*),(?![^"]*"\B)/) | ||
const { warning } = this.headers; | ||
// if multiple HTTP headers have the same name, Undici represents them as an array | ||
const warnings = Array.isArray(warning) ? warning : [warning]; | ||
return warnings | ||
.flatMap(w => w.split(/(?!\B"[^"]*),(?![^"]*"\B)/)) | ||
.filter((warning) => warning.match(/^\d\d\d Elasticsearch-/)); | ||
@@ -332,0 +335,0 @@ } |
{ | ||
"name": "@elastic/transport", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"description": "Transport classes and utilities shared among Node.js Elastic client libraries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
651574
9005
1
3