Skip to content

Commit ea881e6

Browse files
committed
chore(debug): sort ApiRequestDebugInfo properties alphabetically
1 parent 0716240 commit ea881e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/cli/src/utils/debug.mts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ import {
2929
} from '@socketsecurity/lib/debug'
3030

3131
export type ApiRequestDebugInfo = {
32-
method?: string | undefined
33-
url?: string | undefined
34-
headers?: Record<string, string> | undefined
3532
durationMs?: number | undefined
33+
headers?: Record<string, string> | undefined
34+
method?: string | undefined
3635
// ISO-8601 timestamp of when the request was initiated. Useful when
3736
// correlating failures with server-side logs.
3837
requestedAt?: string | undefined
38+
// Response body string; truncated by the helper to a safe length so
39+
// logs don't balloon on megabyte payloads.
40+
responseBody?: string | undefined
3941
// Response headers from the failed request. The helper extracts the
4042
// cf-ray trace id as a first-class field so support can look it up in
4143
// the Cloudflare dashboard without eyeballing the whole header dump.
4244
responseHeaders?: Record<string, string> | undefined
43-
// Response body string; truncated by the helper to a safe length so
44-
// logs don't balloon on megabyte payloads.
45-
responseBody?: string | undefined
45+
url?: string | undefined
4646
}
4747

4848
const RESPONSE_BODY_TRUNCATE_LENGTH = 2_000

0 commit comments

Comments
 (0)