build(deps): bump undici from 5.25.4 to 5.26.3 (#879)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
5a72764667
commit
4b1e98b37d
44
dist/post_run/index.js
generated
vendored
44
dist/post_run/index.js
generated
vendored
@ -64708,6 +64708,7 @@ module.exports = {
|
|||||||
|
|
||||||
const assert = __nccwpck_require__(9491)
|
const assert = __nccwpck_require__(9491)
|
||||||
const net = __nccwpck_require__(1808)
|
const net = __nccwpck_require__(1808)
|
||||||
|
const http = __nccwpck_require__(3685)
|
||||||
const { pipeline } = __nccwpck_require__(2781)
|
const { pipeline } = __nccwpck_require__(2781)
|
||||||
const util = __nccwpck_require__(3983)
|
const util = __nccwpck_require__(3983)
|
||||||
const timers = __nccwpck_require__(9459)
|
const timers = __nccwpck_require__(9459)
|
||||||
@ -64795,6 +64796,7 @@ const {
|
|||||||
HTTP2_HEADER_AUTHORITY,
|
HTTP2_HEADER_AUTHORITY,
|
||||||
HTTP2_HEADER_METHOD,
|
HTTP2_HEADER_METHOD,
|
||||||
HTTP2_HEADER_PATH,
|
HTTP2_HEADER_PATH,
|
||||||
|
HTTP2_HEADER_SCHEME,
|
||||||
HTTP2_HEADER_CONTENT_LENGTH,
|
HTTP2_HEADER_CONTENT_LENGTH,
|
||||||
HTTP2_HEADER_EXPECT,
|
HTTP2_HEADER_EXPECT,
|
||||||
HTTP2_HEADER_STATUS
|
HTTP2_HEADER_STATUS
|
||||||
@ -64971,7 +64973,7 @@ class Client extends DispatcherBase {
|
|||||||
this[kConnector] = connect
|
this[kConnector] = connect
|
||||||
this[kSocket] = null
|
this[kSocket] = null
|
||||||
this[kPipelining] = pipelining != null ? pipelining : 1
|
this[kPipelining] = pipelining != null ? pipelining : 1
|
||||||
this[kMaxHeadersSize] = maxHeaderSize || 16384
|
this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize
|
||||||
this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
|
this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
|
||||||
this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
|
this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
|
||||||
this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
|
this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
|
||||||
@ -66391,7 +66393,7 @@ function writeH2 (client, session, request) {
|
|||||||
const h2State = client[kHTTP2SessionState]
|
const h2State = client[kHTTP2SessionState]
|
||||||
|
|
||||||
headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
|
headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
|
||||||
headers[HTTP2_HEADER_PATH] = path
|
headers[HTTP2_HEADER_METHOD] = method
|
||||||
|
|
||||||
if (method === 'CONNECT') {
|
if (method === 'CONNECT') {
|
||||||
session.ref()
|
session.ref()
|
||||||
@ -66418,10 +66420,14 @@ function writeH2 (client, session, request) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return true
|
return true
|
||||||
} else {
|
|
||||||
headers[HTTP2_HEADER_METHOD] = method
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://tools.ietf.org/html/rfc7540#section-8.3
|
||||||
|
// :path and :scheme headers must be omited when sending CONNECT
|
||||||
|
|
||||||
|
headers[HTTP2_HEADER_PATH] = path
|
||||||
|
headers[HTTP2_HEADER_SCHEME] = 'https'
|
||||||
|
|
||||||
// https://tools.ietf.org/html/rfc7231#section-4.3.1
|
// https://tools.ietf.org/html/rfc7231#section-4.3.1
|
||||||
// https://tools.ietf.org/html/rfc7231#section-4.3.2
|
// https://tools.ietf.org/html/rfc7231#section-4.3.2
|
||||||
// https://tools.ietf.org/html/rfc7231#section-4.3.5
|
// https://tools.ietf.org/html/rfc7231#section-4.3.5
|
||||||
@ -66558,6 +66564,7 @@ function writeH2 (client, session, request) {
|
|||||||
stream.cork()
|
stream.cork()
|
||||||
stream.write(body)
|
stream.write(body)
|
||||||
stream.uncork()
|
stream.uncork()
|
||||||
|
stream.end()
|
||||||
request.onBodySent(body)
|
request.onBodySent(body)
|
||||||
request.onRequestSent()
|
request.onRequestSent()
|
||||||
} else if (util.isBlobLike(body)) {
|
} else if (util.isBlobLike(body)) {
|
||||||
@ -66792,13 +66799,17 @@ async function writeIterable ({ h2stream, body, client, request, socket, content
|
|||||||
throw socket[kError]
|
throw socket[kError]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!h2stream.write(chunk)) {
|
const res = h2stream.write(chunk)
|
||||||
|
request.onBodySent(chunk)
|
||||||
|
if (!res) {
|
||||||
await waitForDrain()
|
await waitForDrain()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
h2stream.destroy(err)
|
h2stream.destroy(err)
|
||||||
} finally {
|
} finally {
|
||||||
|
request.onRequestSent()
|
||||||
|
h2stream.end()
|
||||||
h2stream
|
h2stream
|
||||||
.off('close', onDrain)
|
.off('close', onDrain)
|
||||||
.off('drain', onDrain)
|
.off('drain', onDrain)
|
||||||
@ -67011,11 +67022,13 @@ class CompatFinalizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
register (dispatcher, key) {
|
register (dispatcher, key) {
|
||||||
dispatcher.on('disconnect', () => {
|
if (dispatcher.on) {
|
||||||
if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
|
dispatcher.on('disconnect', () => {
|
||||||
this.finalizer(key)
|
if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
|
||||||
}
|
this.finalizer(key)
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68681,7 +68694,8 @@ function processHeader (request, key, val, skipAppend = false) {
|
|||||||
key.toLowerCase() === 'content-type'
|
key.toLowerCase() === 'content-type'
|
||||||
) {
|
) {
|
||||||
request.contentType = val
|
request.contentType = val
|
||||||
request.headers += processHeaderValue(key, val)
|
if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend)
|
||||||
|
else request.headers += processHeaderValue(key, val)
|
||||||
} else if (
|
} else if (
|
||||||
key.length === 17 &&
|
key.length === 17 &&
|
||||||
key.toLowerCase() === 'transfer-encoding'
|
key.toLowerCase() === 'transfer-encoding'
|
||||||
@ -73371,6 +73385,10 @@ async function httpRedirectFetch (fetchParams, response) {
|
|||||||
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
|
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
|
||||||
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
||||||
request.headersList.delete('authorization')
|
request.headersList.delete('authorization')
|
||||||
|
|
||||||
|
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
|
||||||
|
request.headersList.delete('cookie')
|
||||||
|
request.headersList.delete('host')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 14. If request’s body is non-null, then set request’s body to the first return
|
// 14. If request’s body is non-null, then set request’s body to the first return
|
||||||
@ -73515,7 +73533,7 @@ async function httpNetworkOrCacheFetch (
|
|||||||
// user agents should append `User-Agent`/default `User-Agent` value to
|
// user agents should append `User-Agent`/default `User-Agent` value to
|
||||||
// httpRequest’s header list.
|
// httpRequest’s header list.
|
||||||
if (!httpRequest.headersList.contains('user-agent')) {
|
if (!httpRequest.headersList.contains('user-agent')) {
|
||||||
httpRequest.headersList.append('user-agent', 'undici')
|
httpRequest.headersList.append('user-agent', typeof esbuildDetection === 'undefined' ? 'undici' : 'node')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 15. If httpRequest’s cache mode is "default" and httpRequest’s header
|
// 15. If httpRequest’s cache mode is "default" and httpRequest’s header
|
||||||
@ -73577,6 +73595,8 @@ async function httpNetworkOrCacheFetch (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
httpRequest.headersList.delete('host')
|
||||||
|
|
||||||
// 20. If includeCredentials is true, then:
|
// 20. If includeCredentials is true, then:
|
||||||
if (includeCredentials) {
|
if (includeCredentials) {
|
||||||
// 1. If the user agent is not configured to block cookies for httpRequest
|
// 1. If the user agent is not configured to block cookies for httpRequest
|
||||||
|
44
dist/run/index.js
generated
vendored
44
dist/run/index.js
generated
vendored
@ -64708,6 +64708,7 @@ module.exports = {
|
|||||||
|
|
||||||
const assert = __nccwpck_require__(9491)
|
const assert = __nccwpck_require__(9491)
|
||||||
const net = __nccwpck_require__(1808)
|
const net = __nccwpck_require__(1808)
|
||||||
|
const http = __nccwpck_require__(3685)
|
||||||
const { pipeline } = __nccwpck_require__(2781)
|
const { pipeline } = __nccwpck_require__(2781)
|
||||||
const util = __nccwpck_require__(3983)
|
const util = __nccwpck_require__(3983)
|
||||||
const timers = __nccwpck_require__(9459)
|
const timers = __nccwpck_require__(9459)
|
||||||
@ -64795,6 +64796,7 @@ const {
|
|||||||
HTTP2_HEADER_AUTHORITY,
|
HTTP2_HEADER_AUTHORITY,
|
||||||
HTTP2_HEADER_METHOD,
|
HTTP2_HEADER_METHOD,
|
||||||
HTTP2_HEADER_PATH,
|
HTTP2_HEADER_PATH,
|
||||||
|
HTTP2_HEADER_SCHEME,
|
||||||
HTTP2_HEADER_CONTENT_LENGTH,
|
HTTP2_HEADER_CONTENT_LENGTH,
|
||||||
HTTP2_HEADER_EXPECT,
|
HTTP2_HEADER_EXPECT,
|
||||||
HTTP2_HEADER_STATUS
|
HTTP2_HEADER_STATUS
|
||||||
@ -64971,7 +64973,7 @@ class Client extends DispatcherBase {
|
|||||||
this[kConnector] = connect
|
this[kConnector] = connect
|
||||||
this[kSocket] = null
|
this[kSocket] = null
|
||||||
this[kPipelining] = pipelining != null ? pipelining : 1
|
this[kPipelining] = pipelining != null ? pipelining : 1
|
||||||
this[kMaxHeadersSize] = maxHeaderSize || 16384
|
this[kMaxHeadersSize] = maxHeaderSize || http.maxHeaderSize
|
||||||
this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
|
this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4e3 : keepAliveTimeout
|
||||||
this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
|
this[kKeepAliveMaxTimeout] = keepAliveMaxTimeout == null ? 600e3 : keepAliveMaxTimeout
|
||||||
this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
|
this[kKeepAliveTimeoutThreshold] = keepAliveTimeoutThreshold == null ? 1e3 : keepAliveTimeoutThreshold
|
||||||
@ -66391,7 +66393,7 @@ function writeH2 (client, session, request) {
|
|||||||
const h2State = client[kHTTP2SessionState]
|
const h2State = client[kHTTP2SessionState]
|
||||||
|
|
||||||
headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
|
headers[HTTP2_HEADER_AUTHORITY] = host || client[kHost]
|
||||||
headers[HTTP2_HEADER_PATH] = path
|
headers[HTTP2_HEADER_METHOD] = method
|
||||||
|
|
||||||
if (method === 'CONNECT') {
|
if (method === 'CONNECT') {
|
||||||
session.ref()
|
session.ref()
|
||||||
@ -66418,10 +66420,14 @@ function writeH2 (client, session, request) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
return true
|
return true
|
||||||
} else {
|
|
||||||
headers[HTTP2_HEADER_METHOD] = method
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://tools.ietf.org/html/rfc7540#section-8.3
|
||||||
|
// :path and :scheme headers must be omited when sending CONNECT
|
||||||
|
|
||||||
|
headers[HTTP2_HEADER_PATH] = path
|
||||||
|
headers[HTTP2_HEADER_SCHEME] = 'https'
|
||||||
|
|
||||||
// https://tools.ietf.org/html/rfc7231#section-4.3.1
|
// https://tools.ietf.org/html/rfc7231#section-4.3.1
|
||||||
// https://tools.ietf.org/html/rfc7231#section-4.3.2
|
// https://tools.ietf.org/html/rfc7231#section-4.3.2
|
||||||
// https://tools.ietf.org/html/rfc7231#section-4.3.5
|
// https://tools.ietf.org/html/rfc7231#section-4.3.5
|
||||||
@ -66558,6 +66564,7 @@ function writeH2 (client, session, request) {
|
|||||||
stream.cork()
|
stream.cork()
|
||||||
stream.write(body)
|
stream.write(body)
|
||||||
stream.uncork()
|
stream.uncork()
|
||||||
|
stream.end()
|
||||||
request.onBodySent(body)
|
request.onBodySent(body)
|
||||||
request.onRequestSent()
|
request.onRequestSent()
|
||||||
} else if (util.isBlobLike(body)) {
|
} else if (util.isBlobLike(body)) {
|
||||||
@ -66792,13 +66799,17 @@ async function writeIterable ({ h2stream, body, client, request, socket, content
|
|||||||
throw socket[kError]
|
throw socket[kError]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!h2stream.write(chunk)) {
|
const res = h2stream.write(chunk)
|
||||||
|
request.onBodySent(chunk)
|
||||||
|
if (!res) {
|
||||||
await waitForDrain()
|
await waitForDrain()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
h2stream.destroy(err)
|
h2stream.destroy(err)
|
||||||
} finally {
|
} finally {
|
||||||
|
request.onRequestSent()
|
||||||
|
h2stream.end()
|
||||||
h2stream
|
h2stream
|
||||||
.off('close', onDrain)
|
.off('close', onDrain)
|
||||||
.off('drain', onDrain)
|
.off('drain', onDrain)
|
||||||
@ -67011,11 +67022,13 @@ class CompatFinalizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
register (dispatcher, key) {
|
register (dispatcher, key) {
|
||||||
dispatcher.on('disconnect', () => {
|
if (dispatcher.on) {
|
||||||
if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
|
dispatcher.on('disconnect', () => {
|
||||||
this.finalizer(key)
|
if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
|
||||||
}
|
this.finalizer(key)
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68681,7 +68694,8 @@ function processHeader (request, key, val, skipAppend = false) {
|
|||||||
key.toLowerCase() === 'content-type'
|
key.toLowerCase() === 'content-type'
|
||||||
) {
|
) {
|
||||||
request.contentType = val
|
request.contentType = val
|
||||||
request.headers += processHeaderValue(key, val)
|
if (skipAppend) request.headers[key] = processHeaderValue(key, val, skipAppend)
|
||||||
|
else request.headers += processHeaderValue(key, val)
|
||||||
} else if (
|
} else if (
|
||||||
key.length === 17 &&
|
key.length === 17 &&
|
||||||
key.toLowerCase() === 'transfer-encoding'
|
key.toLowerCase() === 'transfer-encoding'
|
||||||
@ -73371,6 +73385,10 @@ async function httpRedirectFetch (fetchParams, response) {
|
|||||||
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
|
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
|
||||||
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
||||||
request.headersList.delete('authorization')
|
request.headersList.delete('authorization')
|
||||||
|
|
||||||
|
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
|
||||||
|
request.headersList.delete('cookie')
|
||||||
|
request.headersList.delete('host')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 14. If request’s body is non-null, then set request’s body to the first return
|
// 14. If request’s body is non-null, then set request’s body to the first return
|
||||||
@ -73515,7 +73533,7 @@ async function httpNetworkOrCacheFetch (
|
|||||||
// user agents should append `User-Agent`/default `User-Agent` value to
|
// user agents should append `User-Agent`/default `User-Agent` value to
|
||||||
// httpRequest’s header list.
|
// httpRequest’s header list.
|
||||||
if (!httpRequest.headersList.contains('user-agent')) {
|
if (!httpRequest.headersList.contains('user-agent')) {
|
||||||
httpRequest.headersList.append('user-agent', 'undici')
|
httpRequest.headersList.append('user-agent', typeof esbuildDetection === 'undefined' ? 'undici' : 'node')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 15. If httpRequest’s cache mode is "default" and httpRequest’s header
|
// 15. If httpRequest’s cache mode is "default" and httpRequest’s header
|
||||||
@ -73577,6 +73595,8 @@ async function httpNetworkOrCacheFetch (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
httpRequest.headersList.delete('host')
|
||||||
|
|
||||||
// 20. If includeCredentials is true, then:
|
// 20. If includeCredentials is true, then:
|
||||||
if (includeCredentials) {
|
if (includeCredentials) {
|
||||||
// 1. If the user agent is not configured to block cookies for httpRequest
|
// 1. If the user agent is not configured to block cookies for httpRequest
|
||||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@ -3813,9 +3813,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/undici": {
|
"node_modules/undici": {
|
||||||
"version": "5.25.4",
|
"version": "5.26.3",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.25.4.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.26.3.tgz",
|
||||||
"integrity": "sha512-450yJxT29qKMf3aoudzFpIciqpx6Pji3hEWaXqXmanbXF58LTAGCKxcJjxMXWu3iG+Mudgo3ZUfDB6YDFd/dAw==",
|
"integrity": "sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
},
|
},
|
||||||
@ -6688,9 +6688,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"undici": {
|
"undici": {
|
||||||
"version": "5.25.4",
|
"version": "5.26.3",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-5.25.4.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-5.26.3.tgz",
|
||||||
"integrity": "sha512-450yJxT29qKMf3aoudzFpIciqpx6Pji3hEWaXqXmanbXF58LTAGCKxcJjxMXWu3iG+Mudgo3ZUfDB6YDFd/dAw==",
|
"integrity": "sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@fastify/busboy": "^2.0.0"
|
"@fastify/busboy": "^2.0.0"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user