Drop node v10 support (#1471)
This commit is contained in:
committed by
delvedor
parent
9a021f8445
commit
4ec32601e7
@ -25,7 +25,7 @@ const hpagent = require('hpagent')
|
||||
const http = require('http')
|
||||
const https = require('https')
|
||||
const debug = require('debug')('elasticsearch')
|
||||
const pump = require('pump')
|
||||
const { pipeline } = require('stream')
|
||||
const INVALID_PATH_REGEX = /[^\u0021-\u00ff]/
|
||||
const {
|
||||
ConnectionError,
|
||||
@ -133,7 +133,7 @@ class Connection {
|
||||
|
||||
// starts the request
|
||||
if (isStream(params.body) === true) {
|
||||
pump(params.body, request, err => {
|
||||
pipeline(params.body, request, err => {
|
||||
/* istanbul ignore if */
|
||||
if (err != null && cleanedListeners === false) {
|
||||
cleanListeners()
|
||||
|
||||
Reference in New Issue
Block a user