Skip to content

Commit 9edcd22

Browse files
committed
Update dependency @actions/github to v6.0.1
1 parent 11844af commit 9edcd22

File tree

2 files changed

+60
-57
lines changed

2 files changed

+60
-57
lines changed

dist/index.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8974,7 +8974,7 @@ module.exports = {
89748974

89758975

89768976
const { parseSetCookie } = __nccwpck_require__(8915)
8977-
const { stringify, getHeadersList } = __nccwpck_require__(3834)
8977+
const { stringify } = __nccwpck_require__(3834)
89788978
const { webidl } = __nccwpck_require__(4222)
89798979
const { Headers } = __nccwpck_require__(6349)
89808980

@@ -9050,14 +9050,13 @@ function getSetCookies (headers) {
90509050

90519051
webidl.brandCheck(headers, Headers, { strict: false })
90529052

9053-
const cookies = getHeadersList(headers).cookies
9053+
const cookies = headers.getSetCookie()
90549054

90559055
if (!cookies) {
90569056
return []
90579057
}
90589058

9059-
// In older versions of undici, cookies is a list of name:value.
9060-
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
9059+
return cookies.map((pair) => parseSetCookie(pair))
90619060
}
90629061

90639062
/**
@@ -9485,14 +9484,15 @@ module.exports = {
94859484
/***/ }),
94869485

