style: format prettier violations

This commit is contained in:
xixu-me committed 2026-03-06 19:45:03 +08:00
1 parent 71e239060c
commit 4546821023
2 files changed
+6 -2

No files matched your search

+4 -1
View File
@@ -83,7 +83,10 @@ async function handleRequest(request, env, ctx) {
if (!response) {
// Handle Docker authentication explicitly
if (isDocker && (url.pathname === '/v2/auth' || /^\/cr\/[^/]+\/v2\/auth\/?$/.test(url.pathname))) {
if (
isDocker &&
(url.pathname === '/v2/auth' || /^\/cr\/[^/]+\/v2\/auth\/?$/.test(url.pathname))
) {
response = await handleDockerAuth(request, url, config);
} else {
// Platform detection using transform patterns
+2 -1
View File
@@ -46,7 +46,8 @@ describe('Docker Authentication', () => {
return new Response('', {
status: 401,
headers: {
'WWW-Authenticate': 'Bearer realm="https://auth.docker.io/token",service="registry.docker.io"'
'WWW-Authenticate':
'Bearer realm="https://auth.docker.io/token",service="registry.docker.io"'
}
});
}