diff --git a/package.json b/package.json index 57b7bc1..3b27c09 100644 --- a/package.json +++ b/package.json @@ -36,16 +36,16 @@ "@openally/config.typescript": "1.2.1", "@types/lru-cache": "^7.10.9", "@types/node": "24.9.1", - "c8": "^10.1.3", - "fastify": "5.6.1", + "c8": "11.0.0", + "fastify": "5.8.2", "is-html": "3.2.0", "p-ratelimit": "^1.0.1", - "tsx": "4.20.6", + "tsx": "4.21.0", "typescript": "5.9.3" }, "dependencies": { - "@openally/result": "^1.2.1", - "lru-cache": "11.2.2", - "undici": "7.16.0" + "@openally/result": "2.0.0", + "lru-cache": "11.2.6", + "undici": "7.22.0" } } diff --git a/src/request.ts b/src/request.ts index 5cd102e..02d0d01 100644 --- a/src/request.ts +++ b/src/request.ts @@ -4,7 +4,7 @@ import { URLSearchParams } from "node:url"; // Import Third-party Dependencies import * as undici from "undici"; -import { Result } from "@openally/result"; +import { type Result, wrapAsync } from "@openally/result"; // Import Internal Dependencies import * as Utils from "./utils.js"; @@ -132,7 +132,7 @@ export async function safeRequest( uri: string | URL, options: RequestOptions = {} ): Promise, RequestError>> { - return Result.wrapAsync, RequestError>( + return wrapAsync, RequestError>( () => request(method, uri, options) ); }