mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Fix file pollution and some ESLint errors in github actions
This commit is contained in:
parent
69f7c470f7
commit
f282fcacae
4 changed files with 7 additions and 23 deletions
|
|
@ -146,9 +146,9 @@ export class CliBuilder {
|
|||
|
||||
// Split the command into parts and iterate over them
|
||||
for (const part of command.categories) {
|
||||
// If this part doesn't exist in the current level of the tree, add it
|
||||
// If this part doesn't exist in the current level of the tree, add it (__proto__ check to prevent prototype pollution)
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
if (!currentLevel[part]) {
|
||||
if (!currentLevel[part] && part !== "__proto__") {
|
||||
// If this is the last part of the command, add the command itself
|
||||
if (
|
||||
part ===
|
||||
|
|
@ -253,24 +253,6 @@ export class CliBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
/* type CliParametersToType<T extends CliParameter[]> = {
|
||||
[K in T[number]["name"]]: T[number]["type"] extends CliParameterType.STRING
|
||||
? string
|
||||
: T[number]["type"] extends CliParameterType.NUMBER
|
||||
? number
|
||||
: T[number]["type"] extends CliParameterType.BOOLEAN
|
||||
? boolean
|
||||
: T[number]["type"] extends CliParameterType.ARRAY
|
||||
? string[]
|
||||
: T[number]["type"] extends CliParameterType.EMPTY
|
||||
? never
|
||||
: never;
|
||||
};
|
||||
|
||||
type ExecuteFunction<T extends CliParameter[]> = (
|
||||
args: CliParametersToType<T>
|
||||
) => void; */
|
||||
|
||||
type ExecuteFunction<T> = (
|
||||
instance: CliCommand,
|
||||
args: Partial<T>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import type { MediaBackendType } from "media-manager";
|
||||
|
||||
export interface ConfigType {
|
||||
database: {
|
||||
host: string;
|
||||
|
|
@ -95,7 +97,7 @@ export interface ConfigType {
|
|||
};
|
||||
|
||||
media: {
|
||||
backend: string;
|
||||
backend: MediaBackendType;
|
||||
deduplicate_media: boolean;
|
||||
conversion: {
|
||||
convert_images: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue