mirror of
https://github.com/actions/setup-node
synced 2025-04-19 22:53:12 +00:00
update dependency and merge main
This commit is contained in:
parent
0952db2336
commit
5209434f1a
44
dist/cache-save/index.js
vendored
44
dist/cache-save/index.js
vendored
@ -57451,6 +57451,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)
|
||||||
@ -57538,6 +57539,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
|
||||||
@ -57714,7 +57716,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
|
||||||
@ -59134,7 +59136,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()
|
||||||
@ -59161,10 +59163,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
|
||||||
@ -59301,6 +59307,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)) {
|
||||||
@ -59535,13 +59542,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)
|
||||||
@ -59754,11 +59765,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)
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61424,7 +61437,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'
|
||||||
@ -66114,6 +66128,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
|
||||||
@ -66258,7 +66276,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
|
||||||
@ -66320,6 +66338,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/setup/index.js
vendored
44
dist/setup/index.js
vendored
@ -66234,6 +66234,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)
|
||||||
@ -66321,6 +66322,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
|
||||||
@ -66497,7 +66499,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
|
||||||
@ -67917,7 +67919,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()
|
||||||
@ -67944,10 +67946,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
|
||||||
@ -68084,6 +68090,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)) {
|
||||||
@ -68318,13 +68325,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)
|
||||||
@ -68537,11 +68548,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)
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70207,7 +70220,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'
|
||||||
@ -74897,6 +74911,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
|
||||||
@ -75041,7 +75059,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
|
||||||
@ -75103,6 +75121,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
|
||||||
|
16
package-lock.json
generated
16
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-node",
|
"name": "setup-node",
|
||||||
"version": "3.4.1",
|
"version": "4.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "setup-node",
|
"name": "setup-node",
|
||||||
"version": "3.4.1",
|
"version": "4.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": "^3.0.4",
|
"@actions/cache": "^3.0.4",
|
||||||
@ -968,9 +968,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/traverse": {
|
"node_modules/@babel/traverse": {
|
||||||
"version": "7.23.0",
|
"version": "7.23.2",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz",
|
||||||
"integrity": "sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==",
|
"integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.22.13",
|
"@babel/code-frame": "^7.22.13",
|
||||||
@ -5409,9 +5409,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"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-node",
|
"name": "setup-node",
|
||||||
"version": "3.4.1",
|
"version": "4.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "setup node action",
|
"description": "setup node action",
|
||||||
"main": "lib/setup-node.js",
|
"main": "lib/setup-node.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user