Add support for a global context option (#1256)
This commit is contained in:
committed by
delvedor
parent
28f2be397c
commit
d73cb1a29b
6
index.js
6
index.js
@ -84,7 +84,8 @@ class Client {
|
||||
generateRequestId: null,
|
||||
name: 'elasticsearch-js',
|
||||
auth: null,
|
||||
opaqueIdPrefix: null
|
||||
opaqueIdPrefix: null,
|
||||
context: null
|
||||
}, opts)
|
||||
|
||||
this[kInitialOptions] = options
|
||||
@ -131,7 +132,8 @@ class Client {
|
||||
nodeSelector: options.nodeSelector,
|
||||
generateRequestId: options.generateRequestId,
|
||||
name: options.name,
|
||||
opaqueIdPrefix: options.opaqueIdPrefix
|
||||
opaqueIdPrefix: options.opaqueIdPrefix,
|
||||
context: options.context
|
||||
})
|
||||
|
||||
/* istanbul ignore else */
|
||||
|
||||
Reference in New Issue
Block a user