diff --git a/packages/app/backend-http-client/package.json b/packages/app/backend-http-client/package.json index 70cd5e2e..1a1bc7db 100644 --- a/packages/app/backend-http-client/package.json +++ b/packages/app/backend-http-client/package.json @@ -32,15 +32,15 @@ "postversion": "biome check --write package.json" }, "dependencies": { - "@lokalise/node-core": "^13.0.0", - "undici": "^6.19.8", - "undici-retry": "^5.0.3", + "@lokalise/node-core": "^13.1.0", + "undici": "^7.1.0", + "undici-retry": "^6.0.0", "zod": "^3.23.8" }, "devDependencies": { "@biomejs/biome": "^1.9.4", "@lokalise/biome-config": "^1.5.0", - "@types/node": "^22.7.6", + "@types/node": "^22.10.1", "@vitest/coverage-v8": "^2.1.3", "typescript": "^5.7.2", "vitest": "^2.1.3" diff --git a/packages/app/backend-http-client/src/client/httpClient.ts b/packages/app/backend-http-client/src/client/httpClient.ts index a6a3d946..c1f1be45 100644 --- a/packages/app/backend-http-client/src/client/httpClient.ts +++ b/packages/app/backend-http-client/src/client/httpClient.ts @@ -54,7 +54,7 @@ export async function sendGet< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options), @@ -93,7 +93,7 @@ export async function sendDelete< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options), @@ -134,7 +134,7 @@ export async function sendPost< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options), @@ -175,7 +175,7 @@ export async function sendPostBinary< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options), @@ -216,7 +216,7 @@ export async function sendPut< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options), @@ -257,7 +257,7 @@ export async function sendPutBinary< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options), @@ -298,7 +298,7 @@ export async function sendPatch< reset: options.disableKeepAlive ?? false, bodyTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, headersTimeout: Object.hasOwn(options, 'timeout') ? options.timeout : DEFAULT_OPTIONS.timeout, - throwOnError: false, + throwOnError: undefined, }, resolveRetryConfig(options), resolveRequestConfig(options),