diff --git a/api/src/services/api-key.ts b/api/src/services/api-key.ts index ae16f86..a295d21 100644 --- a/api/src/services/api-key.ts +++ b/api/src/services/api-key.ts @@ -71,6 +71,6 @@ export function regenerateApiKey(): string { return newApiKey; } catch (error) { console.error("[API Key] Error writing new API key:", error); - throw new Error("Failed to regenerate API key"); + throw new Error("Failed to regenerate API key", { cause: error }); } } diff --git a/api/tsconfig.json b/api/tsconfig.json index e5909fd..1dbb9f4 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -11,7 +11,7 @@ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "es2021", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ diff --git a/app/src/components/Processing/ProcessingButton.tsx b/app/src/components/Processing/ProcessingButton.tsx index 570f59c..8474e95 100644 --- a/app/src/components/Processing/ProcessingButton.tsx +++ b/app/src/components/Processing/ProcessingButton.tsx @@ -21,8 +21,7 @@ export const ProcessingButton = () => { ? processingList?.filter((item) => item?.status === "error")?.length > 0 : false; - let buttonColor: "primary" | "error" | "warning" | "success" | "inherit" = - "primary"; + let buttonColor: "primary" | "error" | "warning" | "success" | "inherit"; switch (true) { case isPaused: buttonColor = "warning"; diff --git a/package.json b/package.json index eae29c5..2aa1fa1 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "concurrently": "^9.2.1", "eslint": "^10.0.0", "eslint-config-prettier": "^10.1.8", + "globals": "^17.3.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-prettier": "^5.5.5", "eslint-plugin-react-hooks": "^7.0.1", diff --git a/yarn.lock b/yarn.lock index d99b607..207148e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2607,6 +2607,11 @@ glob@^10.0.0: package-json-from-dist "^1.0.0" path-scurry "^1.11.1" +globals@^17.3.0: + version "17.3.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-17.3.0.tgz#8b96544c2fa91afada02747cc9731c002a96f3b9" + integrity sha512-yMqGUQVVCkD4tqjOJf3TnrvaaHDMYp4VlUSObbkIiuCPe/ofdMBFIAcBbCSRFWOnos6qRiTVStDwqPLUclaxIw== + globalthis@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz"