Skip to content

Commit 53c09d0

Browse files
chore(api): sort imports in public-response.ts
1 parent 0740779 commit 53c09d0

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

lib/api/public-response.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* to use `jsonResponse` / `paginatedResponse` directly.
1414
*/
1515
import { corsHeaders } from "./cors";
16-
import { jsonResponse } from "./response";
1716
import { INTERNAL_FIELDS } from "./internal-fields";
17+
import { jsonResponse } from "./response";
1818

1919
/**
2020
* Remove internal fields from an object in-place-safe fashion. Returns a new
@@ -53,11 +53,7 @@ export function stripInternal<T>(input: T, deep = true): T {
5353
* @param status - HTTP status code (default 200).
5454
* @param headers - Additional headers to merge in (CORS already included).
5555
*/
56-
export function publicJsonResponse<T>(
57-
data: T,
58-
status: number = 200,
59-
headers: Record<string, string> = {}
60-
): Response {
56+
export function publicJsonResponse<T>(data: T, status: number = 200, headers: Record<string, string> = {}): Response {
6157
const sanitized = stripInternal(data);
6258
return jsonResponse({ data: sanitized }, status, { ...corsHeaders(), ...headers });
6359
}

0 commit comments

Comments
 (0)