mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-06 03:42:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6d01ca039 | ||
|
|
8867915f0f | ||
|
|
14cda6233a | ||
|
|
b2202a0d76 | ||
|
|
12013e0fba | ||
|
|
74bb419260 | ||
|
|
6e4b56e5e3 | ||
|
|
666a2087e8 | ||
|
|
7d69cd2599 | ||
|
|
53f5229e3e | ||
|
|
371c73e8fc | ||
|
|
8e4d04d6fc | ||
|
|
e72c29f1b0 | ||
|
|
a69c5ecff9 | ||
|
|
295ecdd8cc | ||
|
|
35aeed9f81 | ||
|
|
5174071075 | ||
|
|
6071691ec6 | ||
|
|
a86aa9018d | ||
|
|
2a17e6d503 | ||
|
|
130a18f40d | ||
|
|
dc0acd68cd | ||
|
|
1eac5d2b20 | ||
|
|
1be938d0fa | ||
|
|
f8be0aea65 | ||
|
|
46abe4adb0 | ||
|
|
4d151cebf0 | ||
|
|
199b25c5d7 | ||
|
|
1c96c104d0 | ||
|
|
cdc19d6203 | ||
|
|
ce94f138a7 | ||
|
|
e40f3217cd | ||
|
|
fefc1f9aee | ||
|
|
0f818bf9e2 | ||
|
|
92712ddecd | ||
|
|
3045e86700 | ||
|
|
30fa1dd53a | ||
|
|
66aac79f2b | ||
|
|
3ac895b8a5 | ||
|
|
00a121b1e4 | ||
|
|
15174944fd | ||
|
|
adb2c26afb | ||
|
|
70a9cce55f | ||
|
|
2d2680301d | ||
|
|
d54d7e3da0 | ||
|
|
5654fe89cb | ||
|
|
c42ba4823c | ||
|
|
ecb9d99d24 | ||
|
|
c359fbafc0 | ||
|
|
48ddfc3eee | ||
|
|
bcd64ad53e | ||
|
|
74f0a7c3a7 | ||
|
|
602564070b | ||
|
|
7128f954cf | ||
|
|
7bdc8ca397 | ||
|
|
32c916206b | ||
|
|
ff17108d3a | ||
|
|
746c4244eb | ||
|
|
e942993c7e | ||
|
|
89f3fe2cb0 | ||
|
|
5a2721193b | ||
|
|
4f1c97c250 | ||
|
|
dca1a56a26 | ||
|
|
7b58da1026 | ||
|
|
1e4d583a0d | ||
|
|
29cc943113 | ||
|
|
d5381019ea | ||
|
|
6fd1c263e6 | ||
|
|
5f2f44f83f | ||
|
|
494715d408 | ||
|
|
0af61445cb | ||
|
|
330a803aab | ||
|
|
eb473199db | ||
|
|
6b4dd88bac | ||
|
|
ce2481e6e2 | ||
|
|
647843c466 | ||
|
|
ed21f4018a | ||
|
|
7cfafcc02f | ||
|
|
43181a83ed | ||
|
|
fab02561dc | ||
|
|
4162f2fe0a | ||
|
|
dbc0a99554 | ||
|
|
663ba913f2 | ||
|
|
30b4a4a205 | ||
|
|
fec73bbade | ||
|
|
bca4fc9648 | ||
|
|
7dc10fb8b0 | ||
|
|
ba62b4b2d3 | ||
|
|
3503a0383a | ||
|
|
3ab1f675d0 | ||
|
|
971de3b854 | ||
|
|
dfa00fb573 | ||
|
|
91d69b4470 | ||
|
|
68349b4c03 | ||
|
|
e093ba8341 | ||
|
|
827740e9a7 | ||
|
|
3e2652b61f | ||
|
|
bf505ae10f | ||
|
|
5cb49b7067 | ||
|
|
50daa4a9c7 | ||
|
|
5fa278c6eb | ||
|
|
44877bb877 | ||
|
|
93ed634295 | ||
|
|
abea7e63c2 | ||
|
|
20ea328440 | ||
|
|
4a48e198e6 | ||
|
|
9e4cad21de | ||
|
|
acc72df346 | ||
|
|
4fbff66c1a | ||
|
|
b5498fade9 | ||
|
|
97f060d55f | ||
|
|
8dea9309e6 | ||
|
|
30040d810c | ||
|
|
613bfd1813 | ||
|
|
d99f6e5338 | ||
|
|
79c92b5c76 | ||
|
|
e906fde1a4 | ||
|
|
b947ecd7c0 | ||
|
|
ed592cdd50 | ||
|
|
6cea27487f | ||
|
|
4fd38991af | ||
|
|
3c860c2979 | ||
|
|
4b8aefb79b | ||
|
|
25c33a8302 | ||
|
|
d37d3af1bc | ||
|
|
a840a0d79d | ||
|
|
72e1dd6ba9 | ||
|
|
200044145c | ||
|
|
9fffd5bd72 | ||
|
|
bfe7be5d10 | ||
|
|
e6a7bcc3f9 | ||
|
|
60d94c5c6c | ||
|
|
2b0327297b | ||
|
|
2a5f39177f | ||
|
|
3c5d757c59 | ||
|
|
b724e0d016 | ||
|
|
ab95886ce2 | ||
|
|
8a6d1f2468 | ||
|
|
e6185238c2 | ||
|
|
e374a73c4f | ||
|
|
e6bab23e3a | ||
|
|
ed2d1519c4 | ||
|
|
6330119c18 | ||
|
|
0d5f4ab8c4 | ||
|
|
ad9bd0fc30 | ||
|
|
b186e28898 | ||
|
|
4d8124eee7 | ||
|
|
4b3b604c9c | ||
|
|
9a20b05535 | ||
|
|
007c2b9189 | ||
|
|
1ecb73d24c | ||
|
|
f6aae7dcc6 | ||
|
|
16c9a6156a | ||
|
|
5a12aa43c6 | ||
|
|
9c823d4f8f | ||
|
|
786206d717 | ||
|
|
0a71cd809c | ||
|
|
8321fc4974 | ||
|
|
1725a9b837 | ||
|
|
eeb0e0f520 | ||
|
|
c1c0e2cc33 | ||
|
|
9cde53260a | ||
|
|
f963acc930 | ||
|
|
7ab65632bc | ||
|
|
6eccec32f3 | ||
|
|
2d019106c8 | ||
|
|
6536601b89 | ||
|
|
f7cbc907d5 | ||
|
|
704d70b3ba | ||
|
|
8e810d30e5 | ||
|
|
7b49be6823 | ||
|
|
021fa2add7 | ||
|
|
5b781a415a | ||
|
|
1e94228dc0 | ||
|
|
fd404037ec | ||
|
|
eeca60acbe | ||
|
|
74bb3e0ca9 | ||
|
|
0d945450d8 | ||
|
|
63e8d32d82 | ||
|
|
c5155d686d | ||
|
|
9b215f47a4 | ||
|
|
d4d64e2176 | ||
|
|
2309c61c79 | ||
|
|
e46333c4fa | ||
|
|
0d6adaa438 | ||
|
|
eedc0c9cf6 | ||
|
|
77132164d3 | ||
|
|
3372a91b78 | ||
|
|
71fd7a5a50 | ||
|
|
3b94e1a364 | ||
|
|
aa5e565741 | ||
|
|
d435328984 | ||
|
|
f9a56be98d | ||
|
|
bb7467fb97 | ||
|
|
95b0c25a7e | ||
|
|
1b7cf635db | ||
|
|
56eff23126 | ||
|
|
8e9e596ac1 | ||
|
|
92584a0d78 | ||
|
|
f5758eb9e0 | ||
|
|
d40dd64af8 | ||
|
|
93f9d6e1ec | ||
|
|
e844acdefd | ||
|
|
78401f3266 | ||
|
|
418abb60c2 | ||
|
|
f1f0509a93 | ||
|
|
a16c651378 | ||
|
|
234e676869 | ||
|
|
a78a5b5ed2 | ||
|
|
8a215445da | ||
|
|
a59973b84b | ||
|
|
e3e8d6c65f | ||
|
|
351905220a | ||
|
|
24a3c440e1 | ||
|
|
a184b639c1 | ||
|
|
8d66e39b4f | ||
|
|
a3099f00c3 | ||
|
|
820c80a973 | ||
|
|
c00f9cc19a | ||
|
|
001658bdb8 | ||
|
|
94952b496a | ||
|
|
a7eb336f25 | ||
|
|
e8b915ee3d | ||
|
|
a7182222f1 | ||
|
|
0749dd4aff | ||
|
|
01b667acd6 | ||
|
|
6317cf9db1 | ||
|
|
b8b8006a72 | ||
|
|
14f4fe93ef | ||
|
|
a58e0ea07e | ||
|
|
5c25a55149 | ||
|
|
1c1aaf9986 | ||
|
|
65e8909987 | ||
|
|
3a41b6a7fa | ||
|
|
4973951394 | ||
|
|
806da89331 | ||
|
|
c9d8e2dd44 | ||
|
|
00c6c8ce2b | ||
|
|
04c6455b06 | ||
|
|
6b20a78e02 | ||
|
|
2ad8b163cd | ||
|
|
545db6bec6 | ||
|
|
67445cd241 | ||
|
|
04df3e76dd | ||
|
|
e15efa2d51 | ||
|
|
21eef48c20 | ||
|
|
849cde1491 | ||
|
|
1fca46a6d8 | ||
|
|
219d31e3c0 | ||
|
|
6b40479b8a | ||
|
|
5c668ae153 | ||
|
|
19cb3fde97 | ||
|
|
691b828436 | ||
|
|
30a763b5e5 | ||
|
|
edb9e1c13b | ||
|
|
1d5db1be77 | ||
|
|
919f93f176 | ||
|
|
e6e0f709f8 | ||
|
|
6de5a719e9 | ||
|
|
a602092590 | ||
|
|
5f2ff359ef | ||
|
|
e7056e891e | ||
|
|
4a8356d9d0 | ||
|
|
8da84b8893 |
No files matched your search
@@ -33,12 +33,12 @@ runs:
|
||||
}}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: ⚙️ Setup pnpm
|
||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
with:
|
||||
standalone: true
|
||||
|
||||
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
|
||||
|
||||
@@ -19,10 +19,7 @@
|
||||
},
|
||||
{
|
||||
"description": "Don't require approval for renovate",
|
||||
"matchPackageNames": [
|
||||
"ghcr.io/renovatebot/renovate",
|
||||
"renovatebot/github-action"
|
||||
],
|
||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate", "renovatebot/github-action"],
|
||||
"dependencyDashboardApproval": false
|
||||
},
|
||||
{
|
||||
@@ -42,9 +39,7 @@
|
||||
{
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["README.md"],
|
||||
"matchStrings": [
|
||||
"uses: renovatebot/github-action@(?<currentValue>[^\\s]+)"
|
||||
],
|
||||
"matchStrings": ["uses: renovatebot/github-action@(?<currentValue>[^\\s]+)"],
|
||||
"depNameTemplate": "renovatebot/github-action",
|
||||
"datasourceTemplate": "github-releases"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# This file is machine-generated by `gh actions-lock`.
|
||||
# Do not edit by hand; run `gh actions-lock` to update.
|
||||
# Docs: https://gh.io/actions-lockfile
|
||||
version: 'v0.0.3'
|
||||
workflows:
|
||||
'.github/workflows/build.yml':
|
||||
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
||||
- 'actions/checkout@v7.0.1'
|
||||
- 'actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce'
|
||||
- 'pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115'
|
||||
- 'wagoid/commitlint-github-action@v6.2.1'
|
||||
- 'zizmorcore/zizmor-action@v0.9.2'
|
||||
dependencies:
|
||||
'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
|
||||
ref: 'v6.1.0'
|
||||
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
||||
owner_id: 44036562
|
||||
repo_id: 215566462
|
||||
'actions/checkout@v7.0.1':
|
||||
ref: 'v7.0.1'
|
||||
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
|
||||
owner_id: 44036562
|
||||
repo_id: 197814629
|
||||
'actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce':
|
||||
ref: 'v7.2.0'
|
||||
commit: 'sha1-8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce'
|
||||
owner_id: 44036562
|
||||
repo_id: 189476904
|
||||
'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066':
|
||||
ref: 'v4.39.3'
|
||||
commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066'
|
||||
owner_id: 9919
|
||||
repo_id: 259445878
|
||||
'pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115':
|
||||
ref: 'v6.1.1'
|
||||
commit: 'sha1-73e46992e05b19abd31f2f3c20e0e7370d762115'
|
||||
owner_id: 21320719
|
||||
repo_id: 262289747
|
||||
'wagoid/commitlint-github-action@v6.2.1':
|
||||
ref: 'v6.2.1'
|
||||
commit: 'sha1-b948419dd99f3fd78a6548d48f94e3df7f6bf3ed'
|
||||
owner_id: 7467450
|
||||
repo_id: 212203144
|
||||
'zizmorcore/zizmor-action@v0.9.2':
|
||||
ref: 'v0.9.2'
|
||||
commit: 'sha1-1b4550e929643b8b26a62303c6bd64814271a4f1'
|
||||
owner_id: 210636713
|
||||
repo_id: 985558803
|
||||
uses:
|
||||
- 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066'
|
||||
+25
-19
@@ -10,7 +10,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RENOVATE_VERSION: 44.151.0 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
RENOVATE_VERSION: 45.16.0 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
@@ -18,12 +18,13 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
with:
|
||||
save-cache: true
|
||||
|
||||
@@ -33,14 +34,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
filter: blob:none # we don't need all blobs, only the full tree
|
||||
|
||||
- name: Lint commit messages
|
||||
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
|
||||
uses: wagoid/commitlint-github-action@v6.2.1
|
||||
continue-on-error: true
|
||||
|
||||
lint:
|
||||
@@ -51,12 +53,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
@@ -68,14 +71,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: Run zizmor
|
||||
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
|
||||
uses: zizmorcore/zizmor-action@v0.9.2
|
||||
with:
|
||||
version: 1.30.1
|
||||
version: 1.33.1
|
||||
|
||||
e2e:
|
||||
needs:
|
||||
@@ -91,12 +95,13 @@ jobs:
|
||||
- example/renovate-config.json
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
@@ -113,14 +118,14 @@ jobs:
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
- name: Renovate test
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
|
||||
- name: Renovate test with entrypoint
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
@@ -130,7 +135,7 @@ jobs:
|
||||
docker-user: root
|
||||
|
||||
- name: Renovate test with image and digest
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
@@ -141,13 +146,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:44.151.0@sha256:8a79148ec24cc05809782e20e720dafe9dde0c24a00f26e76d14dec2cbd74a53
|
||||
image: ghcr.io/renovatebot/renovate:45.16.0@sha256:125f2e3b20e406e7c3393b56b48f6883ed3d4dc8a1bec50c43326a21da932769
|
||||
# github hosted runners are running as `1001:127` (ubuntu:docker)
|
||||
options: -u 1001:0 --group-add 1000 --group-add 12021 --group-add 127
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: Validate Renovate configuration
|
||||
@@ -173,7 +179,7 @@ jobs:
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1 # zizmor: ignore[artipacked] pushes the release branch
|
||||
with:
|
||||
fetch-depth: 0 # required for semantic release
|
||||
ref: 'release'
|
||||
@@ -196,7 +202,7 @@ jobs:
|
||||
GH_SHA: ${{ github.sha }}
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Push release branch
|
||||
run: git push origin release:release
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
name: auto-pr
|
||||
|
||||
on:
|
||||
pull_request_target: # zizmor: ignore[dangerous-triggers] -- No checkout, only reviewer assignment
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
review:
|
||||
if: github.event.action == 'opened' && !endsWith(github.event.pull_request.user.login, '[bot]')
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: hkusu/review-assign-action@5bee595fdb9765d4a0bd35724b6302fa15569158 # v1.4.0
|
||||
with:
|
||||
reviewers: ${{ vars.REVIEWERS }}
|
||||
max-num-of-reviewers: 2
|
||||
+2
-5
@@ -1,7 +1,4 @@
|
||||
{
|
||||
"*.{ts,tsx,js,jsx,json}": [
|
||||
"eslint --cache --fix",
|
||||
"prettier --cache --write"
|
||||
],
|
||||
"!*.{ts,tsx,js,jsx,json}": "prettier --cache --ignore-unknown --write"
|
||||
"*.{js,ts,cjs,mjs}": ["oxlint --fix", "oxfmt"],
|
||||
"!*.{js,ts,cjs,mjs}": "oxfmt --no-error-on-unmatched-pattern"
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
24.21.0
|
||||
24.23.0
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||
"singleQuote": true,
|
||||
"sortPackageJson": {},
|
||||
"ignorePatterns": ["LICENSE.md", "pnpm-lock.yaml"]
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": ["eslint", "typescript", "import", "vitest", "promise", "oxc"],
|
||||
"jsPlugins": ["@containerbase/oxlint-plugin"],
|
||||
"options": {
|
||||
"typeAware": true,
|
||||
"reportUnusedDisableDirectives": "error"
|
||||
},
|
||||
"categories": {
|
||||
"correctness": "error"
|
||||
},
|
||||
"env": {
|
||||
"builtin": true,
|
||||
"node": true
|
||||
},
|
||||
"ignorePatterns": ["dist/", "coverage/", ".claude/worktrees/", ".pnpm-store"],
|
||||
"rules": {
|
||||
"containerbase/enforce-ts-extension": "error",
|
||||
"containerbase/no-undeclared-dependencies": "error",
|
||||
"containerbase/organize-imports": "error",
|
||||
"containerbase/test-root-describe": "error",
|
||||
|
||||
"import/no-cycle": "error",
|
||||
"import/no-duplicates": "error",
|
||||
"import/export": "error",
|
||||
|
||||
"curly": ["error", "all"],
|
||||
"no-var": "error",
|
||||
"prefer-const": "error",
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"no-empty": "error",
|
||||
"no-prototype-builtins": "error",
|
||||
"no-useless-escape": "error",
|
||||
"no-fallthrough": "error",
|
||||
"no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
|
||||
"no-unused-expressions": "error",
|
||||
"no-empty-function": "error",
|
||||
"no-array-constructor": "error",
|
||||
|
||||
"sort-imports": [
|
||||
"error",
|
||||
{
|
||||
"ignoreCase": false,
|
||||
"ignoreDeclarationSort": true,
|
||||
"ignoreMemberSort": false,
|
||||
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
|
||||
}
|
||||
],
|
||||
|
||||
"typescript/unbound-method": ["error", { "ignoreStatic": true }],
|
||||
"typescript/restrict-plus-operands": "error",
|
||||
"typescript/restrict-template-expressions": "error",
|
||||
"typescript/no-empty-object-type": "error",
|
||||
"typescript/ban-ts-comment": "error",
|
||||
"typescript/no-explicit-any": "error",
|
||||
"typescript/no-namespace": "error",
|
||||
"typescript/no-non-null-assertion": "error",
|
||||
"typescript/no-require-imports": "error",
|
||||
"typescript/no-unsafe-argument": "error",
|
||||
"typescript/no-unsafe-assignment": "error",
|
||||
"typescript/no-unsafe-call": "error",
|
||||
"typescript/no-unsafe-member-access": "error",
|
||||
"typescript/no-unsafe-return": "error",
|
||||
"typescript/no-unsafe-function-type": "error",
|
||||
"typescript/no-wrapper-object-types": "error",
|
||||
"typescript/only-throw-error": "error",
|
||||
"typescript/prefer-promise-reject-errors": "error",
|
||||
"typescript/require-await": "error",
|
||||
"typescript/triple-slash-reference": "error",
|
||||
"typescript/no-unsafe-enum-comparison": "error",
|
||||
"typescript/no-unnecessary-type-assertion": "error",
|
||||
"typescript/no-redundant-type-constituents": "error",
|
||||
"typescript/no-duplicate-type-constituents": "error",
|
||||
"typescript/no-base-to-string": "error",
|
||||
"typescript/no-misused-promises": "error",
|
||||
"typescript/no-floating-promises": "error",
|
||||
"typescript/await-thenable": "error",
|
||||
"typescript/no-for-in-array": "error",
|
||||
"typescript/no-implied-eval": "error",
|
||||
"typescript/no-array-delete": "error",
|
||||
"typescript/no-this-alias": "error",
|
||||
|
||||
"promise/always-return": "error",
|
||||
"promise/catch-or-return": "error",
|
||||
"promise/no-return-wrap": "error",
|
||||
"promise/param-names": "error",
|
||||
"promise/valid-params": "error",
|
||||
|
||||
"vitest/require-mock-type-parameters": "off",
|
||||
"vitest/require-to-throw-message": "off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["tools/**", "commitlint.config.js"],
|
||||
"rules": {
|
||||
"containerbase/no-undeclared-dependencies": ["error", { "allowDevDependencies": true }],
|
||||
"typescript/no-explicit-any": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
.git/
|
||||
.vscode
|
||||
build/
|
||||
dist/
|
||||
coverage/
|
||||
LICENSE.md
|
||||
modules/
|
||||
node_modules/
|
||||
|
||||
/.pnpm-store
|
||||
/pnpm-lock.yaml
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"plugins": ["prettier-plugin-packagejson"]
|
||||
}
|
||||
@@ -106,7 +106,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
docker-cmd-file: .github/renovate-entrypoint.sh
|
||||
docker-user: root
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
docker-volumes: |
|
||||
@@ -205,7 +205,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -222,7 +222,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
@@ -238,7 +238,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: ghcr.io/renovatebot/renovate@sha256:0f7ba2b70c5d1a7e2d95b0f6c3d5b4a1e2f6b6a1e2f6b6a1e2f6b6a1e2f6b6a1
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -250,7 +250,7 @@ The Renovate version to use.
|
||||
If omitted the action will use the [`default version`](./action.yml#L28) Docker tag.
|
||||
Check [the available tags on Docker Hub](https://hub.docker.com/r/renovate/renovate/tags).
|
||||
|
||||
This sample will use `ghcr.io/renovatebot/renovate:44.151.0` image.
|
||||
This sample will use `ghcr.io/renovatebot/renovate:45.16.0` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
@@ -261,9 +261,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: 44.151.0
|
||||
renovate-version: 45.16.0
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
@@ -278,7 +278,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: full
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -313,7 +313,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -326,7 +326,7 @@ If you want to use the Renovate Action on a GitHub Enterprise instance you have
|
||||
```yml
|
||||
....
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -373,7 +373,7 @@ jobs:
|
||||
uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
@@ -388,7 +388,7 @@ For example:
|
||||
|
||||
```yaml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
env:
|
||||
@@ -414,7 +414,7 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -437,6 +437,12 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||
};
|
||||
```
|
||||
|
||||
### User agent
|
||||
|
||||
By default, the Action sets [`RENOVATE_USER_AGENT`](https://docs.renovatebot.com/self-hosted-configuration/#useragent) to `Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)`, so that operators of registries can identify traffic coming from this Action.
|
||||
|
||||
To override it, set the `RENOVATE_USER_AGENT` environment variable on the Action step.
|
||||
|
||||
### Passing other environment variables
|
||||
|
||||
There are two ways to pass additional variables through to the Renovate container:
|
||||
@@ -455,7 +461,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.1.0
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -478,7 +484,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -549,11 +555,11 @@ jobs:
|
||||
sudo chown -R 12021:0 /tmp/renovate/
|
||||
ls -R $cache_dir
|
||||
|
||||
- uses: renovatebot/github-action@v46.3.7
|
||||
- uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: renovate.json5
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
renovate-version: 44.151.0
|
||||
renovate-version: 45.16.0
|
||||
env:
|
||||
# This enables the cache -- if this is set, it's not necessary to add it to renovate.json.
|
||||
RENOVATE_REPOSITORY_CACHE: ${{ github.event.inputs.repoCache || 'enabled' }}
|
||||
@@ -575,7 +581,7 @@ To enable debug logging, add the environment variable `LOG_LEVEL: 'debug'` to th
|
||||
|
||||
```yml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.7
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ inputs:
|
||||
description: |
|
||||
Renovate version to use.
|
||||
required: false
|
||||
default: '44' # renovate
|
||||
default: '45' # renovate
|
||||
renovate-image:
|
||||
description: |
|
||||
Renovate docker image name.
|
||||
|
||||
Vendored
-56
@@ -1,56 +0,0 @@
|
||||
var yd=Object.create;var ug=Object.defineProperty;var pd=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var md=Object.getPrototypeOf,kd=Object.prototype.hasOwnProperty;var u=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(A,t)=>(typeof require<"u"?require:A)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Rd=(e,A,t)=>()=>{if(t)throw t[0];try{return e&&(A=e(e=0)),A}catch(r){throw t=[r],r}};var d=(e,A)=>()=>{try{return A||e((A={exports:{}}).exports,A),A.exports}catch(t){throw A=0,t}};var Fd=(e,A,t,r)=>{if(A&&typeof A=="object"||typeof A=="function")for(let s of Dd(A))!kd.call(e,s)&&s!==t&&ug(e,s,{get:()=>A[s],enumerable:!(r=pd(A,s))||r.enumerable});return e};var dg=(e,A,t)=>(t=e!=null?yd(md(e)):{},Fd(A||!e||!e.__esModule?ug(t,"default",{value:e,enumerable:!0}):t,e));import{createRequire as Nd}from"node:module";import Sd from"node:path";import bd from"node:url";var E=Rd(()=>{"use strict";globalThis.require=Nd(import.meta.url);globalThis.__filename=bd.fileURLToPath(import.meta.url);globalThis.__dirname=Sd.dirname(__filename)});var mg=d(dt=>{"use strict";E();var HU=u("net"),Td=u("tls"),bi=u("http"),yg=u("https"),xd=u("events"),VU=u("assert"),Yd=u("util");dt.httpOverHttp=Gd;dt.httpsOverHttp=Jd;dt.httpOverHttps=vd;dt.httpsOverHttps=Hd;function Gd(e){var A=new ce(e);return A.request=bi.request,A}function Jd(e){var A=new ce(e);return A.request=bi.request,A.createSocket=pg,A.defaultPort=443,A}function vd(e){var A=new ce(e);return A.request=yg.request,A}function Hd(e){var A=new ce(e);return A.request=yg.request,A.createSocket=pg,A.defaultPort=443,A}function ce(e){var A=this;A.options=e||{},A.proxyOptions=A.options.proxy||{},A.maxSockets=A.options.maxSockets||bi.Agent.defaultMaxSockets,A.requests=[],A.sockets=[],A.on("free",function(r,s,n,i){for(var o=Dg(s,n,i),a=0,c=A.requests.length;a<c;++a){var g=A.requests[a];if(g.host===o.host&&g.port===o.port){A.requests.splice(a,1),g.request.onSocket(r);return}}r.destroy(),A.removeSocket(r)})}Yd.inherits(ce,xd.EventEmitter);ce.prototype.addRequest=function(A,t,r,s){var n=this,i=Ui({request:A},n.options,Dg(t,r,s));if(n.sockets.length>=this.maxSockets){n.requests.push(i);return}n.createSocket(i,function(o){o.on("free",a),o.on("close",c),o.on("agentRemove",c),A.onSocket(o);function a(){n.emit("free",o,i)}function c(g){n.removeSocket(o),o.removeListener("free",a),o.removeListener("close",c),o.removeListener("agentRemove",c)}})};ce.prototype.createSocket=function(A,t){var r=this,s={};r.sockets.push(s);var n=Ui({},r.proxyOptions,{method:"CONNECT",path:A.host+":"+A.port,agent:!1,headers:{host:A.host+":"+A.port}});A.localAddress&&(n.localAddress=A.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),ye("making CONNECT request");var i=r.request(n);i.useChunkedEncodingByDefault=!1,i.once("response",o),i.once("upgrade",a),i.once("connect",c),i.once("error",g),i.end();function o(Q){Q.upgrade=!0}function a(Q,B,C){process.nextTick(function(){c(Q,B,C)})}function c(Q,B,C){if(i.removeAllListeners(),B.removeAllListeners(),Q.statusCode!==200){ye("tunneling socket could not be established, statusCode=%d",Q.statusCode),B.destroy();var I=new Error("tunneling socket could not be established, statusCode="+Q.statusCode);I.code="ECONNRESET",A.request.emit("error",I),r.removeSocket(s);return}if(C.length>0){ye("got illegal response body from proxy"),B.destroy();var I=new Error("got illegal response body from proxy");I.code="ECONNRESET",A.request.emit("error",I),r.removeSocket(s);return}return ye("tunneling connection has established"),r.sockets[r.sockets.indexOf(s)]=B,t(B)}function g(Q){i.removeAllListeners(),ye(`tunneling socket could not be established, cause=%s
|
||||
`,Q.message,Q.stack);var B=new Error("tunneling socket could not be established, cause="+Q.message);B.code="ECONNRESET",A.request.emit("error",B),r.removeSocket(s)}};ce.prototype.removeSocket=function(A){var t=this.sockets.indexOf(A);if(t!==-1){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(s){r.request.onSocket(s)})}};function pg(e,A){var t=this;ce.prototype.createSocket.call(t,e,function(r){var s=e.request.getHeader("host"),n=Ui({},t.options,{socket:r,servername:s?s.replace(/:.*$/,""):e.host}),i=Td.connect(0,n);t.sockets[t.sockets.indexOf(r)]=i,A(i)})}function Dg(e,A,t){return typeof e=="string"?{host:e,port:A,localAddress:t}:e}function Ui(e){for(var A=1,t=arguments.length;A<t;++A){var r=arguments[A];if(typeof r=="object")for(var s=Object.keys(r),n=0,i=s.length;n<i;++n){var o=s[n];r[o]!==void 0&&(e[o]=r[o])}}return e}var ye;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ye=function(){var e=Array.prototype.slice.call(arguments);typeof e[0]=="string"?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:ye=function(){};dt.debug=ye});var Rg=d((OU,kg)=>{"use strict";E();kg.exports=mg()});var X=d((ZU,Fg)=>{"use strict";E();Fg.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var J=d((zU,$g)=>{"use strict";E();var Ng=Symbol.for("undici.error.UND_ERR"),j=class extends Error{constructor(A){super(A),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](A){return A&&A[Ng]===!0}[Ng]=!0},Sg=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Mi=class extends j{constructor(A){super(A),this.name="ConnectTimeoutError",this.message=A||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](A){return A&&A[Sg]===!0}[Sg]=!0},bg=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Li=class extends j{constructor(A){super(A),this.name="HeadersTimeoutError",this.message=A||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](A){return A&&A[bg]===!0}[bg]=!0},Ug=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Ti=class extends j{constructor(A){super(A),this.name="HeadersOverflowError",this.message=A||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](A){return A&&A[Ug]===!0}[Ug]=!0},Mg=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),xi=class extends j{constructor(A){super(A),this.name="BodyTimeoutError",this.message=A||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](A){return A&&A[Mg]===!0}[Mg]=!0},Lg=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),Yi=class extends j{constructor(A,t,r,s){super(A),this.name="ResponseStatusCodeError",this.message=A||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS
Line truncated
|
||||
`)||e.includes("\r")||e.includes("\0"))===!1}function sy(e,A){let{headersList:t}=A,r=(t.get("referrer-policy",!0)??"").split(","),s="";if(r.length>0)for(let n=r.length;n!==0;n--){let i=r[n-1].trim();if(Vw.has(i)){s=i;break}}s!==""&&(e.referrerPolicy=s)}function ny(){return"allowed"}function iy(){return"success"}function oy(){return"success"}function ay(e){let A=null;A=e.mode,e.headersList.set("sec-fetch-mode",A,!0)}function cy(e){let A=e.origin;if(!(A==="client"||A===void 0)){if(e.responseTainting==="cors"||e.mode==="websocket")e.headersList.append("origin",A,!0);else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":A=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":e.origin&&No(e.origin)&&!No(kr(e))&&(A=null);break;case"same-origin":Vs(e,kr(e))||(A=null);break;default:}e.headersList.append("origin",A,!0)}}}function Nt(e,A){return e}function gy(e,A,t){return!e?.startTime||e.startTime<A?{domainLookupStartTime:A,domainLookupEndTime:A,connectionStartTime:A,connectionEndTime:A,secureConnectionStartTime:A,ALPNNegotiatedProtocol:e?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Nt(e.domainLookupStartTime,t),domainLookupEndTime:Nt(e.domainLookupEndTime,t),connectionStartTime:Nt(e.connectionStartTime,t),connectionEndTime:Nt(e.connectionEndTime,t),secureConnectionStartTime:Nt(e.secureConnectionStartTime,t),ALPNNegotiatedProtocol:e.ALPNNegotiatedProtocol}}function Qy(e){return Nt(Zw.now(),e)}function Ey(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function BE(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function By(e){return{referrerPolicy:e.referrerPolicy}}function ly(e){let A=e.referrerPolicy;We(A);let t=null;if(e.referrer==="client"){let o=oE();if(!o||o.origin==="null")return"no-referrer";t=new URL(o)}else e.referrer instanceof URL&&(t=e.referrer);let r=Fo(t),s=Fo(t,!0);r.toString().length>4096&&(r=s);let n=Vs(e,r),i=mr(r)&&!mr(e.url);switch(A){case"origin":return s??Fo(t,!0);case"unsafe-url":return r;case"same-origin":return n?s:"no-referrer";case"origin-when-cross-origin":return n?r:s;case"strict-origin-when-cross-origin":{let o=kr(e);return Vs(r,o)?r:mr(r)&&!mr(o)?"no-referrer":s}default:return i?"no-referrer":s}}function Fo(e,A){return We(e instanceof URL),e=new URL(e),e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"?"no-referrer":(e.username="",e.password="",e.hash="",A&&(e.pathname="",e.search=""),e)}function mr(e){if(!(e instanceof URL))return!1;if(e.href==="about:blank"||e.href==="about:srcdoc"||e.protocol==="data:"||e.protocol==="file:")return!0;return A(e.origin);function A(t){if(t==null||t==="null")return!1;let r=new URL(t);return!!(r.protocol==="https:"||r.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(r.hostname)||r.hostname==="localhost"||r.hostname.includes("localhost.")||r.hostname.endsWith(".localhost"))}}function Iy(e,A){if(Hs===void 0)return!0;let t=lE(A);if(t==="no metadata"||t.length===0)return!0;let r=hy(t),s=uy(t,r);for(let n of s){let i=n.algo,o=n.hash,a=Hs.createHash(i).update(e).digest("base64");if(a[a.length-1]==="="&&(a[a.length-2]==="="?a=a.slice(0,-2):a=a.slice(0,-1)),dy(a,o))return!0}return!1}var Cy=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function lE(e){let A=[],t=!0;for(let r of e.split(" ")){t=!1;let s=Cy.exec(r);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();cE.includes(n)&&A.push(s.groups)}return t===!0?"no metadata":A}function hy(e){let A=e[0].algo;if(A[3]==="5")return A;for(let t=1;t<e.length;++t){let r=e[t];if(r.algo[3]==="5"){A="sha512";break}else{if(A[3]==="3")continue;r.algo[3]==="3"&&(A="sha384")}}return A}function uy(e,A){if(e.length===1)return e;let t=0;for(let r=0;r<e.length;++r)e[r].algo===A&&(e[t++]=e[r]);return e.length=t,e}function dy(e,A){if(e.length!==A.length)return!1;for(let t=0;t<e.length;++t)if(e[t]!==A[t]){if(e[t]==="+"&&A[t]==="-"||e[t]==="/"&&A[t]==="_")continue;return!1}return!0}function fy(e){}function Vs(e,A){return e.origin===A.origin&&e.origin==="null"||e.protocol===A.protocol&&e.hostname===A.hostname&&e.port===A.port}function wy(){let e,A;return{promise:new Promise((r,s)=>{e=r,A=s}),resolve:e,reject:A}}function yy(e){return e.controller.state==="aborted"}function py(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function Dy(e){return Kw[e.toLowerCase()]??e}function my(e){let A=JSON.stringify(e);if(A===void 0)throw new TypeError("Value is not JSON serializable");return We(typeof A=="string"),A}var ky=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function IE(e,A,t=0,r=1){class s{#A;#e;#t;constructor(i,o){this.#A=i,
Line truncated
|
||||
`);function tp(e){for(let A=0;A<e.length;++A)if((e.charCodeAt(A)&-128)!==0)return!1;return!0}function rp(e){let A=e.length;if(A<27||A>70)return!1;for(let t=0;t<A;++t){let r=e.charCodeAt(t);if(!(r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||r===39||r===45||r===95))return!1}return!0}function sp(e,A){Ws(A!=="failure"&&A.essence==="multipart/form-data");let t=A.parameters.get("boundary");if(t===void 0)return"failure";let r=Buffer.from(`--${t}`,"utf8"),s=[],n={position:0};for(;e[n.position]===13&&e[n.position+1]===10;)n.position+=2;let i=e.length;for(;e[i-1]===10&&e[i-2]===13;)i-=2;for(i!==e.length&&(e=e.subarray(0,i));;){if(e.subarray(n.position,n.position+r.length).equals(r))n.position+=r.length;else return"failure";if(n.position===e.length-2&&Os(e,Ap,n)||n.position===e.length-4&&Os(e,ep,n))return s;if(e[n.position]!==13||e[n.position+1]!==10)return"failure";n.position+=2;let o=np(e,n);if(o==="failure")return"failure";let{name:a,filename:c,contentType:g,encoding:Q}=o;n.position+=2;let B;{let I=e.indexOf(r.subarray(2),n.position);if(I===-1)return"failure";B=e.subarray(n.position,I-4),n.position+=B.length,Q==="base64"&&(B=Buffer.from(B.toString(),"base64"))}if(e[n.position]!==13||e[n.position+1]!==10)return"failure";n.position+=2;let C;c!==null?(g??="text/plain",tp(g)||(g=""),C=new jy([B],c,{type:g})):C=Zy(Buffer.from(B)),Ws(RE(a)),Ws(typeof C=="string"&&RE(C)||zy(C)),s.push(Ky(a,C,c))}}function np(e,A){let t=null,r=null,s=null,n=null;for(;;){if(e[A.position]===13&&e[A.position+1]===10)return t===null?"failure":{name:t,filename:r,contentType:s,encoding:n};let i=bt(o=>o!==10&&o!==13&&o!==58,e,A);if(i=xo(i,!0,!0,o=>o===9||o===32),!_y.test(i.toString())||e[A.position]!==58)return"failure";switch(A.position++,bt(o=>o===32||o===9,e,A),Py(i)){case"content-disposition":{if(t=r=null,!Os(e,$y,A)||(A.position+=17,t=SE(e,A),t===null))return"failure";if(Os(e,NE,A)){let o=A.position+NE.length;if(e[o]===42&&(A.position+=1,o+=1),e[o]!==61||e[o+1]!==34||(A.position+=12,r=SE(e,A),r===null))return"failure"}break}case"content-type":{let o=bt(a=>a!==10&&a!==13,e,A);o=xo(o,!1,!0,a=>a===9||a===32),s=FE(o);break}case"content-transfer-encoding":{let o=bt(a=>a!==10&&a!==13,e,A);o=xo(o,!1,!0,a=>a===9||a===32),n=FE(o);break}default:bt(o=>o!==10&&o!==13,e,A)}if(e[A.position]!==13&&e[A.position+1]!==10)return"failure";A.position+=2}}function SE(e,A){Ws(e[A.position-1]===34);let t=bt(r=>r!==10&&r!==13&&r!==34,e,A);return e[A.position]!==34?null:(A.position++,t=new TextDecoder().decode(t).replace(/%0A/ig,`
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),t)}function bt(e,A,t){let r=t.position;for(;r<A.length&&e(A[r]);)++r;return A.subarray(t.position,t.position=r)}function xo(e,A,t,r){let s=0,n=e.length-1;if(A)for(;s<e.length&&r(e[s]);)s++;if(t)for(;n>0&&r(e[n]);)n--;return s===0&&n===e.length-1?e:e.subarray(s,n+1)}function Os(e,A,t){if(e.length<A.length)return!1;for(let r=0;r<A.length;r++)if(A[r]!==e[t.position+r])return!1;return!0}bE.exports={multipartFormDataParser:sp,validateBoundary:rp}});var Lt=d((qM,VE)=>{"use strict";E();var Nr=T(),{ReadableStreamFrom:ip,isBlobLike:ME,isReadableStreamLike:op,readableStreamClose:ap,createDeferredPromise:cp,fullyReadBody:gp,extractMimeType:Qp,utf8DecodeBytes:xE}=DA(),{FormData:LE}=Fr(),{kState:Mt}=pe(),{webidl:Ep}=gA(),{Blob:Bp}=u("node:buffer"),Yo=u("node:assert"),{isErrored:YE,isDisturbed:lp}=u("node:stream"),{isArrayBuffer:Ip}=u("node:util/types"),{serializeAMimeType:Cp}=hA(),{multipartFormDataParser:hp}=UE(),Go;try{let e=u("node:crypto");Go=A=>e.randomInt(0,A)}catch{Go=e=>Math.floor(Math.random(e))}var Ps=new TextEncoder;function up(){}var GE=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,JE;GE&&(JE=new FinalizationRegistry(e=>{let A=e.deref();A&&!A.locked&&!lp(A)&&!YE(A)&&A.cancel("Response object has been garbage collected").catch(up)}));function vE(e,A=!1){let t=null;e instanceof ReadableStream?t=e:ME(e)?t=e.stream():t=new ReadableStream({async pull(a){let c=typeof s=="string"?Ps.encode(s):s;c.byteLength&&a.enqueue(c),queueMicrotask(()=>ap(a))},start(){},type:"bytes"}),Yo(op(t));let r=null,s=null,n=null,i=null;if(typeof e=="string")s=e,i="text/plain;charset=UTF-8";else if(e instanceof URLSearchParams)s=e.toString(),i="application/x-www-form-urlencoded;charset=UTF-8";else if(Ip(e))s=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))s=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(Nr.isFormDataLike(e)){let a=`----formdata-undici-0${`${Go(1e11)}`.padStart(11,"0")}`,c=`--${a}\r
|
||||
Content-Disposition: form-data`;let g=w=>w.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),Q=w=>w.replace(/\r?\n|\r/g,`\r
|
||||
`),B=[],C=new Uint8Array([13,10]);n=0;let I=!1;for(let[w,l]of e)if(typeof l=="string"){let p=Ps.encode(c+`; name="${g(Q(w))}"\r
|
||||
\r
|
||||
${Q(l)}\r
|
||||
`);B.push(p),n+=p.byteLength}else{let p=Ps.encode(`${c}; name="${g(Q(w))}"`+(l.name?`; filename="${g(l.name)}"`:"")+`\r
|
||||
Content-Type: ${l.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);B.push(p,l,C),typeof l.size=="number"?n+=p.byteLength+l.size+C.byteLength:I=!0}let h=Ps.encode(`--${a}--\r
|
||||
`);B.push(h),n+=h.byteLength,I&&(n=null),s=e,r=async function*(){for(let w of B)w.stream?yield*w.stream():yield w},i=`multipart/form-data; boundary=${a}`}else if(ME(e))s=e,n=e.size,e.type&&(i=e.type);else if(typeof e[Symbol.asyncIterator]=="function"){if(A)throw new TypeError("keepalive");if(Nr.isDisturbed(e)||e.locked)throw new TypeError("Response body object should not be disturbed or locked");t=e instanceof ReadableStream?e:ip(e)}if((typeof s=="string"||Nr.isBuffer(s))&&(n=Buffer.byteLength(s)),r!=null){let a;t=new ReadableStream({async start(){a=r(e)[Symbol.asyncIterator]()},async pull(c){let{value:g,done:Q}=await a.next();if(Q)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!YE(t)){let B=new Uint8Array(g);B.byteLength&&c.enqueue(B)}return c.desiredSize>0},async cancel(c){await a.return()},type:"bytes"})}return[{stream:t,source:s,length:n},i]}function dp(e,A=!1){return e instanceof ReadableStream&&(Yo(!Nr.isDisturbed(e),"The body has already been consumed."),Yo(!e.locked,"The stream is locked.")),vE(e,A)}function fp(e,A){let[t,r]=A.stream.tee();return A.stream=t,{stream:r,length:A.length,source:A.source}}function wp(e){if(e.aborted)throw new DOMException("The operation was aborted.","AbortError")}function yp(e){return{blob(){return Ut(this,t=>{let r=TE(this);return r===null?r="":r&&(r=Cp(r)),new Bp([t],{type:r})},e)},arrayBuffer(){return Ut(this,t=>new Uint8Array(t).buffer,e)},text(){return Ut(this,xE,e)},json(){return Ut(this,Dp,e)},formData(){return Ut(this,t=>{let r=TE(this);if(r!==null)switch(r.essence){case"multipart/form-data":{let s=hp(t,r);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new LE;return n[Mt]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(t.toString()),n=new LE;for(let[i,o]of s)n.append(i,o);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},e)},bytes(){return Ut(this,t=>new Uint8Array(t),e)}}}function pp(e){Object.assign(e.prototype,yp(e))}async function Ut(e,A,t){if(Ep.brandCheck(e,t),HE(e))throw new TypeError("Body is unusable: Body has already been read");wp(e[Mt]);let r=cp(),s=i=>r.reject(i),n=i=>{try{r.resolve(A(i))}catch(o){s(o)}};return e[Mt].body==null?(n(Buffer.allocUnsafe(0)),r.promise):(await gp(e[Mt].body,n,s),r.promise)}function HE(e){let A=e[Mt].body;return A!=null&&(A.stream.locked||Nr.isDisturbed(A.stream))}function Dp(e){return JSON.parse(xE(e))}function TE(e){let A=e[Mt].headersList,t=Qp(A);return t==="failure"?null:t}VE.exports={extractBody:vE,safelyExtractBody:dp,cloneBody:fp,mixinBody:pp,streamRegistry:JE,hasFinalizationRegistry:GE,bodyUnusable:HE}});var sB=d((OM,rB)=>{"use strict";E();var N=u("node:assert"),k=T(),{channels:qE}=wt(),Jo=fo(),{RequestContentLengthMismatchError:Oe,ResponseContentLengthMismatchError:WE,RequestAbortedError:jE,InvalidArgumentError:mp,HeadersTimeoutError:kp,HeadersOverflowError:Rp,SocketError:Tt,InformationalError:Pe,BodyTimeoutError:Fp,HTTPParserError:Np,ResponseExceededMaxSizeError:Sp}=J(),{kUrl:$E,kReset:uA,kClient:Ks,kParser:z,kBlocking:Ur,kRunning:rA,kPending:AB,kSize:OE,kWriting:De,kQueue:HA,kNoRef:Sr,kKeepAliveDefaultTimeout:bp,kHostHeader:Up,kPendingIdx:Mp,kRunningIdx:TA,kError:lA,kPipelining:Xs,kSocket:Ze,kKeepAliveTimeoutValue:$s,kMaxHeadersSize:vo,kKeepAliveMaxTimeout:Lp,kKeepAliveTimeoutThreshold:Tp,kHeadersTimeout:xp,kBodyTimeout:Yp,kStrictContentLength:qo,kMaxRequests:PE,kCounter:Gp,kMaxResponseSize:Jp,kOnError:ZE,kResume:le,kHTTPContext:eB}=X(),mA=JQ(),_E=Buffer.alloc(0),Zs=Buffer[Symbol.species],_s=k.addListener,vp=k.removeAllListeners,_e=Symbol("kIdleSocketValidation"),xt=Symbol("kIdleSocketValidationTimeout"),Zo=Symbol("kSocketUsed"),Ho;async function Hp(){let e=process.env.JEST_WORKER_ID?po():void 0,A;try{A=await WebAssembly.compile(VQ())}catch{A=await WebAssembly.compile(e||po())}return await WebAssembly.instantiate(A,{env:{wasm_on_url:(t,r,s)=>0,wasm_on_status:(t,r,s)=>{N(AA.ptr===t);let n=r-$A+jA.byteOffset;return AA.onStatus(new Zs(jA.buffer,n,s))||0},wasm_on_message_begin:t=>(N(AA.ptr===t),AA.onMessageBegin()||0),wasm_on_header_field:(t,r,s)=>{N(AA.ptr===t);let n=r-$A+jA.byteOffset;return AA.onHeaderField(new Zs(jA.buffer,n,s))||0},wasm_on_header_value:(t,r,s)=>{N(AA.ptr===t);let n=r-$A+jA.byteOffset;return AA.onHeaderValue(new Zs(jA.buffer,n,s))||0},wasm_on_headers_complete:(t,r,s,n)=>(N(AA.ptr===t),AA.onHeadersComplete(r,!!s,!!n)||0),wasm_on_body:(t,r,s)=>{N(AA.ptr===t);let n=r-$A+jA.byteOffset;return AA.onBody(new Zs(jA.buffer,n,s))||0},wasm_on_message_complete:t=>(N(AA.ptr===t),AA.onMessageComplete()||0)}})}var Vo=null,Wo=Hp();Wo.catch();var AA=null,jA=null,zs=0,$A=null,Vp=0,br=1,Yt=2|br,js=4|br,Oo=8|Vp,Po=class{constructor(A,t,{exports:r}){N(Number.isFinite(A[vo])&&A[vo]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(mA.TYPE.RESPONSE),this.client=A,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.status
Line truncated
|
||||
`;if(typeof s=="string"?h+=`host: ${s}\r
|
||||
`:h+=e[Up],n?h+=`connection: upgrade\r
|
||||
upgrade: ${n}\r
|
||||
`:e[Xs]&&!C[uA]?h+=`connection: keep-alive\r
|
||||
`:h+=`connection: close\r
|
||||
`,Array.isArray(c))for(let w=0;w<c.length;w+=2){let l=c[w+0],p=c[w+1];if(Array.isArray(p))for(let F=0;F<p.length;F++)h+=`${l}: ${p[F]}\r
|
||||
`;else h+=`${l}: ${p}\r
|
||||
`}return qE.sendHeaders.hasSubscribers&&qE.sendHeaders.publish({request:A,headers:h,socket:C}),!a||B===0?KE(I,null,e,A,C,g,h,Q):k.isBuffer(a)?KE(I,a,e,A,C,g,h,Q):k.isBlobLike(a)?typeof a.stream=="function"?XE(I,a.stream(),e,A,C,g,h,Q):zp(I,a,e,A,C,g,h,Q):k.isStream(a)?_p(I,a,e,A,C,g,h,Q):k.isIterable(a)?XE(I,a,e,A,C,g,h,Q):N(!1),!0}function _p(e,A,t,r,s,n,i,o){N(n!==0||t[rA]===0,"stream body cannot be pipelined");let a=!1,c=new An({abort:e,socket:s,request:r,contentLength:n,client:t,expectsPayload:o,header:i}),g=function(I){if(!a)try{!c.write(I)&&this.pause&&this.pause()}catch(h){k.destroy(this,h)}},Q=function(){a||A.resume&&A.resume()},B=function(){if(queueMicrotask(()=>{A.removeListener("error",C)}),!a){let I=new jE;queueMicrotask(()=>C(I))}},C=function(I){if(!a){if(a=!0,N(s.destroyed||s[De]&&t[rA]<=1),s.off("drain",Q).off("error",C),A.removeListener("data",g).removeListener("end",C).removeListener("close",B),!I)try{c.end()}catch(h){I=h}c.destroy(I),I&&(I.code!=="UND_ERR_INFO"||I.message!=="reset")?k.destroy(A,I):k.destroy(A)}};A.on("data",g).on("end",C).on("error",C).on("close",B),A.resume&&A.resume(),s.on("drain",Q).on("error",C),A.errorEmitted??A.errored?setImmediate(()=>C(A.errored)):(A.endEmitted??A.readableEnded)&&setImmediate(()=>C(null)),(A.closeEmitted??A.closed)&&setImmediate(B)}function KE(e,A,t,r,s,n,i,o){try{A?k.isBuffer(A)&&(N(n===A.byteLength,"buffer body must have content length"),s.cork(),s.write(`${i}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),s.write(A),s.uncork(),r.onBodySent(A),!o&&r.reset!==!1&&(s[uA]=!0)):n===0?s.write(`${i}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(N(n===null,"no body must not have content length"),s.write(`${i}\r
|
||||
`,"latin1")),r.onRequestSent(),t[le]()}catch(a){e(a)}}async function zp(e,A,t,r,s,n,i,o){N(n===A.size,"blob body must have content length");try{if(n!=null&&n!==A.size)throw new Oe;let a=Buffer.from(await A.arrayBuffer());s.cork(),s.write(`${i}content-length: ${n}\r
|
||||
\r
|
||||
`,"latin1"),s.write(a),s.uncork(),r.onBodySent(a),r.onRequestSent(),!o&&r.reset!==!1&&(s[uA]=!0),t[le]()}catch(a){e(a)}}async function XE(e,A,t,r,s,n,i,o){N(n!==0||t[rA]===0,"iterator body cannot be pipelined");let a=null;function c(){if(a){let B=a;a=null,B()}}let g=()=>new Promise((B,C)=>{N(a===null),s[lA]?C(s[lA]):a=B});s.on("close",c).on("drain",c);let Q=new An({abort:e,socket:s,request:r,contentLength:n,client:t,expectsPayload:o,header:i});try{for await(let B of A){if(s[lA])throw s[lA];Q.write(B)||await g()}Q.end()}catch(B){Q.destroy(B)}finally{s.off("close",c).off("drain",c)}}var An=class{constructor({abort:A,socket:t,request:r,contentLength:s,client:n,expectsPayload:i,header:o}){this.socket=t,this.request=r,this.contentLength=s,this.client=n,this.bytesWritten=0,this.expectsPayload=i,this.header=o,this.abort=A,t[De]=!0}write(A){let{socket:t,request:r,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(t[lA])throw t[lA];if(t.destroyed)return!1;let c=Buffer.byteLength(A);if(!c)return!0;if(s!==null&&i+c>s){if(n[qo])throw new Oe;process.emitWarning(new Oe)}t.cork(),i===0&&(!o&&r.reset!==!1&&(t[uA]=!0),s===null?t.write(`${a}transfer-encoding: chunked\r
|
||||
`,"latin1"):t.write(`${a}content-length: ${s}\r
|
||||
\r
|
||||
`,"latin1")),s===null&&t.write(`\r
|
||||
${c.toString(16)}\r
|
||||
`,"latin1"),this.bytesWritten+=c;let g=t.write(A);return t.uncork(),r.onBodySent(A),g||t[z].timeout&&t[z].timeoutType===Yt&&t[z].timeout.refresh&&t[z].timeout.refresh(),g}end(){let{socket:A,contentLength:t,client:r,bytesWritten:s,expectsPayload:n,header:i,request:o}=this;if(o.onRequestSent(),A[De]=!1,A[lA])throw A[lA];if(!A.destroyed){if(s===0?n?A.write(`${i}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):A.write(`${i}\r
|
||||
`,"latin1"):t===null&&A.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),t!==null&&s!==t){if(r[qo])throw new Oe;process.emitWarning(new Oe)}A[z].timeout&&A[z].timeoutType===Yt&&A[z].timeout.refresh&&A[z].timeout.refresh(),r[le]()}}destroy(A){let{socket:t,client:r,abort:s}=this;t[De]=!1,A&&(N(r[rA]<=1,"pipeline should only contain this request"),s(A))}};rB.exports=qp});var EB=d((ZM,QB)=>{"use strict";E();var xA=u("node:assert"),{errorMonitor:_o}=u("node:events"),{pipeline:Kp}=u("node:stream"),x=T(),{RequestContentLengthMismatchError:Ko,RequestAbortedError:zo,SocketError:Mr,InformationalError:en}=J(),{kUrl:tn,kReset:sn,kClient:Gt,kRunning:nn,kPending:Xp,kQueue:ze,kPendingIdx:jo,kRunningIdx:Ae,kError:qA,kSocket:oA,kStrictContentLength:jp,kOnError:$o,kMaxConcurrentStreams:cB,kHTTP2Session:VA,kResume:ke,kSize:$p,kHTTPContext:AD}=X(),me=Symbol("open streams"),nB,iB=!1,rn;try{rn=u("node:http2")}catch{rn={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:eD,HTTP2_HEADER_METHOD:tD,HTTP2_HEADER_PATH:rD,HTTP2_HEADER_SCHEME:sD,HTTP2_HEADER_CONTENT_LENGTH:nD,HTTP2_HEADER_EXPECT:iD,HTTP2_HEADER_STATUS:Xo}}=rn;function gB(e){let A=[];for(let[t,r]of Object.entries(e))if(Array.isArray(r))for(let s of r)A.push(Buffer.from(t),Buffer.from(s));else A.push(Buffer.from(t),Buffer.from(r));return A}function oD(e){let{[Xo]:A,...t}=e;return gB(t)}async function aD(e,A){e[oA]=A,iB||(iB=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let t=rn.connect(e[tn],{createConnection:()=>A,peerMaxConcurrentStreams:e[cB]});t[me]=0,t[Gt]=e,t[oA]=A,x.addListener(t,"error",gD),x.addListener(t,"frameError",QD),x.addListener(t,"end",ED),x.addListener(t,"goaway",BD),x.addListener(t,"close",function(){let{[Gt]:s}=this,{[oA]:n}=s,i=this[oA][qA]||this[qA]||new Mr("closed",x.getSocketInfo(n));if(s[VA]=null,s.destroyed){xA(s[Xp]===0);let o=s[ze].splice(s[Ae]);for(let a=0;a<o.length;a++){let c=o[a];x.errorRequest(s,c,i)}}}),t.unref(),e[VA]=t,A[VA]=t,x.addListener(A,"error",function(s){xA(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[qA]=s,this[Gt][$o](s)}),x.addListener(A,"end",function(){x.destroy(this,new Mr("other side closed",x.getSocketInfo(this)))}),x.addListener(A,"close",function(){let s=this[qA]||new Mr("closed",x.getSocketInfo(this));e[oA]=null,this[VA]!=null&&this[VA].destroy(s),e[jo]=e[Ae],xA(e[nn]===0),e.emit("disconnect",e[tn],[e],s),e[ke]()});let r=!1;return A.on("close",()=>{r=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return ID(e,...s)},resume(){cD(e)},destroy(s,n){r?queueMicrotask(n):A.destroy(s).on("close",n)},get destroyed(){return A.destroyed},busy(){return!1}}}function cD(e){let A=e[oA];A?.destroyed===!1&&(e[$p]===0&&e[cB]===0?(A.unref(),e[VA].unref()):(A.ref(),e[VA].ref()))}function gD(e){xA(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oA][qA]=e,this[Gt][$o](e)}function QD(e,A,t){if(t===0){let r=new en(`HTTP/2: "frameError" received - type ${e}, code ${A}`);this[oA][qA]=r,this[Gt][$o](r)}}function ED(){let e=new Mr("other side closed",x.getSocketInfo(this[oA]));this.destroy(e),x.destroy(this[oA],e)}function BD(e){let A=this[qA]||new Mr(`HTTP/2: "GOAWAY" frame received with code ${e}`,x.getSocketInfo(this)),t=this[Gt];if(t[oA]=null,t[AD]=null,this[VA]!=null&&(this[VA].destroy(A),this[VA]=null),x.destroy(this[oA],A),t[Ae]<t[ze].length){let r=t[ze][t[Ae]];t[ze][t[Ae]++]=null,x.errorRequest(t,r,A),t[jo]=t[Ae]}xA(t[nn]===0),t.emit("disconnect",t[tn],[t],A),t[ke]()}function lD(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function ID(e,A){let t=e[VA],{method:r,path:s,host:n,upgrade:i,expectContinue:o,signal:a,headers:c}=A,{body:g}=A;if(i)return x.errorRequest(e,A,new Error("Upgrade not supported for H2")),!1;let Q={};for(let D=0;D<c.length;D+=2){let v=c[D+0],Z=c[D+1];if(Array.isArray(Z))for(let _=0;_<Z.length;_++)Q[v]?Q[v]+=`,${Z[_]}`:Q[v]=Z[_];else Q[v]=Z}let B,{hostname:C,port:I}=e[tn];Q[eD]=n||`${C}${I?`:${I}`:""}`,Q[tD]=r;let h=D=>{if(!A.aborted){if(A.completed){r==="CONNECT"&&B!=null&&x.destroy(B,D||new zo);return}D=D||new zo,x.errorRequest(e,A,D),B!=null&&x.destroy(B,D),x.destroy(g,D),e[ze][e[Ae]++]=null,e[ke]()}};try{A.onConnect(h)}catch(D){x.errorRequest(e,A,D)}if(A.aborted)return!1;if(r==="CONNECT"){t.ref(),B=t.request(Q,{endStream:!1,signal:a});let D=!1,v=aA=>{D=!0,B.off(_o,Z),A.onUpgradeResponse(Number(aA[Xo]),aA,oD)},Z=aA=>{D=!0,B.off("response",v),A.onUpgradeError(aA)},_=()=>{try{A.onUpgrade(null,null,B)}catch(aA){B.off("response",v),h(aA);return}A.aborted||(B.off("error",h),B.once(_o,Z),e[ze][e[Ae]++]=null)};return B.once("response",v),B.once("error",h),++t[me],_(),B.once("close",()=>{!D&&A.completed&&(B.off("response",v),B.off(_o,Z),A.onUpgradeError(new en(`HTTP/2: "stream error" received - code ${B.rstCode}`))),t[me]-=1,t[me]===0&&t.unref()}),!0}Q[rD]=s,Q[sD]="https";let w=r==="PUT"||r==="POST"||r==="PATCH";g&&typeof g.read=="function"&&g.read(0);let l=x.bodyLength(g);if(x.isFormDataLike(g)){nB??=Lt().extractBody;let[D,v]=nB(g);Q["content-type"]=v,g=D.stream,l=D.length}if(l==null&&(l
Line truncated
|
||||
`,this[HD]=a??3e5,this[vD]=s??3e5,this[VD]=p??!0,this[qD]=D,this[ra]=Z,this[Fe]=null,this[_D]=aA>-1?aA:-1,this[KD]=we??100,this[tA]=null,this[WA]=[],this[Ce]=0,this[OA]=0,this[Yr]=ut=>na(this,ut),this[zD]=ut=>DB(this,ut)}get pipelining(){return this[gn]}set pipelining(A){this[gn]=A,this[Yr](!0)}get[vr](){return this[WA].length-this[OA]}get[Jr](){return this[OA]-this[Ce]}get[Gr](){return this[WA].length-this[Ce]}get[MD](){return!!this[tA]&&!this[vt]&&!this[tA].destroyed}get[ta](){return!!(this[tA]?.busy(null)||this[Gr]>=(pB(this)||1)||this[vr]>0)}[UD](A){mB(this),this.once("connect",A)}[ZD](A,t){let r=A.origin||this[te].origin,s=new kD(r,A,t);return this[WA].push(s),this[Xe]||(Ke.bodyLength(s.body)==null&&Ke.isIterable(s.body)?(this[Xe]=1,queueMicrotask(()=>na(this))):this[Yr](!0)),this[Xe]&&this[Ne]!==2&&this[ta]&&(this[Ne]=2),this[Ne]<2}async[OD](){return new Promise(A=>{this[Gr]?this[Fe]=A:A(null)})}async[PD](A){return new Promise(t=>{let r=this[WA].splice(this[OA]);for(let n=0;n<r.length;n++){let i=r[n];Ke.errorRequest(this,i,A)}let s=()=>{this[Fe]&&(this[Fe](),this[Fe]=null),t(null)};this[tA]?(this[tA].destroy(A,s),this[tA]=null):queueMicrotask(s),this[Yr]()})}},$D=cn();function DB(e,A){if(e[Jr]===0&&A.code!=="UND_ERR_INFO"&&A.code!=="UND_ERR_SOCKET"){Ie(e[OA]===e[Ce]);let t=e[WA].splice(e[Ce]);for(let r=0;r<t.length;r++){let s=t[r];Ke.errorRequest(e,s,A)}Ie(e[Gr]===0)}}async function mB(e){Ie(!e[vt]),Ie(!e[tA]);let{host:A,hostname:t,protocol:r,port:s}=e[te];if(t[0]==="["){let n=t.indexOf("]");Ie(n!==-1);let i=t.substring(1,n);Ie(yB.isIP(i)),t=i}e[vt]=!0,Jt.beforeConnect.hasSubscribers&&Jt.beforeConnect.publish({connectParams:{host:A,hostname:t,protocol:r,port:s,version:e[tA]?.version,servername:e[Re],localAddress:e[xr]},connector:e[Tr]});try{let n=await new Promise((i,o)=>{e[Tr]({host:A,hostname:t,protocol:r,port:s,servername:e[Re],localAddress:e[xr]},(a,c)=>{a?o(a):i(c)})});if(e.destroyed){Ke.destroy(n.on("error",fB),new ND);return}Ie(n);try{e[tA]=n.alpnProtocol==="h2"?await jD(e,n):await XD(e,n)}catch(i){throw n.destroy().on("error",fB),i}e[vt]=!1,n[WD]=0,n[ra]=e[ra],n[bD]=e,n[TD]=null,Jt.connected.hasSubscribers&&Jt.connected.publish({connectParams:{host:A,hostname:t,protocol:r,port:s,version:e[tA]?.version,servername:e[Re],localAddress:e[xr]},connector:e[Tr],socket:n}),e.emit("connect",e[te],[e])}catch(n){if(e.destroyed)return;if(e[vt]=!1,Jt.connectError.hasSubscribers&&Jt.connectError.publish({connectParams:{host:A,hostname:t,protocol:r,port:s,version:e[tA]?.version,servername:e[Re],localAddress:e[xr]},connector:e[Tr],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ie(e[Jr]===0);e[vr]>0&&e[WA][e[OA]].servername===e[Re];){let i=e[WA][e[OA]++];Ke.errorRequest(e,i,n)}else DB(e,n);e.emit("connectionError",e[te],[e],n)}e[Yr]()}function wB(e){e[Ne]=0,e.emit("drain",e[te],[e])}function na(e,A){e[Xe]!==2&&(e[Xe]=2,A0(e,A),e[Xe]=0,e[Ce]>256&&(e[WA].splice(0,e[Ce]),e[OA]-=e[Ce],e[Ce]=0))}function A0(e,A){for(;;){if(e.destroyed){Ie(e[vr]===0);return}if(e[Fe]&&!e[Gr]){e[Fe](),e[Fe]=null;return}if(e[tA]&&e[tA].resume(),e[ta])e[Ne]=2;else if(e[Ne]===2){A?(e[Ne]=1,queueMicrotask(()=>wB(e))):wB(e);continue}if(e[vr]===0||e[Jr]>=(pB(e)||1))return;let t=e[WA][e[OA]];if(e[te].protocol==="https:"&&e[Re]!==t.servername){if(e[Jr]>0)return;e[Re]=t.servername,e[tA]?.destroy(new FD("servername changed"),()=>{e[tA]=null,na(e)})}if(e[vt])return;if(!e[tA]){mB(e);return}if(e[tA].destroyed||e[tA].busy(t))return;!t.aborted&&e[tA].write(t)?e[OA]++:e[WA].splice(e[OA],1)}}kB.exports=sa});var ia=d((tL,RB)=>{"use strict";E();var Qn=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(A){this.list[this.top]=A,this.top=this.top+1&2047}shift(){let A=this.list[this.bottom];return A===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,A)}};RB.exports=class{constructor(){this.head=this.tail=new Qn}isEmpty(){return this.head.isEmpty()}push(A){this.head.isFull()&&(this.head=this.head.next=new Qn),this.head.push(A)}shift(){let A=this.tail,t=A.shift();return A.isEmpty()&&A.next!==null&&(this.tail=A.next),t}}});var NB=d((sL,FB)=>{"use strict";E();var{kFree:e0,kConnected:t0,kPending:r0,kQueued:s0,kRunning:n0,kSize:i0}=X(),je=Symbol("pool"),oa=class{constructor(A){this[je]=A}get connected(){return this[je][t0]}get free(){return this[je][e0]}get pending(){return this[je][r0]}get queued(){return this[je][s0]}get running(){return this[je][n0]}get size(){return this[je][i0]}};FB.exports=oa});var Ba=d((iL,JB)=>{"use strict";E();var o0=mt(),a0=ia(),{kConnected:aa,kSize:SB,kRunning:bB,kPending:UB,kQueued:Hr,kBusy:c0,kFree:g0,kUrl:Q0,kClose:E0,kDestroy:B0,kDispatch:l0}=X(),I0=NB(),dA=Symbol("clients"),IA=Symbol("needDrain"),Vr=Symbol("queue"),ca=Symbol("closed resolve"),ga=Symbol("onDrain"),MB=Symbol("onConnect"),LB=Symbol("onDisconnect"),TB=Symbol("onConnectionError"),Qa=Symbol("get dispatcher"),YB=Sy
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${A.format(t)}
|
||||
`.trim())}};PI.exports=Bc});var Nn=d((iT,XI)=>{"use strict";E();var _I=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Hk}=J(),Vk=qt();KI()===void 0&&zI(new Vk);function zI(e){if(!e||typeof e.dispatch!="function")throw new Hk("Argument agent must implement Agent");Object.defineProperty(globalThis,_I,{value:e,writable:!0,enumerable:!1,configurable:!1})}function KI(){return globalThis[_I]}XI.exports={setGlobalDispatcher:zI,getGlobalDispatcher:KI}});var Sn=d((cT,jI)=>{"use strict";E();jI.exports=class{#A;constructor(A){if(typeof A!="object"||A===null)throw new TypeError("handler must be an object");this.#A=A}onConnect(...A){return this.#A.onConnect?.(...A)}onError(...A){return this.#A.onError?.(...A)}onUpgrade(...A){return this.#A.onUpgrade?.(...A)}onResponseStarted(...A){return this.#A.onResponseStarted?.(...A)}onHeaders(...A){return this.#A.onHeaders?.(...A)}onData(...A){return this.#A.onData?.(...A)}onComplete(...A){return this.#A.onComplete?.(...A)}onBodySent(...A){return this.#A.onBodySent?.(...A)}}});var AC=d((QT,$I)=>{"use strict";E();var qk=an();$I.exports=e=>{let A=e?.maxRedirections;return t=>function(s,n){let{maxRedirections:i=A,...o}=s;if(!i)return t(s,n);let a=new qk(t,i,s,n);return t(o,a)}}});var tC=d((BT,eC)=>{"use strict";E();var Wk=dn();eC.exports=e=>A=>function(r,s){return A(r,new Wk({...r,retryOptions:{...e,...r.retryOptions}},{handler:s,dispatch:A}))}});var sC=d((IT,rC)=>{"use strict";E();var Ok=T(),{InvalidArgumentError:Pk,RequestAbortedError:Zk}=J(),_k=Sn(),lc=class extends _k{#A=1024*1024;#e=null;#t=!1;#n=!1;#s=0;#r=null;#i=null;constructor({maxSize:A},t){if(super(t),A!=null&&(!Number.isFinite(A)||A<1))throw new Pk("maxSize must be a number greater than 0");this.#A=A??this.#A,this.#i=t}onConnect(A){this.#e=A,this.#i.onConnect(this.#o.bind(this))}#o(A){this.#n=!0,this.#r=A}onHeaders(A,t,r,s){let i=Ok.parseHeaders(t)["content-length"];if(i!=null&&i>this.#A)throw new Zk(`Response size (${i}) larger than maxSize (${this.#A})`);return this.#n?!0:this.#i.onHeaders(A,t,r,s)}onError(A){this.#t||(A=this.#r??A,this.#i.onError(A))}onData(A){return this.#s=this.#s+A.length,this.#s>=this.#A&&(this.#t=!0,this.#n?this.#i.onError(this.#r):this.#i.onComplete([])),!0}onComplete(A){if(!this.#t){if(this.#n){this.#i.onError(this.reason);return}this.#i.onComplete(A)}}};function zk({maxSize:e}={maxSize:1024*1024}){return A=>function(r,s){let{dumpMaxSize:n=e}=r,i=new lc({maxSize:n},s);return A(r,i)}}rC.exports=zk});var oC=d((hT,iC)=>{"use strict";E();var{isIP:Kk}=u("node:net"),{lookup:Xk}=u("node:dns"),jk=Sn(),{InvalidArgumentError:jt,InformationalError:$k}=J(),nC=Math.pow(2,31)-1,Ic=class{#A=0;#e=0;#t=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(A){this.#A=A.maxTTL,this.#e=A.maxItems,this.dualStack=A.dualStack,this.affinity=A.affinity,this.lookup=A.lookup??this.#n,this.pick=A.pick??this.#s}get full(){return this.#t.size===this.#e}runLookup(A,t,r){let s=this.#t.get(A.hostname);if(s==null&&this.full){r(null,A.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#A,maxItems:this.#e};if(s==null)this.lookup(A,n,(i,o)=>{if(i||o==null||o.length===0){r(i??new $k("No DNS entries found"));return}this.setRecords(A,o);let a=this.#t.get(A.hostname),c=this.pick(A,a,n.affinity),g;typeof c.port=="number"?g=`:${c.port}`:A.port!==""?g=`:${A.port}`:g="",r(null,`${A.protocol}//${c.family===6?`[${c.address}]`:c.address}${g}`)});else{let i=this.pick(A,s,n.affinity);if(i==null){this.#t.delete(A.hostname),this.runLookup(A,t,r);return}let o;typeof i.port=="number"?o=`:${i.port}`:A.port!==""?o=`:${A.port}`:o="",r(null,`${A.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#n(A,t,r){Xk(A.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return r(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);r(null,i.values())})}#s(A,t,r){let s=null,{records:n,offset:i}=t,o;if(this.dualStack?(r==null&&(i==null||i===nC?(t.offset=0,r=4):(t.offset++,r=(t.offset&1)===1?6:4)),n[r]!=null&&n[r].ips.length>0?o=n[r]:o=n[r===4?6:4]):o=n[r],o==null||o.ips.length===0)return s;o.offset==null||o.offset===nC?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(A,t,r)):s}setRecords(A,t){let r=Date.now(),s={records:{4:null,6:null}};for(let n of t){n.timestamp=r,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#A):n.ttl=this.#A;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#t.set(A.hostname,s)}getHandler(A,t){return new Cc(this,A,t)}},Cc=class extends jk{#A=null;#e=null;#t=null;#n=null;#s=null;constructor(A,{origin:t,handler:r,dispatch:s},n){super(r),this.#s=t,this.#n=r,this.#e={...n},this.#A=A,this.#t=s}onError(A){switch(A.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#A.dualStack){this.#A.runLookup(this.#s,this.#e,(t,r)=>{if(t)return this.#n.onError(t);let s={...thi
Line truncated
|
||||
${i}`;return}if(Ci(A,s,Eb)){Bb(A,n)&&(t.retry=A.toString("utf8",n));return}if(Ci(A,s,Qb)){lb(A,n)&&(t.id=A.toString("utf8",n));return}if(Ci(A,s,gb)){let i=A.toString("utf8",n);i.length>0&&(t.event=i)}}processEvent(A){A.retry&&nb(A.retry)&&(this.state.reconnectionTime=parseInt(A.retry,10)),A.id&&ib(A.id)&&(this.state.lastEventId=A.id),A.data!==void 0&&this.push({type:A.event||"message",options:{data:A.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let A=[],t=0;for(let r=this.lineChunkIndex;r<=this.chunkIndex;r++){let s=this.chunks[r],n=r===this.lineChunkIndex?this.linePos:0,i=r===this.chunkIndex?this.pos:s.length,o=s.subarray(n,i);t+=o.length,A.push(o)}return Buffer.concat(A,t)}peekBufferedByte(A){let t=this.lineChunkIndex,r=this.linePos;for(;t<this.chunks.length;){let s=this.chunks[t],n=s.length-r;if(A<n)return s[r+A];A-=n,t++,r=0}}discardLeadingBytes(A){for(;A>0&&this.lineChunkIndex<this.chunks.length;){let r=this.chunks[this.lineChunkIndex].length-this.linePos;A<r?(this.linePos+=A,A=0):(A-=r,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let A=this.peekBufferedByte(0),t=this.peekBufferedByte(1),r=this.peekBufferedByte(2);return t===void 0?(A===Er[0]||(this.checkBOM=!1),!0):r===void 0?A===Er[0]&&t===Er[1]?!0:(this.checkBOM=!1,!1):(A===Er[0]&&t===Er[1]&&r===Er[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Ju.exports={EventSourceStream:ng}});var _u=d((mx,Zu)=>{"use strict";E();var{pipeline:Ib}=u("node:stream"),{fetching:Cb}=es(),{makeRequest:hb}=er(),{webidl:fe}=gA(),{EventSourceStream:ub}=vu(),{parseMIMEType:db}=hA(),{createFastMessageEvent:fb}=or(),{isNetworkError:Hu}=$r(),{delay:wb}=rg(),{kEnumerableProperty:lt}=T(),{environmentSettingsObject:Vu}=DA(),qu=!1,Wu=3e3,Is=0,Ou=1,Cs=2,yb="anonymous",pb="use-credentials",Br=class e extends EventTarget{#A={open:null,error:null,message:null};#e=null;#t=!1;#n=Is;#s=null;#r=null;#i;#o;constructor(A,t={}){super(),fe.util.markAsUncloneable(this);let r="EventSource constructor";fe.argumentLengthCheck(arguments,1,r),qu||(qu=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),A=fe.converters.USVString(A,r,"url"),t=fe.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wu};let s=Vu,n;try{n=new URL(A,s.settingsObject.baseUrl),this.#o.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#e=n.href;let i=yb;t.withCredentials&&(i=pb,this.#t=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Vu.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#e)],this.#s=hb(o),this.#c()}get readyState(){return this.#n}get url(){return this.#e}get withCredentials(){return this.#t}#c(){if(this.#n===Cs)return;this.#n=Is;let A={request:this.#s,dispatcher:this.#i},t=r=>{Hu(r)&&(this.dispatchEvent(new Event("error")),this.close()),this.#a()};A.processResponseEndOfBody=t,A.processResponse=r=>{if(Hu(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#a();return}let s=r.headersList.get("content-type",!0),n=s!==null?db(s):"failure",i=n!=="failure"&&n.essence==="text/event-stream";if(r.status!==200||i===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#n=Ou,this.dispatchEvent(new Event("open")),this.#o.origin=r.urlList[r.urlList.length-1].origin;let o=new ub({eventSourceSettings:this.#o,push:a=>{this.dispatchEvent(fb(a.type,a.options))}});Ib(r.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#r=Cb(A)}async#a(){this.#n!==Cs&&(this.#n=Is,this.dispatchEvent(new Event("error")),await wb(this.#o.rec
Line truncated
|
||||
`).filter(r=>r!=="");return A&&A.trimWhitespace===!1?t:t.map(r=>r.trim())}function hd(e){process.exitCode=Ig.Failure,DU(e)}function DU(e,A={}){Cr("error",ws(A),e instanceof Error?e.toString():e)}function ds(e,A={}){Cr("warning",ws(A),e instanceof Error?e.toString():e)}function ud(e,A={}){Cr("notice",ws(A),e instanceof Error?e.toString():e)}function dd(e){process.stdout.write(e+Id.EOL)}function mU(e){Si("group",e)}function kU(){Si("endgroup")}function fd(e,A){return pU(this,void 0,void 0,function*(){mU(e);let t;try{t=yield A()}finally{kU()}return t})}E();import wd from"node:path";var mi=class{options={envRegex:/^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|NO_COLOR|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$/,configurationFile:{input:"configurationFile",env:"RENOVATE_CONFIG_FILE",optional:!0},token:{input:"token",env:"RENOVATE_TOKEN",optional:!1}};token;_environmentVariables;_configurationFile;constructor(){let A=vA("env-regex"),t=A?new RegExp(A):this.options.envRegex,r=Cd("additional-env-list");this._environmentVariables=new Map(Object.entries(process.env).filter(([s])=>t.test(s)||r.includes(s)).filter(s=>s[1]!==void 0));for(let s of r)this._environmentVariables.has(s)||ds(`Environment variable '${s}' listed in 'additional-env-list' was not found in the parent process environment; it will not be passed to the renovate container.`);this.token=this.get(this.options.token.input,this.options.token.env,this.options.token.optional),this._configurationFile=this.get(this.options.configurationFile.input,this.options.configurationFile.env,this.options.configurationFile.optional)}configurationFile(){return this._configurationFile.value!==""?{key:this._configurationFile.key,value:wd.resolve(this._configurationFile.value)}:null}getDockerImage(){return vA("renovate-image")||null}getVersion(){return vA("renovate-version")||null}mountDockerSocket(){return vA("mount-docker-socket")==="true"}dockerSocketHostPath(){return vA("docker-socket-host-path")||"/var/run/docker.sock"}getDockerCmdFile(){let A=vA("docker-cmd-file");return A&&A!==""?wd.resolve(A):null}getDockerUser(){return vA("docker-user")||null}getDockerVolumeMounts(){return vA("docker-volumes").split(";").map(A=>A.trim()).filter(A=>!!A)}getDockerNetwork(){return vA("docker-network")}toEnvironmentVariables(){return[...this._environmentVariables].map(([A,t])=>({key:A,value:t}))}get(A,t,r){let s=vA(A),n=this._environmentVariables.get(t);if(s===""&&n===void 0&&!r)throw new Error([`'${A}' MUST be passed using its input or the '${t}'`,"environment variable"].join(" "));return this._environmentVariables.delete(t),s!==""?{key:t,value:s}:{key:t,value:n??""}}};E();E();var ki=class e{static image="ghcr.io/renovatebot/renovate";static version="44";fullImageReference;constructor(A){let t=A.getDockerImage(),r=A.getVersion();if(t?.includes(":")){dd("Docker image looks like it contains a version, using that as the image itself"),this.fullImageReference=t;return}t||(ds(`No Docker image specified, using ${e.image}`),t=e.image),r||(ds(`No Docker version specified, using ${e.version}`),r=e.version),this.fullImageReference=`${t}:${r}`}image(){return this.fullImageReference}};import Cg from"node:fs/promises";import hg from"node:path";var Ri=class e{constructor(A){this.input=A;this.docker=new ki(A)}input;static dockerGroupRegex=/^docker:x:(?<groupId>[1-9][0-9]*):/m;configFileMountDir="/github-action";docker;async runDockerContainerForVersion(){let A=`docker run --env FORCE_COLOR=3 --rm ${this.docker.image()} --version`,{exitCode:t,stdout:r}=await lg(A);return t!==0&&new Error(`'docker run' failed with exit code ${t}.`),r.trim()}async runDockerContainer(){await this.validateArguments();let A=this.input.toEnvironmentVariables().map(c=>`--env ${c.key}`).concat([`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`]),t=this.input.configurationFile();if(t!==null){let c=hg.basename(t.value),g=hg.join(this.configFileMountDir,c);A.push(`--env ${t.key}=${g}`,`--volume ${t.value}:${g}`)}if(this.input.mountDockerSocket()){let c=this.input.dockerSocketHostPath();if(!(await Cg.stat(c)).isSocket())throw new Error(`docker socket host path '${c}' MUST exist and be a socket`);A.push(`--volume ${c}:/var/run/docker.sock`,`--group-add ${await this.getDockerGroupId()}`)}let r=this.input.getDockerCmdFile(),s=null;if(r!==null){let g=`/${hg.basename(r)}`;A.push(`--volume ${r}:${g}`),s=g}let n=this.input.getDockerUser();n!==null&&A.push(`--user ${n}`);for(let c of this.input.getDockerVolumeMounts())A.push(`--volume ${c}`);let i=this.input.getDockerNetwork();i&&A.push(`--network ${i}`),A.push("--rm",this.docker.image()),s!==null&&A.push(s);let o=`docker run ${A.join(" ")}`,a=await Bg(o);a!==0&&new Error(`'docker run' failed with exit code ${a}.`)}async getDockerGroupId(){let A="/etc/group",t=await Cg.readFile(A,{encoding:"utf-8"}),r=e.dockerGroupRegex.exec(t);if(r?.groups?.groupId===void 0)throw new Error(`Could not find group docker in ${A}`);return r.groups.groupId}async validateLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
||||
|
||||
undici/lib/web/websocket/frame.js:
|
||||
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
||||
*/
|
||||
//# sourceMappingURL=index.js.map
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../tools/cjs-shim.ts", "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js", "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/symbols.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/errors.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/constants.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/tree.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/util.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/diagnostics.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/request.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/util/timers.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/core/connect.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/llhttp/utils.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/llhttp/constants.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/constants.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/global.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/util.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/file.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/web/fetch/body.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/client.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/pool.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/agent.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/handler/retry-handler.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/readable.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/util.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/api-request.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/abort-signal.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/api-stream.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/api-pipeline.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/api-upgrade.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/api-connect.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/api/index.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/mock-errors.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/mock-utils.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/mock-client.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/mock-pool.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/pluralizer.js", "../node_modules/.pnpm/undici@6.29.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modulLine truncated
|
||||
"sourcesContent": ["// https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport url from 'node:url';\n\nglobalThis.require = createRequire(import.meta.url);\nglobalThis.__filename = url.fileURLToPath(import.meta.url);\nglobalThis.__dirname = path.dirname(__filename);\n", "'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socketLine truncated
|
||||
"mappings": "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 truncated
|
||||
"names": ["createRequire", "path", "url", "init_cjs_shim", "__esmMin", "require_tunnel", "__commonJSMin", "exports", "init_cjs_shim", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_symbols", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_errors", "__commonJSMin", "exports", "module", "init_cjs_shim", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "init_cjs_shim", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "init_cjs_shim", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "init_cjs_shim", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "init_cjs_shim", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "init_cjs_shim", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPatLine truncated
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||
import globals from 'globals';
|
||||
import js from '@eslint/js';
|
||||
import json from 'eslint-plugin-json';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: [
|
||||
'**/.git/',
|
||||
'**/.vscode',
|
||||
'**/build/',
|
||||
'**/dist/',
|
||||
'**/coverage/',
|
||||
'**/LICENSE.md',
|
||||
'**/modules/',
|
||||
'**/node_modules/',
|
||||
'!**/.*',
|
||||
],
|
||||
},
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommendedTypeChecked.map((config) => ({
|
||||
...config,
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
})),
|
||||
...tseslint.configs.stylisticTypeChecked.map((config) => ({
|
||||
...config,
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
})),
|
||||
{
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
|
||||
linterOptions: {
|
||||
reportUnusedDisableDirectives: true,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
'sort-imports': 'error',
|
||||
},
|
||||
},
|
||||
json.configs.recommended,
|
||||
{
|
||||
files: ['**/tsconfig.json', '**/tsconfig.*.json'],
|
||||
rules: {
|
||||
'json/*': ['error', { allowComments: true }],
|
||||
},
|
||||
},
|
||||
eslintConfigPrettier,
|
||||
);
|
||||
@@ -10,14 +10,7 @@ module.exports = {
|
||||
packageRules: [
|
||||
{
|
||||
description: 'lockFileMaintenance',
|
||||
matchUpdateTypes: [
|
||||
'pin',
|
||||
'digest',
|
||||
'patch',
|
||||
'minor',
|
||||
'major',
|
||||
'lockFileMaintenance',
|
||||
],
|
||||
matchUpdateTypes: ['pin', 'digest', 'patch', 'minor', 'major', 'lockFileMaintenance'],
|
||||
dependencyDashboardApproval: false,
|
||||
minimumReleaseAge: null,
|
||||
},
|
||||
|
||||
@@ -14,14 +14,7 @@
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "lockFileMaintenance",
|
||||
"matchUpdateTypes": [
|
||||
"pin",
|
||||
"digest",
|
||||
"patch",
|
||||
"minor",
|
||||
"major",
|
||||
"lockFileMaintenance"
|
||||
],
|
||||
"matchUpdateTypes": ["pin", "digest", "patch", "minor", "major", "lockFileMaintenance"],
|
||||
"dependencyDashboardApproval": false,
|
||||
"minimumReleaseAge": "1 day"
|
||||
}
|
||||
|
||||
+25
-32
@@ -1,33 +1,31 @@
|
||||
{
|
||||
"name": "github-action",
|
||||
"version": "46.3.8",
|
||||
"version": "0.0.0-PLACEHOLDER",
|
||||
"private": true,
|
||||
"description": "GitHub Action to run Renovate self-hosted.",
|
||||
"homepage": "https://github.com/renovatebot/github-action#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/renovatebot/github-action/issues"
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Jeroen de Bruijn",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/renovatebot/github-action.git"
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Jeroen de Bruijn",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"build": "run-s clean compile",
|
||||
"clean": "rimraf dist/",
|
||||
"compile": "node tools/compile.js",
|
||||
"lint": "run-s lint-es prettier",
|
||||
"lint:fix": "run-s lint-es:fix prettier-fix",
|
||||
"lint-es": "eslint .",
|
||||
"lint-es:file": "eslint",
|
||||
"lint-es:file:fix": "eslint --fix",
|
||||
"lint-es:fix": "eslint --fix .",
|
||||
"lint": "run-s lint:*",
|
||||
"lint:oxlint": "oxlint",
|
||||
"lint:oxfmt": "oxfmt --check",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:oxlint": "oxlint --fix",
|
||||
"fix:oxfmt": "oxfmt",
|
||||
"prepare": "husky",
|
||||
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
|
||||
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
|
||||
"release": "run-s clean build semantic-release",
|
||||
"semantic-release": "semantic-release",
|
||||
"start": "run-s build && node dist"
|
||||
@@ -37,35 +35,30 @@
|
||||
"@actions/exec": "3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "21.2.3",
|
||||
"@commitlint/config-conventional": "21.2.3",
|
||||
"@eslint/js": "9.39.5",
|
||||
"@commitlint/cli": "21.3.0",
|
||||
"@commitlint/config-conventional": "21.3.0",
|
||||
"@containerbase/oxlint-plugin": "1.1.0",
|
||||
"@semantic-release/git": "11.0.1",
|
||||
"@semantic-release/github": "12.0.10",
|
||||
"@semantic-release/github": "12.0.11",
|
||||
"@semantic-release/npm": "13.2.0",
|
||||
"@tsconfig/node24": "24.0.5",
|
||||
"@tsconfig/strictest": "2.0.8",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"@types/node": "24.19.1",
|
||||
"@tsconfig/node24": "24.0.6",
|
||||
"@tsconfig/strictest": "2.0.9",
|
||||
"@types/node": "24.19.4",
|
||||
"conventional-changelog-conventionalcommits": "9.3.1",
|
||||
"esbuild": "0.28.2",
|
||||
"eslint": "9.39.5",
|
||||
"eslint-config-prettier": "10.1.8",
|
||||
"eslint-plugin-json": "5.0.0",
|
||||
"globals": "17.13.0",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "17.6.0",
|
||||
"npm-run-all2": "9.0.3",
|
||||
"prettier": "3.9.9",
|
||||
"prettier-plugin-packagejson": "3.0.2",
|
||||
"rimraf": "6.1.3",
|
||||
"lint-staged": "17.6.3",
|
||||
"npm-run-all2": "9.1.0",
|
||||
"oxfmt": "0.80.0",
|
||||
"oxlint": "1.95.0",
|
||||
"oxlint-tsgolint": "7.0.2009",
|
||||
"rimraf": "6.1.4",
|
||||
"semantic-release": "25.0.9",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.71.0"
|
||||
"typescript": "5.9.3"
|
||||
},
|
||||
"packageManager": "pnpm@10.34.6",
|
||||
"engines": {
|
||||
"node": ">=24.11.0",
|
||||
"pnpm": "^10.0.0"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.34.9"
|
||||
}
|
||||
Generated
+776
-1117
File diff suppressed because it is too large.
Load diff
+2
-4
@@ -3,7 +3,7 @@ import type { Input } from './input';
|
||||
|
||||
export class Docker {
|
||||
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
||||
private static readonly version = '44'; // renovate
|
||||
private static readonly version = '45'; // renovate
|
||||
|
||||
private readonly fullImageReference: string;
|
||||
|
||||
@@ -12,9 +12,7 @@ export class Docker {
|
||||
let version = input.getVersion();
|
||||
|
||||
if (image?.includes(':')) {
|
||||
info(
|
||||
`Docker image looks like it contains a version, using that as the image itself`,
|
||||
);
|
||||
info(`Docker image looks like it contains a version, using that as the image itself`);
|
||||
this.fullImageReference = image;
|
||||
return;
|
||||
}
|
||||
|
||||
+7
-16
@@ -1,5 +1,5 @@
|
||||
import { getInput, getMultilineInput, warning } from '@actions/core';
|
||||
import path from 'node:path';
|
||||
import { getInput, getMultilineInput, warning } from '@actions/core';
|
||||
|
||||
export interface EnvironmentVariable {
|
||||
key: string;
|
||||
@@ -28,15 +28,11 @@ export class Input {
|
||||
|
||||
constructor() {
|
||||
const envRegexInput = getInput('env-regex');
|
||||
const envRegex = envRegexInput
|
||||
? new RegExp(envRegexInput)
|
||||
: this.options.envRegex;
|
||||
const envRegex = envRegexInput ? new RegExp(envRegexInput) : this.options.envRegex;
|
||||
const additionalEnvVarNames = getMultilineInput('additional-env-list');
|
||||
this._environmentVariables = new Map(
|
||||
Object.entries(process.env)
|
||||
.filter(
|
||||
([key]) => envRegex.test(key) || additionalEnvVarNames.includes(key),
|
||||
)
|
||||
.filter(([key]) => envRegex.test(key) || additionalEnvVarNames.includes(key))
|
||||
.filter((pair): pair is [string, string] => pair[1] !== undefined),
|
||||
);
|
||||
for (const name of additionalEnvVarNames) {
|
||||
@@ -120,20 +116,15 @@ export class Input {
|
||||
}));
|
||||
}
|
||||
|
||||
private get(
|
||||
input: string,
|
||||
env: string,
|
||||
optional: boolean,
|
||||
): EnvironmentVariable {
|
||||
private get(input: string, env: string, optional: boolean): EnvironmentVariable {
|
||||
const fromInput = getInput(input);
|
||||
const fromEnv = this._environmentVariables.get(env);
|
||||
|
||||
if (fromInput === '' && fromEnv === undefined && !optional) {
|
||||
throw new Error(
|
||||
[
|
||||
`'${input}' MUST be passed using its input or the '${env}'`,
|
||||
'environment variable',
|
||||
].join(' '),
|
||||
[`'${input}' MUST be passed using its input or the '${env}'`, 'environment variable'].join(
|
||||
' ',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+15
-17
@@ -1,11 +1,14 @@
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { exec, getExecOutput } from '@actions/exec';
|
||||
import { Docker } from './docker';
|
||||
import { Input } from './input';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
|
||||
export class Renovate {
|
||||
static dockerGroupRegex = /^docker:x:(?<groupId>[1-9][0-9]*):/m;
|
||||
private static readonly userAgentKey = 'RENOVATE_USER_AGENT';
|
||||
private static readonly defaultUserAgent =
|
||||
'Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)';
|
||||
private configFileMountDir = '/github-action';
|
||||
|
||||
private docker: Docker;
|
||||
@@ -19,7 +22,7 @@ export class Renovate {
|
||||
|
||||
const { exitCode, stdout } = await getExecOutput(command);
|
||||
if (exitCode !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
throw new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
}
|
||||
|
||||
return stdout.trim();
|
||||
@@ -31,9 +34,11 @@ export class Renovate {
|
||||
const dockerArguments = this.input
|
||||
.toEnvironmentVariables()
|
||||
.map((e) => `--env ${e.key}`)
|
||||
.concat([
|
||||
`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`,
|
||||
]);
|
||||
.concat([`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`]);
|
||||
|
||||
if (!this.input.toEnvironmentVariables().some((e) => e.key === Renovate.userAgentKey)) {
|
||||
dockerArguments.push(`--env "${Renovate.userAgentKey}=${Renovate.defaultUserAgent}"`);
|
||||
}
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (configurationFile !== null) {
|
||||
@@ -49,9 +54,7 @@ export class Renovate {
|
||||
const sockPath = this.input.dockerSocketHostPath();
|
||||
const stat = await fs.stat(sockPath);
|
||||
if (!stat.isSocket()) {
|
||||
throw new Error(
|
||||
`docker socket host path '${sockPath}' MUST exist and be a socket`,
|
||||
);
|
||||
throw new Error(`docker socket host path '${sockPath}' MUST exist and be a socket`);
|
||||
}
|
||||
|
||||
dockerArguments.push(
|
||||
@@ -93,7 +96,7 @@ export class Renovate {
|
||||
|
||||
const code = await exec(command);
|
||||
if (code !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${code}.`);
|
||||
throw new Error(`'docker run' failed with exit code ${code}.`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,13 +132,8 @@ export class Renovate {
|
||||
}
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (
|
||||
configurationFile !== null &&
|
||||
!(await fs.stat(configurationFile.value)).isFile()
|
||||
) {
|
||||
throw new Error(
|
||||
`configuration file '${configurationFile.value}' MUST be an existing file`,
|
||||
);
|
||||
if (configurationFile !== null && !(await fs.stat(configurationFile.value)).isFile()) {
|
||||
throw new Error(`configuration file '${configurationFile.value}' MUST be an existing file`);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { build } from 'esbuild';
|
||||
import { env } from 'node:process';
|
||||
import { build } from 'esbuild';
|
||||
|
||||
await build({
|
||||
entryPoints: ['./src/index.ts'],
|
||||
|
||||
+1
-4
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node24/tsconfig.json"
|
||||
],
|
||||
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node24/tsconfig.json"],
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
|
||||
+1
-4
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node24/tsconfig.json"
|
||||
],
|
||||
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node24/tsconfig.json"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
Reference in new issue
Block a user