Skip to content

Commit

Permalink
refactor: changed eslint types
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Feb 23, 2025
1 parent 852f447 commit c5002d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"": {
"name": "@toil/translate",
"devDependencies": {
"@eslint/js": "^9.21.0",
"@toil/typebox-genx": "^0.0.1",
"@types/bun": "latest",
"@types/eslint__js": "^9.14.0",
"eslint": "^9.21.0",
"eslint-plugin-oxlint": "0.15.11",
"husky": "^9.1.7",
Expand Down Expand Up @@ -90,8 +90,6 @@

"@types/bun": ["@types/bun@1.2.3", "", { "dependencies": { "bun-types": "1.2.3" } }, "sha512-054h79ipETRfjtsCW9qJK8Ipof67Pw9bodFWmkfkaUaRiIQ1dIV2VTlheshlBx3mpKr0KeK8VqnMMCtgN9rQtw=="],

"@types/eslint__js": ["@types/eslint__js@9.14.0", "", { "dependencies": { "@eslint/js": "*" } }, "sha512-s0jepCjOJWB/GKcuba4jISaVpBudw3ClXJ3fUK4tugChUMQsp6kSwuA8Dcx6wFd/JsJqcY8n4rEpa5RTHs5ypA=="],

"@types/estree": ["@types/estree@1.0.6", "", {}, "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw=="],

"@types/hast": ["@types/hast@3.0.4", "", { "dependencies": { "@types/unist": "*" } }, "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ=="],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"main": "./dist/index.js",
"module": "./dist/index.js",
"devDependencies": {
"@eslint/js": "^9.21.0",
"@toil/typebox-genx": "^0.0.1",
"@types/bun": "latest",
"@types/eslint__js": "^9.14.0",
"eslint": "^9.21.0",
"eslint-plugin-oxlint": "0.15.11",
"husky": "^9.1.7",
Expand Down
2 changes: 1 addition & 1 deletion src/providers/libretranslate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default class LibreTranslateProvider extends BaseProvider {
body.append("source", fromLang);
body.append("target", toLang);
body.append("format", "text");
body.append("alternatives", 0);
body.append("alternatives", "0");
body.append("api_key", this.apiKey ?? "");
if (this.allowUnsafeEval && this.apiUrl === this.apiUrlPlaceholder) {
const { token } = await this.getSession();
Expand Down

0 comments on commit c5002d7

Please sign in to comment.