Skip to content

Commit 39d1be8

Browse files
authored
Add enableMetaHeader to transport options (#2945)
1 parent 8ea11d5 commit 39d1be8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
node-version: [18.x, 20.x, 22.x, 23.x]
35+
node-version: [20.x, 22.x, 24.x]
3636
os: [ubuntu-latest, windows-latest, macOS-latest]
3737

3838
steps:

src/client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@ export default class Client extends API {
407407
productCheck: 'Elasticsearch',
408408
maxResponseSize: options.maxResponseSize,
409409
maxCompressedResponseSize: options.maxCompressedResponseSize,
410-
redaction: options.redaction
410+
redaction: options.redaction,
411+
/* eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error */
412+
// @ts-ignore enableMetaHeader will be available in transport v9.1.1
413+
enableMetaHeader: options.enableMetaHeader
411414
}
412415
if (options.serverMode !== 'serverless') {
413416
transportOptions = Object.assign({}, transportOptions, {

0 commit comments

Comments
 (0)