diff options
author | Node.js GitHub Bot <github-bot@iojs.org> | 2023-02-18 13:30:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 12:30:11 +0000 |
commit | 41a1bccf43fc34ca7072063a03f4dbd541c27f8c (patch) | |
tree | 9592fd57e67b8b060d5cfb64e7e31b65bfc89fa4 /deps/undici/src/lib/core/util.js | |
parent | 132c383b1872d0114e00722fe0610745f7f09cab (diff) | |
download | node-new-41a1bccf43fc34ca7072063a03f4dbd541c27f8c.tar.gz |
deps: update undici to 5.20.0
PR-URL: https://github.com/nodejs/node/pull/46711
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Diffstat (limited to 'deps/undici/src/lib/core/util.js')
-rw-r--r-- | deps/undici/src/lib/core/util.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/undici/src/lib/core/util.js b/deps/undici/src/lib/core/util.js index 3b9b56cb64..ef9b4570dc 100644 --- a/deps/undici/src/lib/core/util.js +++ b/deps/undici/src/lib/core/util.js @@ -10,6 +10,8 @@ const { Blob } = require('buffer') const nodeUtil = require('util') const { stringify } = require('querystring') +const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v)) + function nop () {} function isStream (obj) { @@ -420,5 +422,8 @@ module.exports = { validateHandler, getSocketInfo, isFormDataLike, - buildURL + buildURL, + nodeMajor, + nodeMinor, + nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13) } |