chore: ⚰️ Remove dead code and unused imports

This commit is contained in:
Jesse Wierzbinski 2024-05-28 15:14:24 -10:00
parent 3a37790315
commit f87bcbd0da
No known key found for this signature in database
37 changed files with 37 additions and 86 deletions

View file

@ -1,4 +1,3 @@
import { consoleLogger } from "@/loggers";
import { errorResponse } from "@/response";
import chalk from "chalk";
import { config } from "config-manager";

View file

@ -27,19 +27,6 @@ export const response = (
});
};
export const clientResponse = (
data: BodyInit | null = null,
status = 200,
headers: Record<string, string> = {},
) => {
return response(data, status, {
"Content-Security-Policy":
"default-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src *; font-src 'self'; connect-src 'self'; media-src *; object-src 'none'; prefetch-src 'none'; child-src 'none'; frame-src 'none'; worker-src 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests; block-all-mixed-content; base-uri 'self'; manifest-src 'self'",
"Access-Control-Allow-Origin": "null",
...headers,
});
};
export const jsonResponse = (
data: object,
status = 200,