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 | ||
|
|
b35dbc91f4 | ||
|
|
96a197e214 | ||
|
|
5b963bac82 | ||
|
|
a2327c167a | ||
|
|
fdc3ae9e1e | ||
|
|
85af5b5089 | ||
|
|
d8854cbfc3 | ||
|
|
4c2ff13b7f | ||
|
|
d205fa1186 | ||
|
|
d05a9c845e | ||
|
|
15f0ee74d2 | ||
|
|
9b5e926b30 | ||
|
|
750014e4fc | ||
|
|
e0ac9d90bd | ||
|
|
22f44b27c8 | ||
|
|
6f17fe917e | ||
|
|
7cb03f93d6 | ||
|
|
1032cc275d | ||
|
|
cc52bde2e8 | ||
|
|
6b62f260eb | ||
|
|
6181226b77 | ||
|
|
8bc7704267 | ||
|
|
c6c4e3c08b | ||
|
|
430b0633dd | ||
|
|
b9731341b8 | ||
|
|
4e1dc65714 | ||
|
|
a44fc209d6 | ||
|
|
8e77cf4622 | ||
|
|
bb79b7a8c9 | ||
|
|
a27384414c | ||
|
|
371c17cf1a | ||
|
|
f6f0792ea7 | ||
|
|
c29762e038 | ||
|
|
89ad133cbe | ||
|
|
a626e1b807 | ||
|
|
a320599b07 | ||
|
|
ce26faff62 | ||
|
|
51aa20135a | ||
|
|
efdddada19 | ||
|
|
c68f408304 | ||
|
|
b21e0a8c6f | ||
|
|
c7be731770 | ||
|
|
902e33921c | ||
|
|
b9930a702a | ||
|
|
176ff480ec | ||
|
|
b08001db90 | ||
|
|
b9e6d61d85 | ||
|
|
f949b28b98 | ||
|
|
a95e1afed5 | ||
|
|
68a2f374b4 | ||
|
|
0fcb47fcb7 | ||
|
|
f79cd7c66f | ||
|
|
ba18a70566 | ||
|
|
c368bd1b3d | ||
|
|
1155eb1e83 | ||
|
|
b33ff4f9d1 | ||
|
|
79feb4a544 | ||
|
|
d2f2ff9e53 | ||
|
|
38b166ec0c | ||
|
|
a0ea08461f | ||
|
|
687bf74d45 | ||
|
|
339064e8ed | ||
|
|
ecd68155e1 | ||
|
|
95f5665129 | ||
|
|
be286e9e55 | ||
|
|
daa3d6d690 | ||
|
|
dbe3ae60b9 | ||
|
|
005d8b762c | ||
|
|
4857c6870e | ||
|
|
3cbf83af7f | ||
|
|
c9c68ecc82 | ||
|
|
cd624bc9d4 | ||
|
|
8e0a2ed52d | ||
|
|
a5ad69776f | ||
|
|
398f23884b | ||
|
|
16decedb2e | ||
|
|
63d12f680b | ||
|
|
56af4b3f31 | ||
|
|
0918312b3c | ||
|
|
10c72ed582 | ||
|
|
9b4d9e81d6 | ||
|
|
fa32a689a7 | ||
|
|
507727b5a1 | ||
|
|
8c964613b6 | ||
|
|
09451de0fa | ||
|
|
d7d48a9e60 | ||
|
|
e1c7618f6e | ||
|
|
4c5732b0c8 | ||
|
|
0facf988a4 | ||
|
|
31beecb040 | ||
|
|
a6b6810e55 | ||
|
|
9f490ccde0 | ||
|
|
d0ccb74eb9 | ||
|
|
bf42745556 |
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@820762786026740c76f36085b0efc47a31fe5020 # v7.0.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'
|
||||
+32
-18
@@ -10,7 +10,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RENOVATE_VERSION: 44.104.2 # 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:
|
||||
@@ -129,17 +134,26 @@ jobs:
|
||||
docker-cmd-file: example/entrypoint.sh
|
||||
docker-user: root
|
||||
|
||||
- name: Renovate test with image and digest
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
renovate-image: ghcr.io/renovatebot/renovate:44.115.4@sha256:03e987bec9fbda0cf39ef63f2d293e821d96525119e1ab3d0ff87d5b3ef3edd9
|
||||
|
||||
renovate-config-validator:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:44.104.2@sha256:c87b1c55ab98286dad9df0c1d84ebe1fbe2a805a68d48dd7a6d577709bf951a7
|
||||
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
|
||||
@@ -165,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'
|
||||
@@ -188,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.1
|
||||
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.1
|
||||
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.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -222,18 +222,12 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
### `renovate-version`
|
||||
|
||||
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.104.2` image.
|
||||
It is also possible to specify a full Docker image pinned to a version (and optionally, a digest) like so:
|
||||
|
||||
```yml
|
||||
....
|
||||
@@ -244,9 +238,32 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: 44.104.2
|
||||
renovate-image: ghcr.io/renovatebot/renovate@sha256:0f7ba2b70c5d1a7e2d95b0f6c3d5b4a1e2f6b6a1e2f6b6a1e2f6b6a1e2f6b6a1
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
### `renovate-version`
|
||||
|
||||
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:45.16.0` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: 45.16.0
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
@@ -261,7 +278,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: full
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -296,7 +313,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -309,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.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -356,7 +373,7 @@ jobs:
|
||||
uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
@@ -371,7 +388,7 @@ For example:
|
||||
|
||||
```yaml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
env:
|
||||
@@ -397,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.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -420,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:
|
||||
@@ -438,7 +461,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.1.0
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -461,7 +484,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.1
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -532,11 +555,11 @@ jobs:
|
||||
sudo chown -R 12021:0 /tmp/renovate/
|
||||
ls -R $cache_dir
|
||||
|
||||
- uses: renovatebot/github-action@v46.3.1
|
||||
- uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: renovate.json5
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
renovate-version: 44.104.2
|
||||
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' }}
|
||||
@@ -558,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.1
|
||||
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 hd=Object.create;var Ig=Object.defineProperty;var ud=Object.getOwnPropertyDescriptor;var dd=Object.getOwnPropertyNames;var fd=Object.getPrototypeOf,wd=Object.prototype.hasOwnProperty;var h=(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 yd=(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 pd=(e,A,t,r)=>{if(A&&typeof A=="object"||typeof A=="function")for(let s of dd(A))!wd.call(e,s)&&s!==t&&Ig(e,s,{get:()=>A[s],enumerable:!(r=ud(A,s))||r.enumerable});return e};var Cg=(e,A,t)=>(t=e!=null?hd(fd(e)):{},pd(A||!e||!e.__esModule?Ig(t,"default",{value:e,enumerable:!0}):t,e));import{createRequire as Dd}from"node:module";import md from"node:path";import kd from"node:url";var E=yd(()=>{"use strict";globalThis.require=Dd(import.meta.url);globalThis.__filename=kd.fileURLToPath(import.meta.url);globalThis.__dirname=md.dirname(__filename)});var yg=d(ut=>{"use strict";E();var Yb=h("net"),Sd=h("tls"),Si=h("http"),dg=h("https"),Ud=h("events"),Gb=h("assert"),bd=h("util");ut.httpOverHttp=Md;ut.httpsOverHttp=Ld;ut.httpOverHttps=Td;ut.httpsOverHttps=xd;function Md(e){var A=new ae(e);return A.request=Si.request,A}function Ld(e){var A=new ae(e);return A.request=Si.request,A.createSocket=fg,A.defaultPort=443,A}function Td(e){var A=new ae(e);return A.request=dg.request,A}function xd(e){var A=new ae(e);return A.request=dg.request,A.createSocket=fg,A.defaultPort=443,A}function ae(e){var A=this;A.options=e||{},A.proxyOptions=A.options.proxy||{},A.maxSockets=A.options.maxSockets||Si.Agent.defaultMaxSockets,A.requests=[],A.sockets=[],A.on("free",function(r,s,n,i){for(var o=wg(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)})}bd.inherits(ae,Ud.EventEmitter);ae.prototype.addRequest=function(A,t,r,s){var n=this,i=Ui({request:A},n.options,wg(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)}})};ae.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")),pe("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){pe("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){pe("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 pe("tunneling connection has established"),r.sockets[r.sockets.indexOf(s)]=B,t(B)}function g(Q){i.removeAllListeners(),pe(`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)}};ae.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 fg(e,A){var t=this;ae.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=Sd.connect(0,n);t.sockets[t.sockets.indexOf(r)]=i,A(i)})}function wg(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 pe;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?pe=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)}:pe=function(){};ut.debug=pe});var Dg=d((Hb,pg)=>{"use strict";E();pg.exports=yg()});var z=d((qb,mg)=>{"use strict";E();mg.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((Ob,Kg)=>{"use strict";E();var kg=Symbol.for("undici.error.UND_ERR"),K=class extends Error{constructor(A){super(A),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](A){return A&&A[kg]===!0}[kg]=!0},Rg=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bi=class extends K{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[Rg]===!0}[Rg]=!0},Fg=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Mi=class extends K{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[Fg]===!0}[Fg]=!0},Ng=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Li=class extends K{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[Ng]===!0}[Ng]=!0},Sg=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Ti=class extends K{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[Sg]===!0}[Sg]=!0},Ug=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),xi=class extends K{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 $w(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(Yw.has(i)){s=i;break}}s!==""&&(e.referrerPolicy=s)}function Ay(){return"allowed"}function ey(){return"success"}function ty(){return"success"}function ry(e){let A=null;A=e.mode,e.headersList.set("sec-fetch-mode",A,!0)}function sy(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&&Fo(e.origin)&&!Fo(kr(e))&&(A=null);break;case"same-origin":Vs(e,kr(e))||(A=null);break;default:}e.headersList.append("origin",A,!0)}}}function Ft(e,A){return e}function ny(e,A,t){return!e?.startTime||e.startTime<A?{domainLookupStartTime:A,domainLookupEndTime:A,connectionStartTime:A,connectionEndTime:A,secureConnectionStartTime:A,ALPNNegotiatedProtocol:e?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Ft(e.domainLookupStartTime,t),domainLookupEndTime:Ft(e.domainLookupEndTime,t),connectionStartTime:Ft(e.connectionStartTime,t),connectionEndTime:Ft(e.connectionEndTime,t),secureConnectionStartTime:Ft(e.secureConnectionStartTime,t),ALPNNegotiatedProtocol:e.ALPNNegotiatedProtocol}}function iy(e){return Ft(Vw.now(),e)}function oy(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 gE(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function ay(e){return{referrerPolicy:e.referrerPolicy}}function cy(e){let A=e.referrerPolicy;Oe(A);let t=null;if(e.referrer==="client"){let o=sE();if(!o||o.origin==="null")return"no-referrer";t=new URL(o)}else e.referrer instanceof URL&&(t=e.referrer);let r=Ro(t),s=Ro(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??Ro(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 Ro(e,A){return Oe(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 gy(e,A){if(Hs===void 0)return!0;let t=QE(A);if(t==="no metadata"||t.length===0)return!0;let r=Ey(t),s=By(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)),ly(a,o))return!0}return!1}var Qy=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function QE(e){let A=[],t=!0;for(let r of e.split(" ")){t=!1;let s=Qy.exec(r);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let n=s.groups.algo.toLowerCase();iE.includes(n)&&A.push(s.groups)}return t===!0?"no metadata":A}function Ey(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 By(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 ly(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 Iy(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 Cy(){let e,A;return{promise:new Promise((r,s)=>{e=r,A=s}),resolve:e,reject:A}}function hy(e){return e.controller.state==="aborted"}function uy(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function dy(e){return Ow[e.toLowerCase()]??e}function fy(e){let A=JSON.stringify(e);if(A===void 0)throw new TypeError("Value is not JSON serializable");return Oe(typeof A=="string"),A}var wy=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function EE(e,A,t=0,r=1){class s{#A;#e;#t;constructor(i,o){this.#A=i,
Line truncated
|
||||
`);function Xy(e){for(let A=0;A<e.length;++A)if((e.charCodeAt(A)&-128)!==0)return!1;return!0}function jy(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 $y(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,zy,n)||n.position===e.length-4&&Os(e,Ky,n))return s;if(e[n.position]!==13||e[n.position+1]!==10)return"failure";n.position+=2;let o=Ap(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",Xy(g)||(g=""),C=new Zy([B],c,{type:g})):C=Vy(Buffer.from(B)),Ws(DE(a)),Ws(typeof C=="string"&&DE(C)||Wy(C)),s.push(Oy(a,C,c))}}function Ap(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=St(o=>o!==10&&o!==13&&o!==58,e,A);if(i=To(i,!0,!0,o=>o===9||o===32),!qy.test(i.toString())||e[A.position]!==58)return"failure";switch(A.position++,St(o=>o===32||o===9,e,A),Hy(i)){case"content-disposition":{if(t=r=null,!Os(e,_y,A)||(A.position+=17,t=RE(e,A),t===null))return"failure";if(Os(e,kE,A)){let o=A.position+kE.length;if(e[o]===42&&(A.position+=1,o+=1),e[o]!==61||e[o+1]!==34||(A.position+=12,r=RE(e,A),r===null))return"failure"}break}case"content-type":{let o=St(a=>a!==10&&a!==13,e,A);o=To(o,!1,!0,a=>a===9||a===32),s=mE(o);break}case"content-transfer-encoding":{let o=St(a=>a!==10&&a!==13,e,A);o=To(o,!1,!0,a=>a===9||a===32),n=mE(o);break}default:St(o=>o!==10&&o!==13,e,A)}if(e[A.position]!==13&&e[A.position+1]!==10)return"failure";A.position+=2}}function RE(e,A){Ws(e[A.position-1]===34);let t=St(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 St(e,A,t){let r=t.position;for(;r<A.length&&e(A[r]);)++r;return A.subarray(t.position,t.position=r)}function To(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}FE.exports={multipartFormDataParser:$y,validateBoundary:jy}});var Mt=d((JM,JE)=>{"use strict";E();var Nr=T(),{ReadableStreamFrom:ep,isBlobLike:SE,isReadableStreamLike:tp,readableStreamClose:rp,createDeferredPromise:sp,fullyReadBody:np,extractMimeType:ip,utf8DecodeBytes:ME}=wA(),{FormData:UE}=Fr(),{kState:bt}=De(),{webidl:op}=aA(),{Blob:ap}=h("node:buffer"),xo=h("node:assert"),{isErrored:LE,isDisturbed:cp}=h("node:stream"),{isArrayBuffer:gp}=h("node:util/types"),{serializeAMimeType:Qp}=IA(),{multipartFormDataParser:Ep}=NE(),Yo;try{let e=h("node:crypto");Yo=A=>e.randomInt(0,A)}catch{Yo=e=>Math.floor(Math.random(e))}var Ps=new TextEncoder;function Bp(){}var TE=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,xE;TE&&(xE=new FinalizationRegistry(e=>{let A=e.deref();A&&!A.locked&&!cp(A)&&!LE(A)&&A.cancel("Response object has been garbage collected").catch(Bp)}));function YE(e,A=!1){let t=null;e instanceof ReadableStream?t=e:SE(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(()=>rp(a))},start(){},type:"bytes"}),xo(tp(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(gp(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${`${Yo(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 u=Ps.encode(`--${a}--\r
|
||||
`);B.push(u),n+=u.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(SE(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:ep(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(!LE(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 lp(e,A=!1){return e instanceof ReadableStream&&(xo(!Nr.isDisturbed(e),"The body has already been consumed."),xo(!e.locked,"The stream is locked.")),YE(e,A)}function Ip(e,A){let[t,r]=A.stream.tee();return A.stream=t,{stream:r,length:A.length,source:A.source}}function Cp(e){if(e.aborted)throw new DOMException("The operation was aborted.","AbortError")}function hp(e){return{blob(){return Ut(this,t=>{let r=bE(this);return r===null?r="":r&&(r=Qp(r)),new ap([t],{type:r})},e)},arrayBuffer(){return Ut(this,t=>new Uint8Array(t).buffer,e)},text(){return Ut(this,ME,e)},json(){return Ut(this,dp,e)},formData(){return Ut(this,t=>{let r=bE(this);if(r!==null)switch(r.essence){case"multipart/form-data":{let s=Ep(t,r);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new UE;return n[bt]=s,n}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(t.toString()),n=new UE;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 up(e){Object.assign(e.prototype,hp(e))}async function Ut(e,A,t){if(op.brandCheck(e,t),GE(e))throw new TypeError("Body is unusable: Body has already been read");Cp(e[bt]);let r=sp(),s=i=>r.reject(i),n=i=>{try{r.resolve(A(i))}catch(o){s(o)}};return e[bt].body==null?(n(Buffer.allocUnsafe(0)),r.promise):(await np(e[bt].body,n,s),r.promise)}function GE(e){let A=e[bt].body;return A!=null&&(A.stream.locked||Nr.isDisturbed(A.stream))}function dp(e){return JSON.parse(ME(e))}function bE(e){let A=e[bt].headersList,t=ip(A);return t==="failure"?null:t}JE.exports={extractBody:YE,safelyExtractBody:lp,cloneBody:Ip,mixinBody:up,streamRegistry:xE,hasFinalizationRegistry:TE,bodyUnusable:GE}});var eB=d((HM,AB)=>{"use strict";E();var F=h("node:assert"),S=T(),{channels:vE}=ft(),Go=uo(),{RequestContentLengthMismatchError:Pe,ResponseContentLengthMismatchError:HE,RequestAbortedError:zE,InvalidArgumentError:fp,HeadersTimeoutError:wp,HeadersOverflowError:yp,SocketError:Lt,InformationalError:Tt,BodyTimeoutError:pp,HTTPParserError:Dp,ResponseExceededMaxSizeError:mp}=J(),{kUrl:KE,kReset:CA,kClient:Ks,kParser:Z,kBlocking:br,kRunning:rA,kPending:XE,kSize:VE,kWriting:me,kQueue:GA,kNoRef:Sr,kKeepAliveDefaultTimeout:kp,kHostHeader:Rp,kPendingIdx:Fp,kRunningIdx:bA,kError:EA,kPipelining:Xs,kSocket:Ze,kKeepAliveTimeoutValue:$s,kMaxHeadersSize:Jo,kKeepAliveMaxTimeout:Np,kKeepAliveTimeoutThreshold:Sp,kHeadersTimeout:Up,kBodyTimeout:bp,kStrictContentLength:Vo,kMaxRequests:qE,kCounter:Mp,kMaxResponseSize:Lp,kOnError:WE,kResume:le,kHTTPContext:jE}=z(),yA=xQ(),OE=Buffer.alloc(0),Zs=Buffer[Symbol.species],_s=S.addListener,Tp=S.removeAllListeners,_e=Symbol("kIdleSocketValidation"),xt=Symbol("kIdleSocketValidationTimeout"),Po=Symbol("kSocketUsed"),vo;async function xp(){let e=process.env.JEST_WORKER_ID?yo():void 0,A;try{A=await WebAssembly.compile(JQ())}catch{A=await WebAssembly.compile(e||yo())}return await WebAssembly.instantiate(A,{env:{wasm_on_url:(t,r,s)=>0,wasm_on_status:(t,r,s)=>{F($.ptr===t);let n=r-$A+jA.byteOffset;return $.onStatus(new Zs(jA.buffer,n,s))||0},wasm_on_message_begin:t=>(F($.ptr===t),$.onMessageBegin()||0),wasm_on_header_field:(t,r,s)=>{F($.ptr===t);let n=r-$A+jA.byteOffset;return $.onHeaderField(new Zs(jA.buffer,n,s))||0},wasm_on_header_value:(t,r,s)=>{F($.ptr===t);let n=r-$A+jA.byteOffset;return $.onHeaderValue(new Zs(jA.buffer,n,s))||0},wasm_on_headers_complete:(t,r,s,n)=>(F($.ptr===t),$.onHeadersComplete(r,!!s,!!n)||0),wasm_on_body:(t,r,s)=>{F($.ptr===t);let n=r-$A+jA.byteOffset;return $.onBody(new Zs(jA.buffer,n,s))||0},wasm_on_message_complete:t=>(F($.ptr===t),$.onMessageComplete()||0)}})}var Ho=null,qo=xp();qo.catch();var $=null,jA=null,zs=0,$A=null,Yp=0,Ur=1,Yt=2|Ur,js=4|Ur,Wo=8|Yp,Oo=class{constructor(A,t,{exports:r}){F(Number.isFinite(A[Jo])&&A[Jo]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(yA.TYPE.RESPONSE),this.client=A,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.up
Line truncated
|
||||
`;if(typeof s=="string"?u+=`host: ${s}\r
|
||||
`:u+=e[Rp],n?u+=`connection: upgrade\r
|
||||
upgrade: ${n}\r
|
||||
`:e[Xs]&&!C[CA]?u+=`connection: keep-alive\r
|
||||
`:u+=`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 k=0;k<p.length;k++)u+=`${l}: ${p[k]}\r
|
||||
`;else u+=`${l}: ${p}\r
|
||||
`}return vE.sendHeaders.hasSubscribers&&vE.sendHeaders.publish({request:A,headers:u,socket:C}),!a||B===0?ZE(I,null,e,A,C,g,u,Q):S.isBuffer(a)?ZE(I,a,e,A,C,g,u,Q):S.isBlobLike(a)?typeof a.stream=="function"?_E(I,a.stream(),e,A,C,g,u,Q):Wp(I,a,e,A,C,g,u,Q):S.isStream(a)?qp(I,a,e,A,C,g,u,Q):S.isIterable(a)?_E(I,a,e,A,C,g,u,Q):F(!1),!0}function qp(e,A,t,r,s,n,i,o){F(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(u){S.destroy(this,u)}},Q=function(){a||A.resume&&A.resume()},B=function(){if(queueMicrotask(()=>{A.removeListener("error",C)}),!a){let I=new zE;queueMicrotask(()=>C(I))}},C=function(I){if(!a){if(a=!0,F(s.destroyed||s[me]&&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(u){I=u}c.destroy(I),I&&(I.code!=="UND_ERR_INFO"||I.message!=="reset")?S.destroy(A,I):S.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 ZE(e,A,t,r,s,n,i,o){try{A?S.isBuffer(A)&&(F(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[CA]=!0)):n===0?s.write(`${i}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(F(n===null,"no body must not have content length"),s.write(`${i}\r
|
||||
`,"latin1")),r.onRequestSent(),t[le]()}catch(a){e(a)}}async function Wp(e,A,t,r,s,n,i,o){F(n===A.size,"blob body must have content length");try{if(n!=null&&n!==A.size)throw new Pe;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[CA]=!0),t[le]()}catch(a){e(a)}}async function _E(e,A,t,r,s,n,i,o){F(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)=>{F(a===null),s[EA]?C(s[EA]):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[EA])throw s[EA];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[me]=!0}write(A){let{socket:t,request:r,contentLength:s,client:n,bytesWritten:i,expectsPayload:o,header:a}=this;if(t[EA])throw t[EA];if(t.destroyed)return!1;let c=Buffer.byteLength(A);if(!c)return!0;if(s!==null&&i+c>s){if(n[Vo])throw new Pe;process.emitWarning(new Pe)}t.cork(),i===0&&(!o&&r.reset!==!1&&(t[CA]=!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[me]=!1,A[EA])throw A[EA];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[Vo])throw new Pe;process.emitWarning(new Pe)}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[me]=!1,A&&(F(r[rA]<=1,"pipeline should only contain this request"),s(A))}};AB.exports=Gp});var cB=d((qM,aB)=>{"use strict";E();var MA=h("node:assert"),{pipeline:Op}=h("node:stream"),x=T(),{RequestContentLengthMismatchError:Zo,RequestAbortedError:tB,SocketError:Mr,InformationalError:_o}=J(),{kUrl:en,kReset:rn,kClient:Gt,kRunning:sn,kPending:Pp,kQueue:ke,kPendingIdx:zo,kRunningIdx:JA,kError:HA,kSocket:oA,kStrictContentLength:Zp,kOnError:Ko,kMaxConcurrentStreams:oB,kHTTP2Session:vA,kResume:Re,kSize:_p,kHTTPContext:zp}=z(),Ie=Symbol("open streams"),rB,sB=!1,tn;try{tn=h("node:http2")}catch{tn={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Kp,HTTP2_HEADER_METHOD:Xp,HTTP2_HEADER_PATH:jp,HTTP2_HEADER_SCHEME:$p,HTTP2_HEADER_CONTENT_LENGTH:AD,HTTP2_HEADER_EXPECT:eD,HTTP2_HEADER_STATUS:tD}}=tn;function rD(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}async function sD(e,A){e[oA]=A,sB||(sB=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let t=tn.connect(e[en],{createConnection:()=>A,peerMaxConcurrentStreams:e[oB]});t[Ie]=0,t[Gt]=e,t[oA]=A,x.addListener(t,"error",iD),x.addListener(t,"frameError",oD),x.addListener(t,"end",aD),x.addListener(t,"goaway",cD),x.addListener(t,"close",function(){let{[Gt]:s}=this,{[oA]:n}=s,i=this[oA][HA]||this[HA]||new Mr("closed",x.getSocketInfo(n));if(s[vA]=null,s.destroyed){MA(s[Pp]===0);let o=s[ke].splice(s[JA]);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){MA(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[HA]=s,this[Gt][Ko](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[HA]||new Mr("closed",x.getSocketInfo(this));e[oA]=null,this[vA]!=null&&this[vA].destroy(s),e[zo]=e[JA],MA(e[sn]===0),e.emit("disconnect",e[en],[e],s),e[Re]()});let r=!1;return A.on("close",()=>{r=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return QD(e,...s)},resume(){nD(e)},destroy(s,n){r?queueMicrotask(n):A.destroy(s).on("close",n)},get destroyed(){return A.destroyed},busy(){return!1}}}function nD(e){let A=e[oA];A?.destroyed===!1&&(e[_p]===0&&e[oB]===0?(A.unref(),e[vA].unref()):(A.ref(),e[vA].ref()))}function iD(e){MA(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[oA][HA]=e,this[Gt][Ko](e)}function oD(e,A,t){if(t===0){let r=new _o(`HTTP/2: "frameError" received - type ${e}, code ${A}`);this[oA][HA]=r,this[Gt][Ko](r)}}function aD(){let e=new Mr("other side closed",x.getSocketInfo(this[oA]));this.destroy(e),x.destroy(this[oA],e)}function cD(e){let A=this[HA]||new Mr(`HTTP/2: "GOAWAY" frame received with code ${e}`,x.getSocketInfo(this)),t=this[Gt];if(t[oA]=null,t[zp]=null,this[vA]!=null&&(this[vA].destroy(A),this[vA]=null),x.destroy(this[oA],A),t[JA]<t[ke].length){let r=t[ke][t[JA]];t[ke][t[JA]++]=null,x.errorRequest(t,r,A),t[zo]=t[JA]}MA(t[sn]===0),t.emit("disconnect",t[en],[t],A),t[Re]()}function gD(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function QD(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 R=0;R<c.length;R+=2){let O=c[R+0],AA=c[R+1];if(Array.isArray(AA))for(let j=0;j<AA.length;j++)Q[O]?Q[O]+=`,${AA[j]}`:Q[O]=AA[j];else Q[O]=AA}let B,{hostname:C,port:I}=e[en];Q[Kp]=n||`${C}${I?`:${I}`:""}`,Q[Xp]=r;let u=R=>{A.aborted||A.completed||(R=R||new tB,x.errorRequest(e,A,R),B!=null&&x.destroy(B,R),x.destroy(g,R),e[ke][e[JA]++]=null,e[Re]())};try{A.onConnect(u)}catch(R){x.errorRequest(e,A,R)}if(A.aborted)return!1;if(r==="CONNECT")return t.ref(),B=t.request(Q,{endStream:!1,signal:a}),B.id&&!B.pending?(A.onUpgrade(null,null,B),++t[Ie],e[ke][e[JA]++]=null):B.once("ready",()=>{A.onUpgrade(null,null,B),++t[Ie],e[ke][e[JA]++]=null}),B.once("close",()=>{t[Ie]-=1,t[Ie]===0&&t.unref()}),!0;Q[jp]=s,Q[$p]="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)){rB??=Mt().extractBody;let[R,O]=rB(g);Q["content-type"]=O,g=R.stream,l=R.length}if(l==null&&(l=A.contentLength),(l===0||!w)&&(l=null),gD(r)&&l>0&&A.contentLength!=null&&A.contentLength!==l){if(e[Zp])return x.errorRequest(e,A,new Zo),!1;process.emitWarning(new Zo)}l!=null&&(MA(g,"no body must not have content length"),Q[AD]=`${l}`),t.ref();let p=r==="GET"||r==="HEAD"||g===null;return o?(Q[eD]="100-continue",B=t.request(Q,{endStream:p,signal:a}),B.once("continue",k)):(B=t.request(Q,{endStream:p,signal:a}),k()),++t[Ie],B.once("response"
Line truncated
|
||||
`,this[YD]=a??3e5,this[xD]=s??3e5,this[GD]=p??!0,this[JD]=R,this[Aa]=AA,this[Ne]=null,this[WD]=_A>-1?_A:-1,this[PD]=ye??100,this[tA]=null,this[VA]=[],this[he]=0,this[qA]=0,this[Yr]=ht=>ta(this,ht),this[OD]=ht=>wB(this,ht)}get pipelining(){return this[cn]}set pipelining(A){this[cn]=A,this[Yr](!0)}get[vr](){return this[VA].length-this[qA]}get[Jr](){return this[qA]-this[he]}get[Gr](){return this[VA].length-this[he]}get[ND](){return!!this[tA]&&!this[vt]&&!this[tA].destroyed}get[$o](){return!!(this[tA]?.busy(null)||this[Gr]>=(fB(this)||1)||this[vr]>0)}[FD](A){yB(this),this.once("connect",A)}[qD](A,t){let r=A.origin||this[ee].origin,s=new yD(r,A,t);return this[VA].push(s),this[Ke]||(ze.bodyLength(s.body)==null&&ze.isIterable(s.body)?(this[Ke]=1,queueMicrotask(()=>ta(this))):this[Yr](!0)),this[Ke]&&this[Se]!==2&&this[$o]&&(this[Se]=2),this[Se]<2}async[HD](){return new Promise(A=>{this[Gr]?this[Ne]=A:A(null)})}async[VD](A){return new Promise(t=>{let r=this[VA].splice(this[qA]);for(let n=0;n<r.length;n++){let i=r[n];ze.errorRequest(this,i,A)}let s=()=>{this[Ne]&&(this[Ne](),this[Ne]=null),t(null)};this[tA]?(this[tA].destroy(A,s),this[tA]=null):queueMicrotask(s),this[Yr]()})}},zD=an();function wB(e,A){if(e[Jr]===0&&A.code!=="UND_ERR_INFO"&&A.code!=="UND_ERR_SOCKET"){Ce(e[qA]===e[he]);let t=e[VA].splice(e[he]);for(let r=0;r<t.length;r++){let s=t[r];ze.errorRequest(e,s,A)}Ce(e[Gr]===0)}}async function yB(e){Ce(!e[vt]),Ce(!e[tA]);let{host:A,hostname:t,protocol:r,port:s}=e[ee];if(t[0]==="["){let n=t.indexOf("]");Ce(n!==-1);let i=t.substring(1,n);Ce(dB.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[Fe],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[Fe],localAddress:e[xr]},(a,c)=>{a?o(a):i(c)})});if(e.destroyed){ze.destroy(n.on("error",hB),new mD);return}Ce(n);try{e[tA]=n.alpnProtocol==="h2"?await _D(e,n):await ZD(e,n)}catch(i){throw n.destroy().on("error",hB),i}e[vt]=!1,n[vD]=0,n[Aa]=e[Aa],n[RD]=e,n[UD]=null,Jt.connected.hasSubscribers&&Jt.connected.publish({connectParams:{host:A,hostname:t,protocol:r,port:s,version:e[tA]?.version,servername:e[Fe],localAddress:e[xr]},connector:e[Tr],socket:n}),e.emit("connect",e[ee],[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[Fe],localAddress:e[xr]},connector:e[Tr],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ce(e[Jr]===0);e[vr]>0&&e[VA][e[qA]].servername===e[Fe];){let i=e[VA][e[qA]++];ze.errorRequest(e,i,n)}else wB(e,n);e.emit("connectionError",e[ee],[e],n)}e[Yr]()}function uB(e){e[Se]=0,e.emit("drain",e[ee],[e])}function ta(e,A){e[Ke]!==2&&(e[Ke]=2,KD(e,A),e[Ke]=0,e[he]>256&&(e[VA].splice(0,e[he]),e[qA]-=e[he],e[he]=0))}function KD(e,A){for(;;){if(e.destroyed){Ce(e[vr]===0);return}if(e[Ne]&&!e[Gr]){e[Ne](),e[Ne]=null;return}if(e[tA]&&e[tA].resume(),e[$o])e[Se]=2;else if(e[Se]===2){A?(e[Se]=1,queueMicrotask(()=>uB(e))):uB(e);continue}if(e[vr]===0||e[Jr]>=(fB(e)||1))return;let t=e[VA][e[qA]];if(e[ee].protocol==="https:"&&e[Fe]!==t.servername){if(e[Jr]>0)return;e[Fe]=t.servername,e[tA]?.destroy(new DD("servername changed"),()=>{e[tA]=null,ta(e)})}if(e[vt])return;if(!e[tA]){yB(e);return}if(e[tA].destroyed||e[tA].busy(t))return;!t.aborted&&e[tA].write(t)?e[qA]++:e[VA].splice(e[qA],1)}}pB.exports=ea});var ra=d((jM,DB)=>{"use strict";E();var gn=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)}};DB.exports=class{constructor(){this.head=this.tail=new gn}isEmpty(){return this.head.isEmpty()}push(A){this.head.isFull()&&(this.head=this.head.next=new gn),this.head.push(A)}shift(){let A=this.tail,t=A.shift();return A.isEmpty()&&A.next!==null&&(this.tail=A.next),t}}});var kB=d((AL,mB)=>{"use strict";E();var{kFree:XD,kConnected:jD,kPending:$D,kQueued:A0,kRunning:e0,kSize:t0}=z(),Xe=Symbol("pool"),sa=class{constructor(A){this[Xe]=A}get connected(){return this[Xe][jD]}get free(){return this[Xe][XD]}get pending(){return this[Xe][$D]}get queued(){return this[Xe][A0]}get running(){return this[Xe][e0]}get size(){return this[Xe][t0]}};mB.exports=sa});var ga=d((tL,xB)=>{"use strict";E();var r0=Dt(),s0=ra(),{kConnected:na,kSize:RB,kRunning:FB,kPending:NB,kQueued:Hr,kBusy:n0,kFree:i0,kUrl:o0,kClose:a0,kDestroy:c0,kDispatch:g0}=z(),Q0=kB(),hA=Symbol("clients"),BA=Symbol("needDrain"),Vr=Symbol("queue"),ia=Symbol("closed resolve"),oa=Symbol("onDrain"),SB=Symbol("onConnect"),UB=Symbol("onDisconnect"),bB=Symbol("onConnectionError"),aa=Symbol("get dispatcher"),LB=S
Line truncated
|
||||
${r.count} ${r.noun} ${r.is} pending:
|
||||
|
||||
${A.format(t)}
|
||||
`.trim())}};qI.exports=gc});var Fn=d((tT,_I)=>{"use strict";E();var OI=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Yk}=J(),Gk=qt();ZI()===void 0&&PI(new Gk);function PI(e){if(!e||typeof e.dispatch!="function")throw new Yk("Argument agent must implement Agent");Object.defineProperty(globalThis,OI,{value:e,writable:!0,enumerable:!1,configurable:!1})}function ZI(){return globalThis[OI]}_I.exports={setGlobalDispatcher:PI,getGlobalDispatcher:ZI}});var Nn=d((nT,zI)=>{"use strict";E();zI.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 XI=d((oT,KI)=>{"use strict";E();var Jk=on();KI.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 Jk(t,i,s,n);return t(o,a)}}});var $I=d((cT,jI)=>{"use strict";E();var vk=un();jI.exports=e=>A=>function(r,s){return A(r,new vk({...r,retryOptions:{...e,...r.retryOptions}},{handler:s,dispatch:A}))}});var eC=d((QT,AC)=>{"use strict";E();var Hk=T(),{InvalidArgumentError:Vk,RequestAbortedError:qk}=J(),Wk=Nn(),Qc=class extends Wk{#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 Vk("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=Hk.parseHeaders(t)["content-length"];if(i!=null&&i>this.#A)throw new qk(`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 Ok({maxSize:e}={maxSize:1024*1024}){return A=>function(r,s){let{dumpMaxSize:n=e}=r,i=new Qc({maxSize:n},s);return A(r,i)}}AC.exports=Ok});var sC=d((BT,rC)=>{"use strict";E();var{isIP:Pk}=h("node:net"),{lookup:Zk}=h("node:dns"),_k=Nn(),{InvalidArgumentError:jt,InformationalError:zk}=J(),tC=Math.pow(2,31)-1,Ec=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 zk("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){Zk(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===tC?(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===tC?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 Bc(this,A,t)}},Bc=class extends _k{#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(Ii(A,s,aU)){cU(A,n)&&(t.retry=A.toString("utf8",n));return}if(Ii(A,s,oU)){gU(A,n)&&(t.id=A.toString("utf8",n));return}if(Ii(A,s,iU)){let i=A.toString("utf8",n);i.length>0&&(t.event=i)}}processEvent(A){A.retry&&eU(A.retry)&&(this.state.reconnectionTime=parseInt(A.retry,10)),A.id&&tU(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())}};xu.exports={EventSourceStream:tg}});var Ou=d((wx,Wu)=>{"use strict";E();var{pipeline:QU}=h("node:stream"),{fetching:EU}=es(),{makeRequest:BU}=er(),{webidl:we}=aA(),{EventSourceStream:lU}=Yu(),{parseMIMEType:IU}=IA(),{createFastMessageEvent:CU}=or(),{isNetworkError:Gu}=$r(),{delay:hU}=Ag(),{kEnumerableProperty:Bt}=T(),{environmentSettingsObject:Ju}=wA(),vu=!1,Hu=3e3,Is=0,Vu=1,Cs=2,uU="anonymous",dU="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(),we.util.markAsUncloneable(this);let r="EventSource constructor";we.argumentLengthCheck(arguments,1,r),vu||(vu=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),A=we.converters.USVString(A,r,"url"),t=we.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#o={lastEventId:"",reconnectionTime:Hu};let s=Ju,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=uU;t.withCredentials&&(i=dU,this.#t=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Ju.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=BU(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=>{Gu(r)&&(this.dispatchEvent(new Event("error")),this.close()),this.#a()};A.processResponseEndOfBody=t,A.processResponse=r=>{if(Gu(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?IU(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=Vu,this.dispatchEvent(new Event("open")),this.#o.origin=r.urlList[r.urlList.length-1].origin;let o=new lU({eventSourceSettings:this.#o,push:a=>{this.dispatchEvent(CU(a.type,a.options))}});QU(r.body.stream,o,a=>{a?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#r=EU(A)}async#a(){this.#n!==Cs&&(this.#n=Is,this.dispatchEvent(new Event("error")),await hU(this.#o.rec
Line truncated
|
||||
`).filter(r=>r!=="");return A&&A.trimWhitespace===!1?t:t.map(r=>r.trim())}function Bd(e){process.exitCode=Eg.Failure,fb(e)}function fb(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 ld(e,A={}){Cr("notice",ws(A),e instanceof Error?e.toString():e)}function wb(e){Ni("group",e)}function yb(){Ni("endgroup")}function Id(e,A){return db(this,void 0,void 0,function*(){wb(e);let t;try{t=yield A()}finally{yb()}return t})}E();import Cd from"node:path";var Di=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=YA("env-regex"),t=A?new RegExp(A):this.options.envRegex,r=Ed("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:Cd.resolve(this._configurationFile.value)}:null}getDockerImage(){return YA("renovate-image")||null}getVersion(){return YA("renovate-version")||null}mountDockerSocket(){return YA("mount-docker-socket")==="true"}dockerSocketHostPath(){return YA("docker-socket-host-path")||"/var/run/docker.sock"}getDockerCmdFile(){let A=YA("docker-cmd-file");return A&&A!==""?Cd.resolve(A):null}getDockerUser(){return YA("docker-user")||null}getDockerVolumeMounts(){return YA("docker-volumes").split(";").map(A=>A.trim()).filter(A=>!!A)}getDockerNetwork(){return YA("docker-network")}toEnvironmentVariables(){return[...this._environmentVariables].map(([A,t])=>({key:A,value:t}))}get(A,t,r){let s=YA(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 mi=class e{static image="ghcr.io/renovatebot/renovate";static version="44";dockerImage;fullTag;constructor(A){let t=A.getDockerImage(),r=A.getVersion();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.dockerImage=t,this.fullTag=r}image(){return`${this.dockerImage}:${this.fullTag}`}};import Bg from"node:fs/promises";import lg from"node:path";var ki=class e{constructor(A){this.input=A;this.docker=new mi(A)}input;static dockerGroupRegex=/^docker:x:(?<groupId>[1-9][0-9]*):/m;configFileMountDir="/github-action";docker;async runDockerContainerForVersion(){let A=`docker run --rm ${this.docker.image()} --version`,{exitCode:t,stdout:r}=await Qg(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}`]),t=this.input.configurationFile();if(t!==null){let c=lg.basename(t.value),g=lg.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 Bg.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=`/${lg.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 gg(o);a!==0&&new Error(`'docker run' failed with exit code ${a}.`)}async getDockerGroupId(){let A="/etc/group",t=await Bg.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 validateArguments(){if(/\s/.test(this.input.token.value))throw new Error("Token MUST NOT contain whitespace");let A=this.input.configurationFile();if(A!==null&&!(await Bg.stat(A.value)).isFile())throw new Error(`configurLine 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.28.1/node_modules/undici/lib/core/symbols.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/errors.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/constants.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/tree.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/util.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/diagnostics.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/request.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/util/timers.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/core/connect.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/llhttp/utils.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/llhttp/constants.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/constants.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/global.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/util.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/file.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/web/fetch/body.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/client.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/pool.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/agent.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/handler/retry-handler.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/readable.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/util.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/api-request.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/abort-signal.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/api-stream.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/api-pipeline.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/api-upgrade.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/api-connect.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/api/index.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/mock-errors.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/mock-utils.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/mock-client.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/mock-pool.js", "../node_modules/.pnpm/undici@6.28.1/node_modules/undici/lib/mock/pluralizer.js", "../node_modules/.pnpm/undici@6.28.1/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"
|
||||
}
|
||||
|
||||
+26
-33
@@ -1,33 +1,31 @@
|
||||
{
|
||||
"name": "github-action",
|
||||
"version": "46.3.3",
|
||||
"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.2",
|
||||
"@commitlint/config-conventional": "21.2.2",
|
||||
"@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.9",
|
||||
"@semantic-release/npm": "13.1.5",
|
||||
"@tsconfig/node24": "24.0.5",
|
||||
"@tsconfig/strictest": "2.0.8",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"@types/node": "24.13.4",
|
||||
"@semantic-release/github": "12.0.11",
|
||||
"@semantic-release/npm": "13.2.0",
|
||||
"@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.12.0",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "17.5.1",
|
||||
"npm-run-all2": "9.0.3",
|
||||
"prettier": "3.9.6",
|
||||
"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.70.0"
|
||||
"typescript": "5.9.3"
|
||||
},
|
||||
"packageManager": "pnpm@10.34.5",
|
||||
"engines": {
|
||||
"node": ">=24.11.0",
|
||||
"pnpm": "^10.0.0"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.34.9"
|
||||
}
|
||||
Generated
+836
-1189
File diff suppressed because it is too large.
Load diff
+11
-7
@@ -1,17 +1,22 @@
|
||||
import { info, warning } from '@actions/core';
|
||||
import type { Input } from './input';
|
||||
import { warning } from '@actions/core';
|
||||
|
||||
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 dockerImage: string;
|
||||
private readonly fullTag: string;
|
||||
private readonly fullImageReference: string;
|
||||
|
||||
constructor(input: Input) {
|
||||
let image = input.getDockerImage();
|
||||
let version = input.getVersion();
|
||||
|
||||
if (image?.includes(':')) {
|
||||
info(`Docker image looks like it contains a version, using that as the image itself`);
|
||||
this.fullImageReference = image;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!image) {
|
||||
warning(`No Docker image specified, using ${Docker.image}`);
|
||||
image = Docker.image;
|
||||
@@ -21,11 +26,10 @@ export class Docker {
|
||||
version = Docker.version;
|
||||
}
|
||||
|
||||
this.dockerImage = image;
|
||||
this.fullTag = version;
|
||||
this.fullImageReference = `${image}:${version}`;
|
||||
}
|
||||
|
||||
image(): string {
|
||||
return `${this.dockerImage}:${this.fullTag}`;
|
||||
return this.fullImageReference;
|
||||
}
|
||||
}
|
||||
+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(
|
||||
' ',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+16
-16
@@ -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;
|
||||
@@ -15,11 +18,11 @@ export class Renovate {
|
||||
}
|
||||
|
||||
async runDockerContainerForVersion(): Promise<string> {
|
||||
const command = `docker run --rm ${this.docker.image()} --version`;
|
||||
const command = `docker run --env FORCE_COLOR=3 --rm ${this.docker.image()} --version`;
|
||||
|
||||
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,7 +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}`]);
|
||||
.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) {
|
||||
@@ -47,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(
|
||||
@@ -91,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}.`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,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