94879486
/***/ 3834:
9488-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
9487+
/***/ ((module) => {
94899488

94909489
"use strict";
94919490

94929491

9493-
const assert = __nccwpck_require__(2613)
9494-
const { kHeadersList } = __nccwpck_require__(6443)
9495-
9492+
/**
9493+
* @param {string} value
9494+
* @returns {boolean}
9495+
*/
94969496
function isCTLExcludingHtab (value) {
94979497
if (value.length === 0) {
94989498
return false
@@ -9753,31 +9753,13 @@ function stringify (cookie) {
97539753
return out.join('; ')
97549754
}
97559755

9756-
let kHeadersListNode
9757-
9758-
function getHeadersList (headers) {
9759-
if (headers[kHeadersList]) {
9760-
return headers[kHeadersList]
9761-
}
9762-
9763-
if (!kHeadersListNode) {
9764-
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
9765-
(symbol) => symbol.description === 'headers list'
9766-
)
9767-
9768-
assert(kHeadersListNode, 'Headers cannot be parsed')
9769-
}
9770-
9771-
const headersList = headers[kHeadersListNode]
9772-
assert(headersList)
9773-
9774-
return headersList
9775-
}
9776-
97779756
module.exports = {
97789757
isCTLExcludingHtab,
9779-
stringify,
9780-
getHeadersList
9758+
validateCookieName,
9759+
validateCookiePath,
9760+
validateCookieValue,
9761+
toIMFDate,
9762+
stringify
97819763
}
97829764

97839765

@@ -13781,6 +13763,7 @@ const {
1378113763
isValidHeaderName,
1378213764
isValidHeaderValue
1378313765
} = __nccwpck_require__(5523)
13766+
const util = __nccwpck_require__(9023)
1378413767
const { webidl } = __nccwpck_require__(4222)
1378513768
const assert = __nccwpck_require__(2613)
1378613769

@@ -14334,6 +14317,9 @@ Object.defineProperties(Headers.prototype, {
1433414317
[Symbol.toStringTag]: {
1433514318
value: 'Headers',
1433614319
configurable: true
14320+
},
14321+
[util.inspect.custom]: {
14322+
enumerable: false
1433714323
}
1433814324
})
1433914325

@@ -23510,6 +23496,20 @@ class Pool extends PoolBase {
2351023496
? { ...options.interceptors }
2351123497
: undefined
2351223498
this[kFactory] = factory
23499+
23500+
this.on('connectionError', (origin, targets, error) => {
23501+
// If a connection error occurs, we remove the client from the pool,
23502+
// and emit a connectionError event. They will not be re-used.
23503+
// Fixes https://github.com/nodejs/undici/issues/3895
23504+
for (const target of targets) {
23505+
// Do not use kRemoveClient here, as it will close the client,
23506+
// but the client cannot be closed in this state.
23507+
const idx = this[kClients].indexOf(target)
23508+
if (idx !== -1) {
23509+
this[kClients].splice(idx, 1)
23510+
}
23511+
}
23512+
})
2351323513
}
2351423514

2351523515
[kGetDispatcher] () {

yarn.lock

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@
1818
"@actions/io" "^1.0.1"
1919

2020
"@actions/github@^6.0.0":
21-
version "6.0.0"
22-
resolved "https://registry.yarnpkg.com/@actions/github/-/github-6.0.0.tgz#65883433f9d81521b782a64cc1fd45eef2191ea7"
23-
integrity sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g==
21+
version "6.0.1"
22+
resolved "https://registry.yarnpkg.com/@actions/github/-/github-6.0.1.tgz#76e5f96df062c90635a7181ef45ff1c4ac21306e"
23+
integrity sha512-xbZVcaqD4XnQAe35qSQqskb3SqIAfRyLBrHMd/8TuL7hJSz2QtbDwnNM8zWx4zO5l2fnGtseNE3MbEvD7BxVMw==
2424
dependencies:
2525
"@actions/http-client" "^2.2.0"
2626
"@octokit/core" "^5.0.1"
27-
"@octokit/plugin-paginate-rest" "^9.0.0"
28-
"@octokit/plugin-rest-endpoint-methods" "^10.0.0"
27+
"@octokit/plugin-paginate-rest" "^9.2.2"
28+
"@octokit/plugin-rest-endpoint-methods" "^10.4.0"
29+
"@octokit/request" "^8.4.1"
30+
"@octokit/request-error" "^5.1.1"
31+
undici "^5.28.5"
2932

3033
"@actions/http-client@^2.0.1", "@actions/http-client@^2.2.0":
3134
version "2.2.3"
@@ -573,14 +576,14 @@
573576
integrity sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==
574577

575578
"@octokit/core@^5.0.1":
576-
version "5.2.0"
577-
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.2.0.tgz#ddbeaefc6b44a39834e1bb2e58a49a117672a7ea"
578-
integrity sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg==
579+
version "5.2.1"
580+
resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.2.1.tgz#58c21a5f689ee81e0b883b5aa77573a7ff1b4ea1"
581+
integrity sha512-dKYCMuPO1bmrpuogcjQ8z7ICCH3FP6WmxpwC03yjzGfZhj9fTJg6+bS1+UAplekbN2C+M61UNllGOOoAfGCrdQ==
579582
dependencies:
580583
"@octokit/auth-token" "^4.0.0"
581584
"@octokit/graphql" "^7.1.0"
582-
"@octokit/request" "^8.3.1"
583-
"@octokit/request-error" "^5.1.0"
585+
"@octokit/request" "^8.4.1"
586+
"@octokit/request-error" "^5.1.1"
584587
"@octokit/types" "^13.0.0"
585588
before-after-hook "^2.2.0"
586589
universal-user-agent "^6.0.0"
@@ -607,26 +610,26 @@
607610
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-20.0.0.tgz#9ec2daa0090eeb865ee147636e0c00f73790c6e5"
608611
integrity sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==
609612

610-
"@octokit/openapi-types@^23.0.1":
611-
version "23.0.1"
612-
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-23.0.1.tgz#3721646ecd36b596ddb12650e0e89d3ebb2dd50e"
613-
integrity sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==
613+
"@octokit/openapi-types@^24.2.0":
614+
version "24.2.0"
615+
resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-24.2.0.tgz#3d55c32eac0d38da1a7083a9c3b0cca77924f7d3"
616+
integrity sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==
614617

615-
"@octokit/plugin-paginate-rest@^9.0.0":
618+
"@octokit/plugin-paginate-rest@^9.2.2":
616619
version "9.2.2"
617620
resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.2.tgz#c516bc498736bcdaa9095b9a1d10d9d0501ae831"
618621
integrity sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ==
619622
dependencies:
620623
"@octokit/types" "^12.6.0"
621624

622-
"@octokit/plugin-rest-endpoint-methods@^10.0.0":
625+
"@octokit/plugin-rest-endpoint-methods@^10.4.0":
623626
version "10.4.1"
624627
resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz#41ba478a558b9f554793075b2e20cd2ef973be17"
625628
integrity sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==
626629
dependencies:
627630
"@octokit/types" "^12.6.0"
628631

629-
"@octokit/request-error@^5.1.0", "@octokit/request-error@^5.1.1":
632+
"@octokit/request-error@^5.1.1":
630633
version "5.1.1"
631634
resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.1.tgz#b9218f9c1166e68bb4d0c89b638edc62c9334805"
632635
integrity sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==
@@ -635,7 +638,7 @@
635638
deprecation "^2.0.0"
636639
once "^1.4.0"
637640

638-
"@octokit/request@^8.3.1", "@octokit/request@^8.4.1":
641+
"@octokit/request@^8.4.1":
639642
version "8.4.1"
640643
resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.1.tgz#715a015ccf993087977ea4365c44791fc4572486"
641644
integrity sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==
@@ -653,11 +656,11 @@
653656
"@octokit/openapi-types" "^20.0.0"
654657

655658
"@octokit/types@^13.0.0", "@octokit/types@^13.1.0":
656-
version "13.8.0"
657-
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.8.0.tgz#3815885e5abd16ed9ffeea3dced31d37ce3f8a0a"
658-
integrity sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==
659+
version "13.10.0"
660+
resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.10.0.tgz#3e7c6b19c0236c270656e4ea666148c2b51fd1a3"
661+
integrity sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==
659662
dependencies:
660-
"@octokit/openapi-types" "^23.0.1"
663+
"@octokit/openapi-types" "^24.2.0"
661664

662665
"@sinclair/typebox@^0.27.8":
663666
version "0.27.8"
@@ -2250,10 +2253,10 @@ undici-types@~6.20.0:
22502253
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433"
22512254
integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==
22522255

2253-
undici@^5.25.4:
2254-
version "5.28.5"
2255-
resolved "https://registry.yarnpkg.com/undici/-/undici-5.28.5.tgz#b2b94b6bf8f1d919bc5a6f31f2c01deb02e54d4b"
2256-
integrity sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==
2256+
undici@^5.25.4, undici@^5.28.5:
2257+
version "5.29.0"
2258+
resolved "https://registry.yarnpkg.com/undici/-/undici-5.29.0.tgz#419595449ae3f2cdcba3580a2e8903399bd1f5a3"
2259+
integrity sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==
22572260
dependencies:
22582261
"@fastify/busboy" "^2.0.0"
22592262

0 commit comments

Comments
 (0)