Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
keturiosakys committed Dec 2, 2024
1 parent 8ba7b9c commit c6be307
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
6 changes: 1 addition & 5 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@
"access": "public"
},
"license": "MIT or Apache 2",
"keywords": [
"hono",
"local",
"debugging"
],
"keywords": ["hono", "local", "debugging"],
"bin": {
"fpx": "bin/cli.js"
},
Expand Down
7 changes: 5 additions & 2 deletions api/src/lib/ai/fp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function generateRequestWithFp({
middleware,
middlewareContext,
}: GenerateRequestOptions): Promise<{
// biome-ignore lint/suspicious/noExplicitAny: TODO: replace the temporary type cast with a proper return type
// biome-ignore lint/suspicious/noExplicitAny: TODO: replace the temporary type cast with a proper return type
data: any;
error?: { message: string } | null;
}> {
Expand Down Expand Up @@ -64,5 +64,8 @@ export async function generateRequestWithFp({
});

// biome-ignore lint/suspicious/noExplicitAny: TODO: replace the temporary type cast with a proper return type
return response.json() as Promise<{ data: any; error?: { message: string } | null }>;
return response.json() as Promise<{
data: any;
error?: { message: string } | null;
}>;
}
6 changes: 1 addition & 5 deletions honc-code-gen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@
"access": "public"
},
"license": "MIT or Apache 2",
"keywords": [
"honc",
"fiberplane",
"ai"
],
"keywords": ["honc", "fiberplane", "ai"],
"dependencies": {
"@ai-sdk/openai": "^0.0.66",
"@anthropic-ai/sdk": "^0.29.2",
Expand Down
2 changes: 1 addition & 1 deletion studio/src/components/Log/LogHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function LogHeader(props: Props) {
)}

<div className="font-mono text-xs flex-grow truncate">
{typeof parsedMessage === "string" ? parsedMessage : message ?? ""}
{typeof parsedMessage === "string" ? parsedMessage : (message ?? "")}
</div>
{formattedTimestamp && (
<div className="font-mono text-xs text-right whitespace-nowrap ml-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function useReplayRequest({ span }: { span?: OtelSpan }) {
const replayPath = url.pathname;

const requestHeaders = useMemo<Record<string, string>>(() => {
return span ? getRequestHeaders(span) ?? {} : {};
return span ? (getRequestHeaders(span) ?? {}) : {};
}, [span]);

const filterReplayHeaders = useCallback(
Expand Down
2 changes: 1 addition & 1 deletion studio/src/pages/RequestorPage/LogsTable/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function neonSpanToEvent(span: OtelSpan): NeonEvent {
responseBody && isJson(responseBody) ? safeParseJson(responseBody) : null;
const rowCount =
parsedResponseBody && "rowCount" in parsedResponseBody
? Number.parseInt(parsedResponseBody.rowCount ?? "") ?? null
? (Number.parseInt(parsedResponseBody.rowCount ?? "") ?? null)
: null;

// E.g., "SELECT"
Expand Down

0 comments on commit c6be307

Please sign in to comment.