Compare commits

...

2 Commits

Author SHA1 Message Date
semantic-release-bot 67e27a7eb7 build(release): 1.11.3 [skip ci]
## [1.11.3](https://github.com/actions/create-github-app-token/compare/v1.11.2...v1.11.3) (2025-02-04)

### Bug Fixes

* **deps:** bump the production-dependencies group with 3 updates ([#203](https://github.com/actions/create-github-app-token/issues/203)) ([8e85a3c](https://github.com/actions/create-github-app-token/commit/8e85a3cf1418b864b528ed9c756cd9c84932d442)), closes [#665](https://github.com/actions/create-github-app-token/issues/665) [#665](https://github.com/actions/create-github-app-token/issues/665) [#663](https://github.com/actions/create-github-app-token/issues/663) [#662](https://github.com/actions/create-github-app-token/issues/662) [#661](https://github.com/actions/create-github-app-token/issues/661) [#659](https://github.com/actions/create-github-app-token/issues/659) [#660](https://github.com/actions/create-github-app-token/issues/660) [#658](https://github.com/actions/create-github-app-token/issues/658) [#656](https://github.com/actions/create-github-app-token/issues/656) [#657](https://github.com/actions/create-github-app-token/issues/657) [#655](https://github.com/actions/create-github-app-token/issues/655) [#731](https://github.com/actions/create-github-app-token/issues/731) [nodejs/undici#4016](https://github.com/nodejs/undici/issues/4016) [nodejs/undici#4017](https://github.com/nodejs/undici/issues/4017) [nodejs/undici#4018](https://github.com/nodejs/undici/issues/4018) [nodejs/undici#4008](https://github.com/nodejs/undici/issues/4008) [nodejs/undici#3991](https://github.com/nodejs/undici/issues/3991) [nodejs/undici#4001](https://github.com/nodejs/undici/issues/4001) [nodejs/undici#3980](https://github.com/nodejs/undici/issues/3980) [nodejs/undici#4003](https://github.com/nodejs/undici/issues/4003) [nodejs/undici#3965](https://github.com/nodejs/undici/issues/3965) [nodejs/undici#4002](https://github.com/nodejs/undici/issues/4002) [nodejs/undici#4006](https://github.com/nodejs/undici/issues/4006) [nodejs/undici#3956](https://github.com/nodejs/undici/issues/3956) [nodejs/undici#3964](https://github.com/nodejs/undici/issues/3964) [nodejs/undici#3447](https://github.com/nodejs/undici/issues/3447) [#3966](https://github.com/actions/create-github-app-token/issues/3966) [nodejs/undici#3967](https://github.com/nodejs/undici/issues/3967) [nodejs/undici#3971](https://github.com/nodejs/undici/issues/3971) [nodejs/undici#3954](https://github.com/nodejs/undici/issues/3954) [nodejs/undici#3972](https://github.com/nodejs/undici/issues/3972) [nodejs/undici#3974](https://github.com/nodejs/undici/issues/3974) [nodejs/undici#3976](https://github.com/nodejs/undici/issues/3976) [#3975](https://github.com/actions/create-github-app-token/issues/3975) [nodejs/undici#3977](https://github.com/nodejs/undici/issues/3977) [nodejs/undici#3978](https://github.com/nodejs/undici/issues/3978) [nodejs/undici#3981](https://github.com/nodejs/undici/issues/3981) [nodejs/undici#3983](https://github.com/nodejs/undici/issues/3983) [nodejs/undici#3986](https://github.com/nodejs/undici/issues/3986) [#4021](https://github.com/actions/create-github-app-token/issues/4021) [#4018](https://github.com/actions/create-github-app-token/issues/4018) [#4017](https://github.com/actions/create-github-app-token/issues/4017) [#4016](https://github.com/actions/create-github-app-token/issues/4016) [#4008](https://github.com/actions/create-github-app-token/issues/4008) [#4007](https://github.com/actions/create-github-app-token/issues/4007) [#4006](https://github.com/actions/create-github-app-token/issues/4006) [#3965](https://github.com/actions/create-github-app-token/issues/3965)
2025-02-04 01:08:21 +00:00
dependabot[bot] 8e85a3cf14 fix(deps): bump the production-dependencies group with 3 updates (#203)
Bumps the production-dependencies group with 3 updates:
[@octokit/auth-app](https://github.com/octokit/auth-app.js),
[@octokit/request](https://github.com/octokit/request.js) and
[undici](https://github.com/nodejs/undici).

Updates `@octokit/auth-app` from 7.1.3 to 7.1.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/octokit/auth-app.js/releases"><code>@​octokit/auth-app</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v7.1.4</h2>
<h2><a
href="https://github.com/octokit/auth-app.js/compare/v7.1.3...v7.1.4">7.1.4</a>
(2025-01-08)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> bump Octokit deps to fix Deno compat (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/665">#665</a>)
(<a
href="https://github.com/octokit/auth-app.js/commit/33fd19f025b0445bc79db12d23cf84d572ae25f7">33fd19f</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/octokit/auth-app.js/commit/33fd19f025b0445bc79db12d23cf84d572ae25f7"><code>33fd19f</code></a>
fix(deps): bump Octokit deps to fix Deno compat (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/665">#665</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/b86b96d83bd8a6959e666363db99aa7af460ad20"><code>b86b96d</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/663">#663</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/40a2a1de946b414773cd22047aa829e6c23ee003"><code>40a2a1d</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/662">#662</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/8a51c1f161105edb0d3569d97284db00d247564d"><code>8a51c1f</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/661">#661</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/32db237e6229c62f2301ca3a968ca863703d4f85"><code>32db237</code></a>
chore(deps): update dependency prettier to v3.4.2 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/659">#659</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/3fab008efa5a6b05722d2542be5e32517a999046"><code>3fab008</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/660">#660</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/4a8092130326d2598230bc2c7ab0f77ef7a29ad6"><code>4a80921</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/658">#658</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/3563f331c465e9d478fd477d855950d7df28d7d5"><code>3563f33</code></a>
chore(deps): update dependency prettier to v3.4.0 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/656">#656</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/f723dba9ed761bbb18509c760f455343a1bcb5dc"><code>f723dba</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/657">#657</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/8ebaca1062432d1c412733f460697a1d12f27563"><code>8ebaca1</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/655">#655</a>)</li>
<li>See full diff in <a
href="https://github.com/octokit/auth-app.js/compare/v7.1.3...v7.1.4">compare
view</a></li>
</ul>
</details>
<br />

Updates `@octokit/request` from 9.1.4 to 9.2.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/octokit/request.js/releases"><code>@​octokit/request</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v9.2.0</h2>
<h1><a
href="https://github.com/octokit/request.js/compare/v9.1.4...v9.2.0">9.2.0</a>
(2025-01-16)</h1>
<h3>Features</h3>
<ul>
<li>correctly parse response bodies as JSON where the Content-Type is
<code>application/scim+json</code> (<a
href="https://redirect.github.com/octokit/request.js/issues/731">#731</a>)
(<a
href="https://github.com/octokit/request.js/commit/00bf316136acf001344a5bacff906f1748e6c368">00bf316</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/octokit/request.js/commit/00bf316136acf001344a5bacff906f1748e6c368"><code>00bf316</code></a>
feat: correctly parse response bodies as JSON where the Content-Type is
`appl...</li>
<li>See full diff in <a
href="https://github.com/octokit/request.js/compare/v9.1.4...v9.2.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `undici` from 7.2.0 to 7.3.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/nodejs/undici/releases">undici's
releases</a>.</em></p>
<blockquote>
<h2>v7.3.0</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: sqlite null ref by <a
href="https://github.com/ronag"><code>@​ronag</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4016">nodejs/undici#4016</a></li>
<li>fix: sqlite remove unnecessary parameter by <a
href="https://github.com/ronag"><code>@​ronag</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4017">nodejs/undici#4017</a></li>
<li>feat: sqlite add set and minor cleanup by <a
href="https://github.com/ronag"><code>@​ronag</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4018">nodejs/undici#4018</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v7.2.3...v7.3.0">https://github.com/nodejs/undici/compare/v7.2.3...v7.3.0</a></p>
<h2>v7.2.3</h2>
<h1>⚠️ Security Release ⚠️</h1>
<p>Fixes CVE CVE-2025-22150 <a
href="https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975">https://github.com/nodejs/undici/security/advisories/GHSA-c76h-2ccp-4975</a>
(embargoed until 22-01-2025).</p>
<h2>What's Changed</h2>
<ul>
<li>Fix typo in update cache tests action by <a
href="https://github.com/flakey5"><code>@​flakey5</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4008">nodejs/undici#4008</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v7.2.2...v7.2.3">https://github.com/nodejs/undici/compare/v7.2.2...v7.2.3</a></p>
<h2>v7.2.2</h2>
<h2>What's Changed</h2>
<ul>
<li>Update WPT by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/3991">nodejs/undici#3991</a></li>
<li>fix: dual-stack retries infinite loop by <a
href="https://github.com/luddd3"><code>@​luddd3</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4001">nodejs/undici#4001</a></li>
<li>build(deps): bump codecov/codecov-action from 5.0.7 to 5.1.2 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3980">nodejs/undici#3980</a></li>
<li>build(deps): bump github/codeql-action from 3.27.0 to 3.28.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4003">nodejs/undici#4003</a></li>
<li>tests: Update Cache Tests by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/3965">nodejs/undici#3965</a></li>
<li>ReadableStreamFrom pull until cannot on empty enqueu by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4002">nodejs/undici#4002</a></li>
<li>Resolve circular dependency by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/4006">nodejs/undici#4006</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v7.2.1...v7.2.2">https://github.com/nodejs/undici/compare/v7.2.1...v7.2.2</a></p>
<h2>v7.2.1</h2>
<h2>What's Changed</h2>
<ul>
<li>fix(3951): typo on errorede dns lookup by <a
href="https://github.com/metcoder95"><code>@​metcoder95</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3956">nodejs/undici#3956</a></li>
<li>feat: add missing error type by <a
href="https://github.com/Gigioliva"><code>@​Gigioliva</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3964">nodejs/undici#3964</a></li>
<li>websocket: improve frame parsing by <a
href="https://github.com/tsctx"><code>@​tsctx</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3447">nodejs/undici#3447</a></li>
<li>fix(<a
href="https://redirect.github.com/nodejs/undici/issues/3966">#3966</a>):
account for network errors by <a
href="https://github.com/metcoder95"><code>@​metcoder95</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3967">nodejs/undici#3967</a></li>
<li>build(deps-dev): bump <code>@​fastify/busboy</code> from 3.1.0 to
3.1.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3971">nodejs/undici#3971</a></li>
<li>Update WPT by <a
href="https://github.com/github-actions"><code>@​github-actions</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/3954">nodejs/undici#3954</a></li>
<li>docs: fix dispatcher stream example links by <a
href="https://github.com/luddd3"><code>@​luddd3</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3972">nodejs/undici#3972</a></li>
<li>fix: <code>undici:request:headers</code> does not indicate
completion of a response by <a
href="https://github.com/legendecas"><code>@​legendecas</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3974">nodejs/undici#3974</a></li>
<li>build(deps): bump cronometro from 3.0.2 to 4.0.1 in /benchmarks by
<a href="https://github.com/dependabot"><code>@​dependabot</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/3976">nodejs/undici#3976</a></li>
<li>fix(<a
href="https://redirect.github.com/nodejs/undici/issues/3975">#3975</a>):
do not unref timeout by <a
href="https://github.com/metcoder95"><code>@​metcoder95</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3977">nodejs/undici#3977</a></li>
<li>fix: bad response on h2 server by <a
href="https://github.com/metcoder95"><code>@​metcoder95</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3978">nodejs/undici#3978</a></li>
<li>build(deps): bump peter-evans/create-pull-request from 7.0.5 to
7.0.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3981">nodejs/undici#3981</a></li>
<li>build(deps): bump actions/upload-artifact from 4.4.3 to 4.5.0 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3983">nodejs/undici#3983</a></li>
<li>chore: ensure automated v7 release compared to v7 by <a
href="https://github.com/trivikr"><code>@​trivikr</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/3986">nodejs/undici#3986</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/nodejs/undici/commit/ee02abe641e8aec8f609752dc135feadb2a8bf30"><code>ee02abe</code></a>
Bumped v7.3.0 (<a
href="https://redirect.github.com/nodejs/undici/issues/4021">#4021</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/fe21269033eec441a46f95d6cd16b4236edb2b4c"><code>fe21269</code></a>
feat: sqlite add set and minor cleanup (<a
href="https://redirect.github.com/nodejs/undici/issues/4018">#4018</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/a364e7c03849c1dc308e5f031031aa92bfdae324"><code>a364e7c</code></a>
fix: sqlite remove unnecessary parameter (<a
href="https://redirect.github.com/nodejs/undici/issues/4017">#4017</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/d76f5cf2fba0f7f4160395e5c29eace40a7e5934"><code>d76f5cf</code></a>
fix: sqlite null ref (<a
href="https://redirect.github.com/nodejs/undici/issues/4016">#4016</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/83537aa55028bfeef5dd9504abfde63264c2df5d"><code>83537aa</code></a>
Bumped v7.2.3</li>
<li><a
href="https://github.com/nodejs/undici/commit/c2d78cd19fe4f4c621424491e26ce299e65e934a"><code>c2d78cd</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/nodejs/undici/commit/fa1d840682ed934314e837b807c2a3449c569798"><code>fa1d840</code></a>
Fix typo in update cache tests action (<a
href="https://redirect.github.com/nodejs/undici/issues/4008">#4008</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/bd98a6303e45d5e0d44192a93731b1defdb415f3"><code>bd98a63</code></a>
Bumped v7.2.2 (<a
href="https://redirect.github.com/nodejs/undici/issues/4007">#4007</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/e8a93e59246453e359ff02375d7111f8c10d4e40"><code>e8a93e5</code></a>
Resolve circular dependency (<a
href="https://redirect.github.com/nodejs/undici/issues/4006">#4006</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/b55476909055bf698cd8eeabe081daa1cc6d9d4c"><code>b554769</code></a>
Revert &quot;chore: update cache tests (<a
href="https://redirect.github.com/nodejs/undici/issues/3965">#3965</a>)&quot;</li>
<li>Additional commits viewable in <a
href="https://github.com/nodejs/undici/compare/v7.2.0...v7.3.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-03 17:07:49 -08:00
4 changed files with 851 additions and 686 deletions
+398 -323
View File
File diff suppressed because it is too large Load Diff
+391 -310
View File
@@ -20779,20 +20779,24 @@ var require_util8 = __commonJS({
async start() {
iterator = iterable[Symbol.asyncIterator]();
},
async pull(controller) {
const { done, value } = await iterator.next();
if (done) {
queueMicrotask(() => {
controller.close();
controller.byobRequest?.respond(0);
});
} else {
const buf = Buffer.isBuffer(value) ? value : Buffer.from(value);
if (buf.byteLength) {
controller.enqueue(new Uint8Array(buf));
pull(controller) {
async function pull() {
const { done, value } = await iterator.next();
if (done) {
queueMicrotask(() => {
controller.close();
controller.byobRequest?.respond(0);
});
} else {
const buf = Buffer.isBuffer(value) ? value : Buffer.from(value);
if (buf.byteLength) {
controller.enqueue(new Uint8Array(buf));
} else {
return await pull();
}
}
}
return controller.desiredSize > 0;
return pull();
},
async cancel() {
await iterator.return();
@@ -25308,6 +25312,13 @@ var require_body2 = __commonJS({
var { isArrayBuffer } = require("node:util/types");
var { serializeAMimeType } = require_data_url();
var { multipartFormDataParser } = require_formdata_parser();
var random;
try {
const crypto = require("node:crypto");
random = (max) => crypto.randomInt(0, max);
} catch {
random = (max) => Math.floor(Math.random(max));
}
var textEncoder = new TextEncoder();
function noop() {
}
@@ -25357,7 +25368,7 @@ var require_body2 = __commonJS({
} else if (ArrayBuffer.isView(object)) {
source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength));
} else if (webidl.is.FormData(object)) {
const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, "0")}`;
const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`;
const prefix = `--${boundary}\r
Content-Disposition: form-data`;
const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22");
@@ -28807,7 +28818,7 @@ var require_retry_handler = __commonJS({
retryAfterHeader = Number.isNaN(retryAfterHeader) ? calculateRetryAfterHeader(retryAfterHeader) : retryAfterHeader * 1e3;
}
const retryTimeout = retryAfterHeader > 0 ? Math.min(retryAfterHeader, maxTimeout) : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout);
setTimeout(() => cb(null), retryTimeout).unref();
setTimeout(() => cb(null), retryTimeout);
}
onResponseStart(controller, statusCode, headers, statusMessage) {
this.retryCount += 1;
@@ -28914,7 +28925,7 @@ var require_retry_handler = __commonJS({
return this.handler.onResponseEnd?.(controller, trailers);
}
onResponseError(controller, err) {
if (!controller || controller.aborted || isDisturbed(this.opts.body)) {
if (controller?.aborted || isDisturbed(this.opts.body)) {
this.handler.onResponseError?.(controller, err);
return;
}
@@ -31471,7 +31482,7 @@ var require_dns = __commonJS({
runLookup(origin, opts, cb) {
const ips = this.#records.get(origin.hostname);
if (ips == null && this.full) {
cb(null, origin.origin);
cb(null, origin);
return;
}
const newOpts = {
@@ -31506,7 +31517,7 @@ var require_dns = __commonJS({
}
cb(
null,
`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`
new URL(`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`)
);
});
} else {
@@ -31530,7 +31541,7 @@ var require_dns = __commonJS({
}
cb(
null,
`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`
new URL(`${origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`)
);
}
}
@@ -31595,6 +31606,30 @@ var require_dns = __commonJS({
}
return ip;
}
pickFamily(origin, ipFamily) {
const records = this.#records.get(origin.hostname)?.records;
if (!records) {
return null;
}
const family = records[ipFamily];
if (!family) {
return null;
}
if (family.offset == null || family.offset === maxInt) {
family.offset = 0;
} else {
family.offset++;
}
const position = family.offset % family.ips.length;
const ip = family.ips[position] ?? null;
if (ip == null) {
return ip;
}
if (Date.now() - ip.timestamp > ip.ttl) {
family.ips.splice(position, 1);
}
return ip;
}
setRecords(origin, addresses) {
const timestamp = Date.now();
const records = { records: { 4: null, 6: null } };
@@ -31624,9 +31659,12 @@ var require_dns = __commonJS({
#dispatch = null;
#origin = null;
#controller = null;
constructor(state, { origin, handler, dispatch }, opts) {
#newOrigin = null;
#firstTry = true;
constructor(state, { origin, handler, dispatch, newOrigin }, opts) {
super(handler);
this.#origin = origin;
this.#newOrigin = newOrigin;
this.#opts = { ...opts };
this.#state = state;
this.#dispatch = dispatch;
@@ -31636,17 +31674,30 @@ var require_dns = __commonJS({
case "ETIMEDOUT":
case "ECONNREFUSED": {
if (this.#state.dualStack) {
this.#state.runLookup(this.#origin, this.#opts, (err2, newOrigin) => {
if (err2) {
super.onResponseError(controller, err2);
return;
}
const dispatchOpts = {
...this.#opts,
origin: newOrigin
};
this.#dispatch(dispatchOpts, this);
});
if (!this.#firstTry) {
super.onResponseError(controller, err);
return;
}
this.#firstTry = false;
const otherFamily = this.#newOrigin.hostname[0] === "[" ? 4 : 6;
const ip = this.#state.pickFamily(this.#origin, otherFamily);
if (ip == null) {
super.onResponseError(controller, err);
return;
}
let port;
if (typeof ip.port === "number") {
port = `:${ip.port}`;
} else if (this.#origin.port !== "") {
port = `:${this.#origin.port}`;
} else {
port = "";
}
const dispatchOpts = {
...this.#opts,
origin: `${this.#origin.protocol}//${ip.family === 6 ? `[${ip.address}]` : ip.address}${port}`
};
this.#dispatch(dispatchOpts, this);
return;
}
super.onResponseError(controller, err);
@@ -31654,7 +31705,8 @@ var require_dns = __commonJS({
}
case "ENOTFOUND":
this.#state.deleteRecords(this.#origin);
// eslint-disable-next-line no-fallthrough
super.onResponseError(controller, err);
break;
default:
super.onResponseError(controller, err);
break;
@@ -31707,14 +31759,13 @@ var require_dns = __commonJS({
}
instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {
if (err) {
return handler.onError(err);
return handler.onResponseError(null, err);
}
let dispatchOpts = null;
dispatchOpts = {
const dispatchOpts = {
...origDispatchOpts,
servername: origin.hostname,
// For SNI on TLS
origin: newOrigin,
origin: newOrigin.origin,
headers: {
host: origin.host,
...origDispatchOpts.headers
@@ -31722,7 +31773,10 @@ var require_dns = __commonJS({
};
dispatch(
dispatchOpts,
instance.getHandler({ origin, dispatch, handler }, origDispatchOpts)
instance.getHandler(
{ origin, dispatch, handler, newOrigin },
origDispatchOpts
)
);
});
return true;
@@ -32956,7 +33010,7 @@ var require_sqlite_cache_store = __commonJS({
*/
#countEntriesQuery;
/**
* @type {import('node:sqlite').StatementSync}
* @type {import('node:sqlite').StatementSync | null}
*/
#deleteOldValuesQuery;
/**
@@ -33041,8 +33095,7 @@ var require_sqlite_cache_store = __commonJS({
etag = ?,
cacheControlDirectives = ?,
cachedAt = ?,
staleAt = ?,
deleteAt = ?
staleAt = ?
WHERE
id = ?
`);
@@ -33059,9 +33112,8 @@ var require_sqlite_cache_store = __commonJS({
cacheControlDirectives,
vary,
cachedAt,
staleAt,
deleteAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
staleAt
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
`);
this.#deleteByUrlQuery = this.#db.prepare(
`DELETE FROM cacheInterceptorV${VERSION3} WHERE url = ?`
@@ -33088,27 +33140,67 @@ var require_sqlite_cache_store = __commonJS({
}
/**
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
* @returns {import('../../types/cache-interceptor.d.ts').default.GetResult | undefined}
* @returns {(import('../../types/cache-interceptor.d.ts').default.GetResult & { body?: Buffer }) | undefined}
*/
get(key) {
assertCacheKey(key);
const value = this.#findValue(key);
if (!value) {
return void 0;
}
const result = {
body: Buffer.from(value.body),
return value ? {
body: value.body ? Buffer.from(value.body.buffer) : void 0,
statusCode: value.statusCode,
statusMessage: value.statusMessage,
headers: value.headers ? JSON.parse(value.headers) : void 0,
etag: value.etag ? value.etag : void 0,
vary: value.vary ?? void 0,
vary: value.vary ? JSON.parse(value.vary) : void 0,
cacheControlDirectives: value.cacheControlDirectives ? JSON.parse(value.cacheControlDirectives) : void 0,
cachedAt: value.cachedAt,
staleAt: value.staleAt,
deleteAt: value.deleteAt
};
return result;
} : void 0;
}
/**
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
* @param {import('../../types/cache-interceptor.d.ts').default.CacheValue & { body: null | Buffer | Array<Buffer>}} value
*/
set(key, value) {
assertCacheKey(key);
const url = this.#makeValueUrl(key);
const body = Array.isArray(value.body) ? Buffer.concat(value.body) : value.body;
const size = body?.byteLength;
if (size && size > this.#maxEntrySize) {
return;
}
const existingValue = this.#findValue(key, true);
if (existingValue) {
this.#updateValueQuery.run(
body,
value.deleteAt,
value.statusCode,
value.statusMessage,
value.headers ? JSON.stringify(value.headers) : null,
value.etag ? value.etag : null,
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
value.cachedAt,
value.staleAt,
existingValue.id
);
} else {
this.#prune();
this.#insertValueQuery.run(
url,
key.method,
body,
value.deleteAt,
value.statusCode,
value.statusMessage,
value.headers ? JSON.stringify(value.headers) : null,
value.etag ? value.etag : null,
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
value.vary ? JSON.stringify(value.vary) : null,
value.cachedAt,
value.staleAt
);
}
}
/**
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
@@ -33118,15 +33210,12 @@ var require_sqlite_cache_store = __commonJS({
createWriteStream(key, value) {
assertCacheKey(key);
assertCacheValue(value);
const url = this.#makeValueUrl(key);
let size = 0;
const body = [];
const store = this;
return new Writable({
decodeStrings: true,
write(chunk, encoding, callback) {
if (typeof chunk === "string") {
chunk = Buffer.from(chunk, encoding);
}
size += chunk.byteLength;
if (size < store.#maxEntrySize) {
body.push(chunk);
@@ -33136,39 +33225,7 @@ var require_sqlite_cache_store = __commonJS({
callback();
},
final(callback) {
const existingValue = store.#findValue(key, true);
if (existingValue) {
store.#updateValueQuery.run(
Buffer.concat(body),
value.deleteAt,
value.statusCode,
value.statusMessage,
value.headers ? JSON.stringify(value.headers) : null,
value.etag ? value.etag : null,
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
value.cachedAt,
value.staleAt,
value.deleteAt,
existingValue.id
);
} else {
store.#prune();
store.#insertValueQuery.run(
url,
key.method,
Buffer.concat(body),
value.deleteAt,
value.statusCode,
value.statusMessage,
value.headers ? JSON.stringify(value.headers) : null,
value.etag ? value.etag : null,
value.cacheControlDirectives ? JSON.stringify(value.cacheControlDirectives) : null,
value.vary ? JSON.stringify(value.vary) : null,
value.cachedAt,
value.staleAt,
value.deleteAt
);
}
store.set(key, { ...value, body });
callback();
}
});
@@ -33188,13 +33245,13 @@ var require_sqlite_cache_store = __commonJS({
}
{
const removed = this.#deleteExpiredValuesQuery.run(Date.now()).changes;
if (removed > 0) {
if (removed) {
return removed;
}
}
{
const removed = this.#deleteOldValuesQuery.run(Math.max(Math.floor(this.#maxCount * 0.1), 1)).changes;
if (removed > 0) {
const removed = this.#deleteOldValuesQuery?.run(Math.max(Math.floor(this.#maxCount * 0.1), 1)).changes;
if (removed) {
return removed;
}
}
@@ -33218,7 +33275,7 @@ var require_sqlite_cache_store = __commonJS({
/**
* @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} key
* @param {boolean} [canBeExpired=false]
* @returns {(SqliteStoreValue & { vary?: Record<string, string[]> }) | undefined}
* @returns {SqliteStoreValue | undefined}
*/
#findValue(key, canBeExpired = false) {
const url = this.#makeValueUrl(key);
@@ -33237,9 +33294,9 @@ var require_sqlite_cache_store = __commonJS({
if (!headers) {
return void 0;
}
value.vary = JSON.parse(value.vary);
for (const header in value.vary) {
if (!headerValueEquals(headers[header], value.vary[header])) {
const vary = JSON.parse(value.vary);
for (const header in vary) {
if (!headerValueEquals(headers[header], vary[header])) {
matches = false;
break;
}
@@ -37469,6 +37526,178 @@ var require_constants10 = __commonJS({
}
});
// node_modules/undici/lib/web/websocket/util.js
var require_util12 = __commonJS({
"node_modules/undici/lib/web/websocket/util.js"(exports2, module2) {
"use strict";
var { states, opcodes } = require_constants10();
var { isUtf8 } = require("node:buffer");
var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
function isConnecting(readyState) {
return readyState === states.CONNECTING;
}
function isEstablished(readyState) {
return readyState === states.OPEN;
}
function isClosing(readyState) {
return readyState === states.CLOSING;
}
function isClosed(readyState) {
return readyState === states.CLOSED;
}
function fireEvent(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {}) {
const event = eventFactory(e, eventInitDict);
target.dispatchEvent(event);
}
function websocketMessageReceived(handler, type, data) {
handler.onMessage(type, data);
}
function toArrayBuffer(buffer) {
if (buffer.byteLength === buffer.buffer.byteLength) {
return buffer.buffer;
}
return new Uint8Array(buffer).buffer;
}
function isValidSubprotocol(protocol) {
if (protocol.length === 0) {
return false;
}
for (let i = 0; i < protocol.length; ++i) {
const code = protocol.charCodeAt(i);
if (code < 33 || // CTL, contains SP (0x20) and HT (0x09)
code > 126 || code === 34 || // "
code === 40 || // (
code === 41 || // )
code === 44 || // ,
code === 47 || // /
code === 58 || // :
code === 59 || // ;
code === 60 || // <
code === 61 || // =
code === 62 || // >
code === 63 || // ?
code === 64 || // @
code === 91 || // [
code === 92 || // \
code === 93 || // ]
code === 123 || // {
code === 125) {
return false;
}
}
return true;
}
function isValidStatusCode(code) {
if (code >= 1e3 && code < 1015) {
return code !== 1004 && // reserved
code !== 1005 && // "MUST NOT be set as a status code"
code !== 1006;
}
return code >= 3e3 && code <= 4999;
}
function isControlFrame(opcode) {
return opcode === opcodes.CLOSE || opcode === opcodes.PING || opcode === opcodes.PONG;
}
function isContinuationFrame(opcode) {
return opcode === opcodes.CONTINUATION;
}
function isTextBinaryFrame(opcode) {
return opcode === opcodes.TEXT || opcode === opcodes.BINARY;
}
function isValidOpcode(opcode) {
return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode);
}
function parseExtensions(extensions) {
const position = { position: 0 };
const extensionList = /* @__PURE__ */ new Map();
while (position.position < extensions.length) {
const pair = collectASequenceOfCodePointsFast(";", extensions, position);
const [name, value = ""] = pair.split("=");
extensionList.set(
removeHTTPWhitespace(name, true, false),
removeHTTPWhitespace(value, false, true)
);
position.position++;
}
return extensionList;
}
function isValidClientWindowBits(value) {
for (let i = 0; i < value.length; i++) {
const byte = value.charCodeAt(i);
if (byte < 48 || byte > 57) {
return false;
}
}
return true;
}
function getURLRecord(url, baseURL) {
let urlRecord;
try {
urlRecord = new URL(url, baseURL);
} catch (e) {
throw new DOMException(e, "SyntaxError");
}
if (urlRecord.protocol === "http:") {
urlRecord.protocol = "ws:";
} else if (urlRecord.protocol === "https:") {
urlRecord.protocol = "wss:";
}
if (urlRecord.protocol !== "ws:" && urlRecord.protocol !== "wss:") {
throw new DOMException("expected a ws: or wss: url", "SyntaxError");
}
if (urlRecord.hash.length || urlRecord.href.endsWith("#")) {
throw new DOMException("hash", "SyntaxError");
}
return urlRecord;
}
function validateCloseCodeAndReason(code, reason) {
if (code !== null) {
if (code !== 1e3 && (code < 3e3 || code > 4999)) {
throw new DOMException("invalid code", "InvalidAccessError");
}
}
if (reason !== null) {
const reasonBytesLength = Buffer.byteLength(reason);
if (reasonBytesLength > 123) {
throw new DOMException(`Reason must be less than 123 bytes; received ${reasonBytesLength}`, "SyntaxError");
}
}
}
var utf8Decode = (() => {
if (typeof process.versions.icu === "string") {
const fatalDecoder = new TextDecoder("utf-8", { fatal: true });
return fatalDecoder.decode.bind(fatalDecoder);
}
return function(buffer) {
if (isUtf8(buffer)) {
return buffer.toString("utf-8");
}
throw new TypeError("Invalid utf-8 received.");
};
})();
module2.exports = {
isConnecting,
isEstablished,
isClosing,
isClosed,
fireEvent,
isValidSubprotocol,
isValidStatusCode,
websocketMessageReceived,
utf8Decode,
isControlFrame,
isContinuationFrame,
isTextBinaryFrame,
isValidOpcode,
parseExtensions,
isValidClientWindowBits,
toArrayBuffer,
getURLRecord,
validateCloseCodeAndReason
};
}
});
// node_modules/undici/lib/web/websocket/frame.js
var require_frame2 = __commonJS({
"node_modules/undici/lib/web/websocket/frame.js"(exports2, module2) {
@@ -37584,7 +37813,7 @@ var require_connection2 = __commonJS({
"node_modules/undici/lib/web/websocket/connection.js"(exports2, module2) {
"use strict";
var { uid, states, sentCloseFrameState, emptyBuffer, opcodes } = require_constants10();
var { failWebsocketConnection, parseExtensions, isClosed, isClosing, isEstablished, validateCloseCodeAndReason } = require_util12();
var { parseExtensions, isClosed, isClosing, isEstablished, validateCloseCodeAndReason } = require_util12();
var { channels } = require_diagnostics();
var { makeRequest } = require_request4();
var { fetching } = require_fetch2();
@@ -37718,85 +37947,8 @@ var require_connection2 = __commonJS({
object.readyState = states.CLOSING;
}
}
module2.exports = {
establishWebSocketConnection,
closeWebSocketConnection
};
}
});
// node_modules/undici/lib/web/websocket/util.js
var require_util12 = __commonJS({
"node_modules/undici/lib/web/websocket/util.js"(exports2, module2) {
"use strict";
var { states, opcodes } = require_constants10();
var { isUtf8 } = require("node:buffer");
var { collectASequenceOfCodePointsFast, removeHTTPWhitespace } = require_data_url();
function isConnecting(readyState) {
return readyState === states.CONNECTING;
}
function isEstablished(readyState) {
return readyState === states.OPEN;
}
function isClosing(readyState) {
return readyState === states.CLOSING;
}
function isClosed(readyState) {
return readyState === states.CLOSED;
}
function fireEvent(e, target, eventFactory = (type, init) => new Event(type, init), eventInitDict = {}) {
const event = eventFactory(e, eventInitDict);
target.dispatchEvent(event);
}
function websocketMessageReceived(handler, type, data) {
handler.onMessage(type, data);
}
function toArrayBuffer(buffer) {
if (buffer.byteLength === buffer.buffer.byteLength) {
return buffer.buffer;
}
return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
}
function isValidSubprotocol(protocol) {
if (protocol.length === 0) {
return false;
}
for (let i = 0; i < protocol.length; ++i) {
const code = protocol.charCodeAt(i);
if (code < 33 || // CTL, contains SP (0x20) and HT (0x09)
code > 126 || code === 34 || // "
code === 40 || // (
code === 41 || // )
code === 44 || // ,
code === 47 || // /
code === 58 || // :
code === 59 || // ;
code === 60 || // <
code === 61 || // =
code === 62 || // >
code === 63 || // ?
code === 64 || // @
code === 91 || // [
code === 92 || // \
code === 93 || // ]
code === 123 || // {
code === 125) {
return false;
}
}
return true;
}
function isValidStatusCode(code) {
if (code >= 1e3 && code < 1015) {
return code !== 1004 && // reserved
code !== 1005 && // "MUST NOT be set as a status code"
code !== 1006;
}
return code >= 3e3 && code <= 4999;
}
function failWebsocketConnection(handler, code, reason) {
if (isEstablished(handler.readyState)) {
const { closeWebSocketConnection } = require_connection2();
closeWebSocketConnection(handler, code, reason, false);
}
handler.controller.abort();
@@ -37805,106 +37957,10 @@ var require_util12 = __commonJS({
}
handler.onFail(code, reason);
}
function isControlFrame(opcode) {
return opcode === opcodes.CLOSE || opcode === opcodes.PING || opcode === opcodes.PONG;
}
function isContinuationFrame(opcode) {
return opcode === opcodes.CONTINUATION;
}
function isTextBinaryFrame(opcode) {
return opcode === opcodes.TEXT || opcode === opcodes.BINARY;
}
function isValidOpcode(opcode) {
return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode);
}
function parseExtensions(extensions) {
const position = { position: 0 };
const extensionList = /* @__PURE__ */ new Map();
while (position.position < extensions.length) {
const pair = collectASequenceOfCodePointsFast(";", extensions, position);
const [name, value = ""] = pair.split("=");
extensionList.set(
removeHTTPWhitespace(name, true, false),
removeHTTPWhitespace(value, false, true)
);
position.position++;
}
return extensionList;
}
function isValidClientWindowBits(value) {
for (let i = 0; i < value.length; i++) {
const byte = value.charCodeAt(i);
if (byte < 48 || byte > 57) {
return false;
}
}
return true;
}
function getURLRecord(url, baseURL) {
let urlRecord;
try {
urlRecord = new URL(url, baseURL);
} catch (e) {
throw new DOMException(e, "SyntaxError");
}
if (urlRecord.protocol === "http:") {
urlRecord.protocol = "ws:";
} else if (urlRecord.protocol === "https:") {
urlRecord.protocol = "wss:";
}
if (urlRecord.protocol !== "ws:" && urlRecord.protocol !== "wss:") {
throw new DOMException("expected a ws: or wss: url", "SyntaxError");
}
if (urlRecord.hash.length || urlRecord.href.endsWith("#")) {
throw new DOMException("hash", "SyntaxError");
}
return urlRecord;
}
function validateCloseCodeAndReason(code, reason) {
if (code !== null) {
if (code !== 1e3 && (code < 3e3 || code > 4999)) {
throw new DOMException("invalid code", "InvalidAccessError");
}
}
if (reason !== null) {
const reasonBytesLength = Buffer.byteLength(reason);
if (reasonBytesLength > 123) {
throw new DOMException(`Reason must be less than 123 bytes; received ${reasonBytesLength}`, "SyntaxError");
}
}
}
var utf8Decode = (() => {
if (typeof process.versions.icu === "string") {
const fatalDecoder = new TextDecoder("utf-8", { fatal: true });
return fatalDecoder.decode.bind(fatalDecoder);
}
return function(buffer) {
if (isUtf8(buffer)) {
return buffer.toString("utf-8");
}
throw new TypeError("Invalid utf-8 received.");
};
})();
module2.exports = {
isConnecting,
isEstablished,
isClosing,
isClosed,
fireEvent,
isValidSubprotocol,
isValidStatusCode,
establishWebSocketConnection,
failWebsocketConnection,
websocketMessageReceived,
utf8Decode,
isControlFrame,
isContinuationFrame,
isTextBinaryFrame,
isValidOpcode,
parseExtensions,
isValidClientWindowBits,
toArrayBuffer,
getURLRecord,
validateCloseCodeAndReason
closeWebSocketConnection
};
}
});
@@ -37975,17 +38031,18 @@ var require_receiver2 = __commonJS({
var {
isValidStatusCode,
isValidOpcode,
failWebsocketConnection,
websocketMessageReceived,
utf8Decode,
isControlFrame,
isTextBinaryFrame,
isContinuationFrame
} = require_util12();
var { failWebsocketConnection } = require_connection2();
var { WebsocketFrameSend } = require_frame2();
var { PerMessageDeflate } = require_permessage_deflate();
var ByteParser = class extends Writable {
#buffers = [];
#fragmentsBytes = 0;
#byteOffset = 0;
#loop = false;
#state = parserStates.INFO;
@@ -38115,11 +38172,9 @@ var require_receiver2 = __commonJS({
this.#state = parserStates.INFO;
} else {
if (!this.#info.compressed) {
this.#fragments.push(body);
this.writeFragments(body);
if (!this.#info.fragmented && this.#info.fin) {
const fullMessage = Buffer.concat(this.#fragments);
websocketMessageReceived(this.#handler, this.#info.binaryType, fullMessage);
this.#fragments.length = 0;
websocketMessageReceived(this.#handler, this.#info.binaryType, this.consumeFragments());
}
this.#state = parserStates.INFO;
} else {
@@ -38128,17 +38183,16 @@ var require_receiver2 = __commonJS({
failWebsocketConnection(this.#handler, 1007, error.message);
return;
}
this.#fragments.push(data);
this.writeFragments(data);
if (!this.#info.fin) {
this.#state = parserStates.INFO;
this.#loop = true;
this.run(callback);
return;
}
websocketMessageReceived(this.#handler, this.#info.binaryType, Buffer.concat(this.#fragments));
websocketMessageReceived(this.#handler, this.#info.binaryType, this.consumeFragments());
this.#loop = true;
this.#state = parserStates.INFO;
this.#fragments.length = 0;
this.run(callback);
});
this.#loop = false;
@@ -38159,29 +38213,54 @@ var require_receiver2 = __commonJS({
} else if (n === 0) {
return emptyBuffer;
}
if (this.#buffers[0].length === n) {
this.#byteOffset -= this.#buffers[0].length;
return this.#buffers.shift();
}
const buffer = Buffer.allocUnsafe(n);
let offset = 0;
while (offset !== n) {
const next = this.#buffers[0];
const { length } = next;
if (length + offset === n) {
buffer.set(this.#buffers.shift(), offset);
break;
} else if (length + offset > n) {
buffer.set(next.subarray(0, n - offset), offset);
this.#buffers[0] = next.subarray(n - offset);
break;
} else {
buffer.set(this.#buffers.shift(), offset);
offset += next.length;
}
}
this.#byteOffset -= n;
return buffer;
const first = this.#buffers[0];
if (first.length > n) {
this.#buffers[0] = first.subarray(n, first.length);
return first.subarray(0, n);
} else if (first.length === n) {
return this.#buffers.shift();
} else {
let offset = 0;
const buffer = Buffer.allocUnsafeSlow(n);
while (offset !== n) {
const next = this.#buffers[0];
const length = next.length;
if (length + offset === n) {
buffer.set(this.#buffers.shift(), offset);
break;
} else if (length + offset > n) {
buffer.set(next.subarray(0, n - offset), offset);
this.#buffers[0] = next.subarray(n - offset);
break;
} else {
buffer.set(this.#buffers.shift(), offset);
offset += length;
}
}
return buffer;
}
}
writeFragments(fragment) {
this.#fragmentsBytes += fragment.length;
this.#fragments.push(fragment);
}
consumeFragments() {
const fragments = this.#fragments;
if (fragments.length === 1) {
this.#fragmentsBytes = 0;
return fragments.shift();
}
let offset = 0;
const output = Buffer.allocUnsafeSlow(this.#fragmentsBytes);
for (let i = 0; i < fragments.length; ++i) {
const buffer = fragments[i];
output.set(buffer, offset);
offset += buffer.length;
}
this.#fragments = [];
this.#fragmentsBytes = 0;
return output;
}
parseCloseBody(data) {
assert(data.length !== 1);
@@ -38363,12 +38442,11 @@ var require_websocket2 = __commonJS({
isClosing,
isValidSubprotocol,
fireEvent,
failWebsocketConnection,
utf8Decode,
toArrayBuffer,
getURLRecord
} = require_util12();
var { establishWebSocketConnection, closeWebSocketConnection } = require_connection2();
var { establishWebSocketConnection, closeWebSocketConnection, failWebsocketConnection } = require_connection2();
var { ByteParser } = require_receiver2();
var { kEnumerableProperty } = require_util8();
var { getGlobalDispatcher } = require_global4();
@@ -38851,8 +38929,8 @@ var require_websocketstream = __commonJS({
var { createDeferredPromise, environmentSettingsObject } = require_util9();
var { states, opcodes, sentCloseFrameState } = require_constants10();
var { webidl } = require_webidl2();
var { getURLRecord, isValidSubprotocol, isEstablished, failWebsocketConnection, utf8Decode } = require_util12();
var { establishWebSocketConnection, closeWebSocketConnection } = require_connection2();
var { getURLRecord, isValidSubprotocol, isEstablished, utf8Decode } = require_util12();
var { establishWebSocketConnection, failWebsocketConnection, closeWebSocketConnection } = require_connection2();
var { types } = require("node:util");
var { channels } = require_diagnostics();
var { WebsocketFrameSend } = require_frame2();
@@ -40247,11 +40325,11 @@ var RequestError = class extends Error {
response;
constructor(message, statusCode, options) {
super(message);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = "HttpError";
this.status = statusCode;
this.status = Number.parseInt(statusCode);
if (Number.isNaN(this.status)) {
this.status = 0;
}
if ("response" in options) {
this.response = options.response;
}
@@ -40388,7 +40466,7 @@ async function getResponseData(response) {
return response.text().catch(() => "");
}
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
if (mimetype.type === "application/json") {
if (isJSONResponse(mimetype)) {
let text = "";
try {
text = await response.text();
@@ -40402,6 +40480,9 @@ async function getResponseData(response) {
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
}
}
function isJSONResponse(mimetype) {
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
}
function toErrorMessage(data) {
if (typeof data === "string") {
return data;
+58 -49
View File
@@ -1,19 +1,19 @@
{
"name": "create-github-app-token",
"version": "1.11.1",
"version": "1.11.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "create-github-app-token",
"version": "1.11.1",
"version": "1.11.2",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.11.1",
"@octokit/auth-app": "^7.1.3",
"@octokit/request": "^9.1.4",
"@octokit/auth-app": "^7.1.4",
"@octokit/request": "^9.2.0",
"p-retry": "^6.2.1",
"undici": "^7.2.0"
"undici": "^7.3.0"
},
"devDependencies": {
"@sinonjs/fake-timers": "^14.0.0",
@@ -645,15 +645,16 @@
}
},
"node_modules/@octokit/auth-app": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.3.tgz",
"integrity": "sha512-GZdkOp2kZTIy5dG9oXqvzUAZiPvDx4C/lMlN6yQjtG9d/+hYa7W8WXTJoOrXE8UdfL9A/sZMl206dmtkl9lwVQ==",
"version": "7.1.4",
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.1.4.tgz",
"integrity": "sha512-5F+3l/maq9JfWQ4bV28jT2G/K8eu9OJ317yzXPTGe4Kw+lKDhFaS4dQ3Ltmb6xImKxfCQdqDqMXODhc9YLipLw==",
"license": "MIT",
"dependencies": {
"@octokit/auth-oauth-app": "^8.1.0",
"@octokit/auth-oauth-user": "^5.1.0",
"@octokit/request": "^9.1.1",
"@octokit/request-error": "^6.1.1",
"@octokit/types": "^13.4.1",
"@octokit/auth-oauth-app": "^8.1.2",
"@octokit/auth-oauth-user": "^5.1.2",
"@octokit/request": "^9.1.4",
"@octokit/request-error": "^6.1.6",
"@octokit/types": "^13.6.2",
"toad-cache": "^3.7.0",
"universal-github-app-jwt": "^2.2.0",
"universal-user-agent": "^7.0.0"
@@ -663,14 +664,15 @@
}
},
"node_modules/@octokit/auth-oauth-app": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.1.tgz",
"integrity": "sha512-5UtmxXAvU2wfcHIPPDWzVSAWXVJzG3NWsxb7zCFplCWEmMCArSZV0UQu5jw5goLQXbFyOr5onzEH37UJB3zQQg==",
"version": "8.1.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.2.tgz",
"integrity": "sha512-3woNZgq5/S6RS+9ZTq+JdymxVr7E0s4EYxF20ugQvgX3pomdPUL5r/XdTY9wALoBM2eHVy4ettr5fKpatyTyHw==",
"license": "MIT",
"dependencies": {
"@octokit/auth-oauth-device": "^7.0.0",
"@octokit/auth-oauth-user": "^5.0.1",
"@octokit/request": "^9.0.0",
"@octokit/types": "^13.0.0",
"@octokit/auth-oauth-device": "^7.1.2",
"@octokit/auth-oauth-user": "^5.1.2",
"@octokit/request": "^9.1.4",
"@octokit/types": "^13.6.2",
"universal-user-agent": "^7.0.0"
},
"engines": {
@@ -678,13 +680,14 @@
}
},
"node_modules/@octokit/auth-oauth-device": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.1.tgz",
"integrity": "sha512-HWl8lYueHonuyjrKKIup/1tiy0xcmQCdq5ikvMO1YwkNNkxb6DXfrPjrMYItNLyCP/o2H87WuijuE+SlBTT8eg==",
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.2.tgz",
"integrity": "sha512-gTOIzDeV36OhVfxCl69FmvJix7tJIiU6dlxuzLVAzle7fYfO8UDyddr9B+o4CFQVaMBLMGZ9ak2CWMYcGeZnPw==",
"license": "MIT",
"dependencies": {
"@octokit/oauth-methods": "^5.0.0",
"@octokit/request": "^9.0.0",
"@octokit/types": "^13.0.0",
"@octokit/oauth-methods": "^5.1.3",
"@octokit/request": "^9.1.4",
"@octokit/types": "^13.6.2",
"universal-user-agent": "^7.0.0"
},
"engines": {
@@ -692,14 +695,15 @@
}
},
"node_modules/@octokit/auth-oauth-user": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.1.tgz",
"integrity": "sha512-rRkMz0ErOppdvEfnemHJXgZ9vTPhBuC6yASeFaB7I2yLMd7QpjfrL1mnvRPlyKo+M6eeLxrKanXJ9Qte29SRsw==",
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.2.tgz",
"integrity": "sha512-PgVDDPJgZYb3qSEXK4moksA23tfn68zwSAsQKZ1uH6IV9IaNEYx35OXXI80STQaLYnmEE86AgU0tC1YkM4WjsA==",
"license": "MIT",
"dependencies": {
"@octokit/auth-oauth-device": "^7.0.1",
"@octokit/oauth-methods": "^5.0.0",
"@octokit/request": "^9.0.1",
"@octokit/types": "^13.0.0",
"@octokit/auth-oauth-device": "^7.1.2",
"@octokit/oauth-methods": "^5.1.2",
"@octokit/request": "^9.1.4",
"@octokit/types": "^13.6.2",
"universal-user-agent": "^7.0.0"
},
"engines": {
@@ -722,19 +726,21 @@
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.1.1.tgz",
"integrity": "sha512-ooXV8GBSabSWyhLUowlMIVd9l1s2nsOGQdlP2SQ4LnkEsGXzeCvbSbCPdZThXhEFzleGPwbapT0Sb+YhXRyjCA==",
"license": "MIT",
"engines": {
"node": ">= 18"
}
},
"node_modules/@octokit/oauth-methods": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.2.tgz",
"integrity": "sha512-C5lglRD+sBlbrhCUTxgJAFjWgJlmTx5bQ7Ch0+2uqRjYv7Cfb5xpX4WuSC9UgQna3sqRGBL9EImX9PvTpMaQ7g==",
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.3.tgz",
"integrity": "sha512-M+bDBi5H8FnH0xhCTg0m9hvcnppdDnxUqbZyOkxlLblKpLAR+eT2nbDPvJDp0eLrvJWA1I8OX0KHf/sBMQARRA==",
"license": "MIT",
"dependencies": {
"@octokit/oauth-authorization-url": "^7.0.0",
"@octokit/request": "^9.1.0",
"@octokit/request-error": "^6.1.0",
"@octokit/types": "^13.0.0"
"@octokit/request": "^9.1.4",
"@octokit/request-error": "^6.1.6",
"@octokit/types": "^13.6.2"
},
"engines": {
"node": ">= 18"
@@ -746,9 +752,10 @@
"integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg=="
},
"node_modules/@octokit/request": {
"version": "9.1.4",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.4.tgz",
"integrity": "sha512-tMbOwGm6wDII6vygP3wUVqFTw3Aoo0FnVQyhihh8vVq12uO3P+vQZeo2CKMpWtPSogpACD0yyZAlVlQnjW71DA==",
"version": "9.2.0",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.2.0.tgz",
"integrity": "sha512-kXLfcxhC4ozCnAXy2ff+cSxpcF0A1UqxjvYMqNuPIeOAzJbVWQ+dy5G2fTylofB/gTbObT8O6JORab+5XtA1Kw==",
"license": "MIT",
"dependencies": {
"@octokit/endpoint": "^10.0.0",
"@octokit/request-error": "^6.0.1",
@@ -761,11 +768,12 @@
}
},
"node_modules/@octokit/request-error": {
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.1.tgz",
"integrity": "sha512-1mw1gqT3fR/WFvnoVpY/zUM2o/XkMs/2AszUUG9I69xn0JFLv6PGkPhNk5lbfvROs79wiS0bqiJNxfCZcRJJdg==",
"version": "6.1.6",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.6.tgz",
"integrity": "sha512-pqnVKYo/at0NuOjinrgcQYpEbv4snvP3bKMRqHaD9kIsk9u1LCpb2smHZi8/qJfgeNqLo5hNW4Z7FezNdEo0xg==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^13.0.0"
"@octokit/types": "^13.6.2"
},
"engines": {
"node": ">= 18"
@@ -3602,9 +3610,10 @@
}
},
"node_modules/undici": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-7.2.0.tgz",
"integrity": "sha512-klt+0S55GBViA9nsq48/NSCo4YX5mjydjypxD7UmHh/brMu8h/Mhd/F7qAeoH2NOO8SDTk6kjnTFc4WpzmfYpQ==",
"version": "7.3.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-7.3.0.tgz",
"integrity": "sha512-Qy96NND4Dou5jKoSJ2gm8ax8AJM/Ey9o9mz7KN1bb9GP+G0l20Zw8afxTnY2f4b7hmhn/z8aC2kfArVQlAhFBw==",
"license": "MIT",
"engines": {
"node": ">=20.18.1"
}
+4 -4
View File
@@ -2,7 +2,7 @@
"name": "create-github-app-token",
"private": true,
"type": "module",
"version": "1.11.2",
"version": "1.11.3",
"description": "GitHub Action for creating a GitHub App Installation Access Token",
"scripts": {
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",
@@ -13,10 +13,10 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^1.11.1",
"@octokit/auth-app": "^7.1.3",
"@octokit/request": "^9.1.4",
"@octokit/auth-app": "^7.1.4",
"@octokit/request": "^9.2.0",
"p-retry": "^6.2.1",
"undici": "^7.2.0"
"undici": "^7.3.0"
},
"devDependencies": {
"@sinonjs/fake-timers": "^14.0.0",