feat: update docs (#569)

This commit is contained in:
Dream Hunter
2025-01-22 23:14:38 +08:00
committed by GitHub
parent 37614ce6fa
commit 095951ab45
21 changed files with 607 additions and 540 deletions

View File

@@ -11,17 +11,17 @@
"build": "wrangler deploy --dry-run --outdir dist --minify"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20250109.0",
"@cloudflare/workers-types": "^4.20250121.0",
"@eslint/js": "9.18.0",
"@simplewebauthn/types": "10.0.0",
"eslint": "9.18.0",
"globals": "^15.14.0",
"typescript-eslint": "^8.20.0",
"wrangler": "^3.103.2"
"typescript-eslint": "^8.21.0",
"wrangler": "^3.104.0"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.731.1",
"@aws-sdk/s3-request-presigner": "^3.731.1",
"@aws-sdk/client-s3": "^3.732.0",
"@aws-sdk/s3-request-presigner": "^3.732.0",
"@simplewebauthn/server": "10.0.1",
"hono": "^4.6.17",
"mimetext": "^3.0.27",

160
worker/pnpm-lock.yaml generated
View File

@@ -14,11 +14,11 @@ importers:
.:
dependencies:
'@aws-sdk/client-s3':
specifier: ^3.731.1
version: 3.731.1
specifier: ^3.732.0
version: 3.732.0
'@aws-sdk/s3-request-presigner':
specifier: ^3.731.1
version: 3.731.1
specifier: ^3.732.0
version: 3.732.0
'@simplewebauthn/server':
specifier: 10.0.1
version: 10.0.1
@@ -39,8 +39,8 @@ importers:
version: 4.16.3(patch_hash=7d0a1784bb35f50fee25f26a14017734b9461612c635e71734b59527280c9563)
devDependencies:
'@cloudflare/workers-types':
specifier: ^4.20250109.0
version: 4.20250109.0
specifier: ^4.20250121.0
version: 4.20250121.0
'@eslint/js':
specifier: 9.18.0
version: 9.18.0
@@ -54,11 +54,11 @@ importers:
specifier: ^15.14.0
version: 15.14.0
typescript-eslint:
specifier: ^8.20.0
version: 8.20.0(eslint@9.18.0)(typescript@5.4.5)
specifier: ^8.21.0
version: 8.21.0(eslint@9.18.0)(typescript@5.4.5)
wrangler:
specifier: ^3.103.2
version: 3.103.2(@cloudflare/workers-types@4.20250109.0)
specifier: ^3.104.0
version: 3.104.0(@cloudflare/workers-types@4.20250121.0)
packages:
@@ -85,8 +85,8 @@ packages:
'@aws-crypto/util@5.2.0':
resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}
'@aws-sdk/client-s3@3.731.1':
resolution: {integrity: sha512-Ab2PA/8Th6JkurCkxnQJZHPE/JnnSsX/XHQzirkQb+JpKOyWMRC/YZUBfAaiwhxqX65RHgklrwil+UbFl4TtAQ==}
'@aws-sdk/client-s3@3.732.0':
resolution: {integrity: sha512-ITPcG40qdiLXZRvNQ8V3u4yB16afcdIabdRBN6Blba31rk0MfeBGWwah0+lLSTFo1ZIrIQvBl6PAQ7mO0mkKLg==}
engines: {node: '>=18.0.0'}
'@aws-sdk/client-sso@3.731.0':
@@ -133,8 +133,8 @@ packages:
resolution: {integrity: sha512-oY4nsY/mb5O5eZCzIuWpyvzO45Bi6UBtE48IaJsoyVctagA1l8hB66aczH9M1NHNjvbS4Beu1agwh3Nyb1eJug==}
engines: {node: '>=18.0.0'}
'@aws-sdk/middleware-flexible-checksums@3.731.0':
resolution: {integrity: sha512-LMs/rndovYjYSntSYyPE/PIl4iHNiquaU0lpDqpQc9iTgQcNbjdriSUWpibgu1jXlGBpBYCqttNkxmEThbbWxA==}
'@aws-sdk/middleware-flexible-checksums@3.732.0':
resolution: {integrity: sha512-MIbF6cYWg5noRO1kRZNC0vewj6qzSYL/BGNlPxRQcqb6egUiGrhPEi8Y/qqweB7MlBHsqSO5YNPwH/Py8ToSVw==}
engines: {node: '>=18.0.0'}
'@aws-sdk/middleware-host-header@3.731.0':
@@ -173,8 +173,8 @@ packages:
resolution: {integrity: sha512-XlDpRNkDVHF59f07JmkuAidEv//m3hT6/JL85h0l3+zrpaRWhf8n8lVUyAPNq35ZujK8AcorYM+93u7hdWsliQ==}
engines: {node: '>=18.0.0'}
'@aws-sdk/s3-request-presigner@3.731.1':
resolution: {integrity: sha512-GdG0pXkcTgBpenouB834FoCHyLaivV2rGQn7OEQBiT8SBaTxSackZ6tGlJQAlzZQkiQfE/NePUJU7DczJZZvrg==}
'@aws-sdk/s3-request-presigner@3.732.0':
resolution: {integrity: sha512-aIzl8UDZp1fNS6haLKmyHcLXg1vWhu9Yimz/9W1xElGB3XZc0LsTlp57yVTmx9ROYo3kAh+Z6RhF73bESTOmjA==}
engines: {node: '>=18.0.0'}
'@aws-sdk/signature-v4-multi-region@3.731.0':
@@ -263,8 +263,8 @@ packages:
cpu: [x64]
os: [win32]
'@cloudflare/workers-types@4.20250109.0':
resolution: {integrity: sha512-Y1zgSaEOOevl9ORpzgMcm4j535p3nK2lrblHHvYM2yxR50SBKGh+wvkRFAIxWRfjUGZEU+Fp6923EGioDBbobA==}
'@cloudflare/workers-types@4.20250121.0':
resolution: {integrity: sha512-2bBosmudcwvUOKzuCL/Jum18LDh3QoU0QnTNMXIgcVwuq3LaNzyZnOW14bFXPhLU/84ZjNO3zO5R/U11Zgag2Q==}
'@cspotcode/source-map-support@0.8.1':
resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
@@ -762,51 +762,51 @@ packages:
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
'@typescript-eslint/eslint-plugin@8.20.0':
resolution: {integrity: sha512-naduuphVw5StFfqp4Gq4WhIBE2gN1GEmMUExpJYknZJdRnc+2gDzB8Z3+5+/Kv33hPQRDGzQO/0opHE72lZZ6A==}
'@typescript-eslint/eslint-plugin@8.21.0':
resolution: {integrity: sha512-eTH+UOR4I7WbdQnG4Z48ebIA6Bgi7WO8HvFEneeYBxG8qCOYgTOFPSg6ek9ITIDvGjDQzWHcoWHCDO2biByNzA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
'@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0
eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/parser@8.20.0':
resolution: {integrity: sha512-gKXG7A5HMyjDIedBi6bUrDcun8GIjnI8qOwVLiY3rx6T/sHP/19XLJOnIq/FgQvWLHja5JN/LSE7eklNBr612g==}
'@typescript-eslint/parser@8.21.0':
resolution: {integrity: sha512-Wy+/sdEH9kI3w9civgACwabHbKl+qIOu0uFZ9IMKzX3Jpv9og0ZBJrZExGrPpFAY7rWsXuxs5e7CPPP17A4eYA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/scope-manager@8.20.0':
resolution: {integrity: sha512-J7+VkpeGzhOt3FeG1+SzhiMj9NzGD/M6KoGn9f4dbz3YzK9hvbhVTmLj/HiTp9DazIzJ8B4XcM80LrR9Dm1rJw==}
'@typescript-eslint/scope-manager@8.21.0':
resolution: {integrity: sha512-G3IBKz0/0IPfdeGRMbp+4rbjfSSdnGkXsM/pFZA8zM9t9klXDnB/YnKOBQ0GoPmoROa4bCq2NeHgJa5ydsQ4mA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/type-utils@8.20.0':
resolution: {integrity: sha512-bPC+j71GGvA7rVNAHAtOjbVXbLN5PkwqMvy1cwGeaxUoRQXVuKCebRoLzm+IPW/NtFFpstn1ummSIasD5t60GA==}
'@typescript-eslint/type-utils@8.21.0':
resolution: {integrity: sha512-95OsL6J2BtzoBxHicoXHxgk3z+9P3BEcQTpBKriqiYzLKnM2DeSqs+sndMKdamU8FosiadQFT3D+BSL9EKnAJQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/types@8.20.0':
resolution: {integrity: sha512-cqaMiY72CkP+2xZRrFt3ExRBu0WmVitN/rYPZErA80mHjHx/Svgp8yfbzkJmDoQ/whcytOPO9/IZXnOc+wigRA==}
'@typescript-eslint/types@8.21.0':
resolution: {integrity: sha512-PAL6LUuQwotLW2a8VsySDBwYMm129vFm4tMVlylzdoTybTHaAi0oBp7Ac6LhSrHHOdLM3efH+nAR6hAWoMF89A==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/typescript-estree@8.20.0':
resolution: {integrity: sha512-Y7ncuy78bJqHI35NwzWol8E0X7XkRVS4K4P4TCyzWkOJih5NDvtoRDW4Ba9YJJoB2igm9yXDdYI/+fkiiAxPzA==}
'@typescript-eslint/typescript-estree@8.21.0':
resolution: {integrity: sha512-x+aeKh/AjAArSauz0GiQZsjT8ciadNMHdkUSwBB9Z6PrKc/4knM4g3UfHml6oDJmKC88a6//cdxnO/+P2LkMcg==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/utils@8.20.0':
resolution: {integrity: sha512-dq70RUw6UK9ei7vxc4KQtBRk7qkHZv447OUZ6RPQMQl71I3NZxQJX/f32Smr+iqWrB02pHKn2yAdHBb0KNrRMA==}
'@typescript-eslint/utils@8.21.0':
resolution: {integrity: sha512-xcXBfcq0Kaxgj7dwejMbFyq7IOHgpNMtVuDveK7w3ZGwG9owKzhALVwKpTF2yrZmEwl9SWdetf3fxNzJQaVuxw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: '>=4.8.4 <5.8.0'
'@typescript-eslint/visitor-keys@8.20.0':
resolution: {integrity: sha512-v/BpkeeYAsPkKCkR8BDwcno0llhzWVqPOamQrAEMdpZav2Y9OVjd9dwJyBLJWwf335B5DmlifECIkZRJCaGaHA==}
'@typescript-eslint/visitor-keys@8.21.0':
resolution: {integrity: sha512-BkLMNpdV6prozk8LlyK/SOoWLmUFi+ZD+pcqti9ILCbVvHGk1ui1g4jJOc2WDLaeExz2qWwojxlPce5PljcT3w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
abbrev@2.0.0:
@@ -1534,8 +1534,8 @@ packages:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
typescript-eslint@8.20.0:
resolution: {integrity: sha512-Kxz2QRFsgbWj6Xcftlw3Dd154b3cEPFqQC+qMZrMypSijPd4UanKKvoKDrJ4o8AIfZFKAF+7sMaEIR8mTElozA==}
typescript-eslint@8.21.0:
resolution: {integrity: sha512-txEKYY4XMKwPXxNkN8+AxAdX6iIJAPiJbHE/FpQccs/sxw8Lf26kqwC3cn0xkHlW8kEbLhkhCsjWuMveaY9Rxw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
@@ -1553,8 +1553,8 @@ packages:
resolution: {integrity: sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA==}
engines: {node: '>=14.0'}
unenv-nightly@2.0.0-20250109-100802-88ad671:
resolution: {integrity: sha512-Uij6gODNNNNsNBoDlnaMvZI99I6YlVJLRfYH8AOLMlbFrW7k2w872v9VLuIdch2vF8QBeSC4EftIh5sG4ibzdA==}
unenv@2.0.0-rc.0:
resolution: {integrity: sha512-H0kl2w8jFL/FAk0xvjVing4bS3jd//mbg1QChDnn58l9Sc5RtduaKmLAL8n+eBw5jJo8ZjYV7CrEGage5LAOZQ==}
uri-js@4.4.1:
resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
@@ -1583,8 +1583,8 @@ packages:
engines: {node: '>=16'}
hasBin: true
wrangler@3.103.2:
resolution: {integrity: sha512-eYcnubPhPBU1QMZYTam+vfCLpaQx+x1EWA6nFbLhid1eqNDAk1dNwNlbo+ZryrOHDEX3XlOxn2Z3Fx8vVv3hKw==}
wrangler@3.104.0:
resolution: {integrity: sha512-txxgkKZwPQrX1PDgY+ATWnnx4GSeNxUrnBumudWPRmXG0JdLzCf09R+723slMMT1m+CKQXU1KvuUHc/GxTnTyA==}
engines: {node: '>=16.17.0'}
hasBin: true
peerDependencies:
@@ -1672,7 +1672,7 @@ snapshots:
'@smithy/util-utf8': 2.3.0
tslib: 2.8.1
'@aws-sdk/client-s3@3.731.1':
'@aws-sdk/client-s3@3.732.0':
dependencies:
'@aws-crypto/sha1-browser': 5.2.0
'@aws-crypto/sha256-browser': 5.2.0
@@ -1681,7 +1681,7 @@ snapshots:
'@aws-sdk/credential-provider-node': 3.731.1
'@aws-sdk/middleware-bucket-endpoint': 3.731.0
'@aws-sdk/middleware-expect-continue': 3.731.0
'@aws-sdk/middleware-flexible-checksums': 3.731.0
'@aws-sdk/middleware-flexible-checksums': 3.732.0
'@aws-sdk/middleware-host-header': 3.731.0
'@aws-sdk/middleware-location-constraint': 3.731.0
'@aws-sdk/middleware-logger': 3.731.0
@@ -1896,7 +1896,7 @@ snapshots:
'@smithy/types': 4.1.0
tslib: 2.8.1
'@aws-sdk/middleware-flexible-checksums@3.731.0':
'@aws-sdk/middleware-flexible-checksums@3.732.0':
dependencies:
'@aws-crypto/crc32': 5.2.0
'@aws-crypto/crc32c': 5.2.0
@@ -2023,7 +2023,7 @@ snapshots:
'@smithy/util-middleware': 4.0.1
tslib: 2.8.1
'@aws-sdk/s3-request-presigner@3.731.1':
'@aws-sdk/s3-request-presigner@3.732.0':
dependencies:
'@aws-sdk/signature-v4-multi-region': 3.731.0
'@aws-sdk/types': 3.731.0
@@ -2129,7 +2129,7 @@ snapshots:
'@cloudflare/workerd-windows-64@1.20241230.0':
optional: true
'@cloudflare/workers-types@4.20250109.0': {}
'@cloudflare/workers-types@4.20250121.0': {}
'@cspotcode/source-map-support@0.8.1':
dependencies:
@@ -2706,14 +2706,14 @@ snapshots:
'@types/json-schema@7.0.15': {}
'@typescript-eslint/eslint-plugin@8.20.0(@typescript-eslint/parser@8.20.0(eslint@9.18.0)(typescript@5.4.5))(eslint@9.18.0)(typescript@5.4.5)':
'@typescript-eslint/eslint-plugin@8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.4.5))(eslint@9.18.0)(typescript@5.4.5)':
dependencies:
'@eslint-community/regexpp': 4.12.1
'@typescript-eslint/parser': 8.20.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/scope-manager': 8.20.0
'@typescript-eslint/type-utils': 8.20.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/utils': 8.20.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/visitor-keys': 8.20.0
'@typescript-eslint/parser': 8.21.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/scope-manager': 8.21.0
'@typescript-eslint/type-utils': 8.21.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/visitor-keys': 8.21.0
eslint: 9.18.0
graphemer: 1.4.0
ignore: 5.3.2
@@ -2723,27 +2723,27 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/parser@8.20.0(eslint@9.18.0)(typescript@5.4.5)':
'@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.4.5)':
dependencies:
'@typescript-eslint/scope-manager': 8.20.0
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/typescript-estree': 8.20.0(typescript@5.4.5)
'@typescript-eslint/visitor-keys': 8.20.0
'@typescript-eslint/scope-manager': 8.21.0
'@typescript-eslint/types': 8.21.0
'@typescript-eslint/typescript-estree': 8.21.0(typescript@5.4.5)
'@typescript-eslint/visitor-keys': 8.21.0
debug: 4.4.0
eslint: 9.18.0
typescript: 5.4.5
transitivePeerDependencies:
- supports-color
'@typescript-eslint/scope-manager@8.20.0':
'@typescript-eslint/scope-manager@8.21.0':
dependencies:
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/visitor-keys': 8.20.0
'@typescript-eslint/types': 8.21.0
'@typescript-eslint/visitor-keys': 8.21.0
'@typescript-eslint/type-utils@8.20.0(eslint@9.18.0)(typescript@5.4.5)':
'@typescript-eslint/type-utils@8.21.0(eslint@9.18.0)(typescript@5.4.5)':
dependencies:
'@typescript-eslint/typescript-estree': 8.20.0(typescript@5.4.5)
'@typescript-eslint/utils': 8.20.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/typescript-estree': 8.21.0(typescript@5.4.5)
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.4.5)
debug: 4.4.0
eslint: 9.18.0
ts-api-utils: 2.0.0(typescript@5.4.5)
@@ -2751,12 +2751,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/types@8.20.0': {}
'@typescript-eslint/types@8.21.0': {}
'@typescript-eslint/typescript-estree@8.20.0(typescript@5.4.5)':
'@typescript-eslint/typescript-estree@8.21.0(typescript@5.4.5)':
dependencies:
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/visitor-keys': 8.20.0
'@typescript-eslint/types': 8.21.0
'@typescript-eslint/visitor-keys': 8.21.0
debug: 4.4.0
fast-glob: 3.3.3
is-glob: 4.0.3
@@ -2767,20 +2767,20 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@typescript-eslint/utils@8.20.0(eslint@9.18.0)(typescript@5.4.5)':
'@typescript-eslint/utils@8.21.0(eslint@9.18.0)(typescript@5.4.5)':
dependencies:
'@eslint-community/eslint-utils': 4.4.1(eslint@9.18.0)
'@typescript-eslint/scope-manager': 8.20.0
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/typescript-estree': 8.20.0(typescript@5.4.5)
'@typescript-eslint/scope-manager': 8.21.0
'@typescript-eslint/types': 8.21.0
'@typescript-eslint/typescript-estree': 8.21.0(typescript@5.4.5)
eslint: 9.18.0
typescript: 5.4.5
transitivePeerDependencies:
- supports-color
'@typescript-eslint/visitor-keys@8.20.0':
'@typescript-eslint/visitor-keys@8.21.0':
dependencies:
'@typescript-eslint/types': 8.20.0
'@typescript-eslint/types': 8.21.0
eslint-visitor-keys: 4.2.0
abbrev@2.0.0: {}
@@ -3519,11 +3519,11 @@ snapshots:
dependencies:
prelude-ls: 1.2.1
typescript-eslint@8.20.0(eslint@9.18.0)(typescript@5.4.5):
typescript-eslint@8.21.0(eslint@9.18.0)(typescript@5.4.5):
dependencies:
'@typescript-eslint/eslint-plugin': 8.20.0(@typescript-eslint/parser@8.20.0(eslint@9.18.0)(typescript@5.4.5))(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/parser': 8.20.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/utils': 8.20.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/eslint-plugin': 8.21.0(@typescript-eslint/parser@8.21.0(eslint@9.18.0)(typescript@5.4.5))(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/parser': 8.21.0(eslint@9.18.0)(typescript@5.4.5)
'@typescript-eslint/utils': 8.21.0(eslint@9.18.0)(typescript@5.4.5)
eslint: 9.18.0
typescript: 5.4.5
transitivePeerDependencies:
@@ -3537,7 +3537,7 @@ snapshots:
dependencies:
'@fastify/busboy': 2.1.1
unenv-nightly@2.0.0-20250109-100802-88ad671:
unenv@2.0.0-rc.0:
dependencies:
defu: 6.1.4
mlly: 1.7.4
@@ -3572,7 +3572,7 @@ snapshots:
'@cloudflare/workerd-linux-arm64': 1.20241230.0
'@cloudflare/workerd-windows-64': 1.20241230.0
wrangler@3.103.2(@cloudflare/workers-types@4.20250109.0):
wrangler@3.104.0(@cloudflare/workers-types@4.20250121.0):
dependencies:
'@cloudflare/kv-asset-handler': 0.3.4
'@esbuild-plugins/node-globals-polyfill': 0.2.3(esbuild@0.17.19)
@@ -3581,10 +3581,10 @@ snapshots:
esbuild: 0.17.19
miniflare: 3.20241230.2
path-to-regexp: 6.3.0
unenv: unenv-nightly@2.0.0-20250109-100802-88ad671
unenv: 2.0.0-rc.0
workerd: 1.20241230.0
optionalDependencies:
'@cloudflare/workers-types': 4.20250109.0
'@cloudflare/workers-types': 4.20250121.0
fsevents: 2.3.3
transitivePeerDependencies:
- bufferutil

View File

@@ -13,7 +13,7 @@ export default {
"HAS_ADMIN_PASSWORDS": getAdminPasswords(c).length,
"ANNOUNCEMENT": getStringValue(c.env.ANNOUNCEMENT),
"PREFIX": c.env.PREFIX,
"PREFIX": getStringValue(c.env.PREFIX),
"ADDRESS_CHECK_REGEX": getStringValue(c.env.ADDRESS_CHECK_REGEX),
"ADDRESS_REGEX": getStringValue(c.env.ADDRESS_REGEX),
"MIN_ADDRESS_LEN": getIntValue(c.env.MIN_ADDRESS_LEN, 1),

View File

@@ -18,7 +18,7 @@ api.get('/open_api/settings', async (c) => {
return c.json({
"title": c.env.TITLE,
"announcement": getStringValue(c.env.ANNOUNCEMENT),
"prefix": c.env.PREFIX,
"prefix": getStringValue(c.env.PREFIX),
"addressRegex": getStringValue(c.env.ADDRESS_REGEX),
"minAddressLen": getIntValue(c.env.MIN_ADDRESS_LEN, 1),
"maxAddressLen": getIntValue(c.env.MAX_ADDRESS_LEN, 30),

View File

@@ -321,13 +321,13 @@ export const commonGetUserRole = async (
export const getAddressPrefix = async (c: Context<HonoCustomType>): Promise<string | undefined> => {
const user = c.get("userPayload");
if (!user) {
return c.env.PREFIX;
return getStringValue(c.env.PREFIX);
}
const user_role = await commonGetUserRole(c, user.user_id);
if (typeof user_role?.prefix === "string") {
return user_role.prefix;
}
return c.env.PREFIX;
return getStringValue(c.env.PREFIX);
}
export const getAllowDomains = async (c: Context<HonoCustomType>): Promise<string[]> => {

View File

@@ -85,9 +85,9 @@ ENABLE_AUTO_REPLY = false
# remove all attachment, mail maybe mising some information due to parsing
# REMOVE_ALL_ATTACHMENT = true
# Calling other woker to process email
#ENABLE_ANOTHER_WORKER = false
#ANOTHER_WORKER_LIST ="""
#[
# ENABLE_ANOTHER_WORKER = false
# ANOTHER_WORKER_LIST = """
# [
# {
# "binding":"AUTH_INBOX",
# "method":"rpcEmail",
@@ -96,8 +96,8 @@ ENABLE_AUTO_REPLY = false
# "account","activation","verify","verification","activate","confirmation","email","code","validate","registration","login","code","expire","confirm"
# ]
# }
#]
#"""
# ]
# """
[[d1_databases]]
binding = "DB"