Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -132,7 +132,7 @@ export async function safeRequest<T, E>(
uri: string | URL,
options: RequestOptions = {}
): Promise<Result<RequestResponse<T>, RequestError<E>>> {
return Result.wrapAsync<RequestResponse<T>, RequestError<E>>(
return wrapAsync<RequestResponse<T>, RequestError<E>>(
() => request(method, uri, options)
);
}
Expand Down