Skip to content

Commit f6b01df

Browse files
committed
upgrade
1 parent 60d1aac commit f6b01df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+448
-287
lines changed

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"useTabs": false,
44
"htmlWhitespaceSensitivity": "ignore",
55
"endOfLine": "lf",
6+
"trailingComma": "es5",
67
"overrides": [
78
{
89
"files": ["*.ts"],

backend/private/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="utf-8" />

backend/src/api/ts-rest-adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function callController<
1212
TResponse,
1313
//ignoring as it might be used in the future
1414
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
15-
TStatus = 200
15+
TStatus = 200,
1616
>(
1717
handler: MonkeyHandler<TQuery, TBody, TParams, TResponse>
1818
): (all: TypeSafeTsRestRequest<TRoute, TQuery, TBody, TParams>) => Promise<{
@@ -70,7 +70,7 @@ type TypeSafeTsRestRequest<
7070
TRoute extends AppRoute | AppRouter,
7171
TQuery,
7272
TBody,
73-
TParams
73+
TParams,
7474
> = {
7575
req: TsRestRequest<TRoute>;
7676
} & (TQuery extends undefined ? WithoutQuery : WithQuery<TQuery>) &

backend/src/api/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type TsRestRequestWithContext = {
1717
export type MonkeyRequest<
1818
TQuery = undefined,
1919
TBody = undefined,
20-
TParams = undefined
20+
TParams = undefined,
2121
> = {
2222
query: Readonly<TQuery>;
2323
body: Readonly<TBody>;

backend/src/constants/base-configuration.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ type Schema<T> = {
139139
[P in keyof T]: T[P] extends unknown[]
140140
? ArraySchema<T[P]>
141141
: T[P] extends number
142-
? NumberSchema
143-
: T[P] extends boolean
144-
? BooleanSchema
145-
: T[P] extends string
146-
? StringSchema
147-
: T[P] extends object
148-
? ObjectSchema<T[P]>
149-
: never;
142+
? NumberSchema
143+
: T[P] extends boolean
144+
? BooleanSchema
145+
: T[P] extends string
146+
? StringSchema
147+
: T[P] extends object
148+
? ObjectSchema<T[P]>
149+
: never;
150150
};
151151

152152
export const CONFIGURATION_FORM_SCHEMA: ObjectSchema<Configuration> = {

backend/src/middlewares/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const DEFAULT_OPTIONS: RequestAuthenticationOptions = {
4242
* @returns
4343
*/
4444
export function authenticateTsRestRequest<
45-
T extends AppRouter | AppRoute
45+
T extends AppRouter | AppRoute,
4646
>(): TsRestRequestHandler<T> {
4747
return async (
4848
req: TsRestRequestWithContext,

backend/src/middlewares/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { TsRestRequestWithContext } from "../api/types";
1212
import { AppRoute, AppRouter } from "@ts-rest/core";
1313

1414
export function verifyRequiredConfiguration<
15-
T extends AppRouter | AppRoute
15+
T extends AppRouter | AppRoute,
1616
>(): TsRestRequestHandler<T> {
1717
return async (
1818
req: TsRestRequestWithContext,

backend/src/middlewares/permission.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const permissionChecks: Record<PermissionId, PermissionCheck> = {
7272
};
7373

7474
export function verifyPermissions<
75-
T extends AppRouter | AppRoute
75+
T extends AppRouter | AppRoute,
7676
>(): TsRestRequestHandler<T> {
7777
return async (
7878
req: TsRestRequestWithContext,

backend/src/middlewares/rate-limit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const requestLimiters: Record<RateLimiterId, RateLimitRequestHandler> =
9595
initialiseLimiters();
9696

9797
export function rateLimitRequest<
98-
T extends AppRouter | AppRoute
98+
T extends AppRouter | AppRoute,
9999
>(): TsRestRequestHandler<T> {
100100
return async (
101101
req: TsRestRequestWithContext,

backend/src/utils/error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class MonkeyError extends Error implements MonkeyServerErrorType {
6363

6464
if (isDevEnvironment()) {
6565
this.message =
66-
stack ?? ""
66+
(stack ?? "")
6767
? String(message) + "\nStack: " + String(stack)
6868
: String(message);
6969
} else {

0 commit comments

Comments
 (0)