Skip to content

Commit 78c3ac5

Browse files
committed
style(sdk): organize imports alphabetically
Moved sanitizeHeaders import to be grouped with other module imports, improving code organization and readability.
1 parent d769c00 commit 78c3ac5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/file-upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Readable } from 'node:stream'
77
import { normalizePath } from '@socketsecurity/lib/paths/normalize'
88

99
import { getHttpModule, getResponse } from './http-client'
10+
import { sanitizeHeaders } from './utils/header-sanitization'
1011

1112
import type { RequestOptions, SocketSdkOptions } from './types'
1213
import type { ReadStream } from 'node:fs'
@@ -16,7 +17,6 @@ import type { RequestOptions as HttpsRequestOptions } from 'node:https'
1617
/**
1718
* Array of sensitive header names that should be redacted in logs
1819
*/
19-
import { sanitizeHeaders } from './utils/header-sanitization'
2020

2121
/**
2222
* Create multipart form-data body parts for file uploads.

src/http-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { jsonParse } from '@socketsecurity/lib/json'
1111
import { perfTimer } from '@socketsecurity/lib/performance'
1212

1313
import { MAX_RESPONSE_SIZE } from './constants'
14+
import { sanitizeHeaders } from './utils/header-sanitization'
1415

1516
import type {
1617
RequestOptions,
@@ -24,7 +25,6 @@ import type { ClientRequest, IncomingMessage } from 'node:http'
2425
/**
2526
* Array of sensitive header names that should be redacted in logs
2627
*/
27-
import { sanitizeHeaders } from './utils/header-sanitization'
2828

2929
/**
3030
* HTTP response error for Socket API requests.

0 commit comments

Comments
 (0)