Skip to content

Commit

Permalink
v1.2.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Jul 1, 2024
1 parent a8869eb commit 2eb5b70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/rest/RequestHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export class RequestHandler {
this.#manager = manager;
this.options = {
agent: options.agent,
baseURL: options.baseURL ?? pkgconfig.GuildedAPI.APIURL,
baseURL: options.baseURL ?? pkgconfig.GuildedAPI.API_URL,
disableLatencyCompensation: !!options.disableLatencyCompensation,
host: options.host ?? (options.baseURL ? new URL(options.baseURL as string).host : new URL(pkgconfig.GuildedAPI.APIURL).host),
host: options.host ?? (options.baseURL ? new URL(options.baseURL as string).host : new URL(pkgconfig.GuildedAPI.API_URL).host),
latencyThreshold: options.latencyThreshold ?? 30000,
ratelimiterOffset: options.ratelimiterOffset ?? 0,
requestTimeout: options.requestTimeout ?? 15000,
Expand Down Expand Up @@ -67,7 +67,7 @@ export class RequestHandler {
if (!options.path.startsWith("/")) {
options.path = `/${options.path}`;
}
const route = options.route ?? `${pkgconfig.GuildedAPI.APIURL}/${options.path}`;
const route = options.route ?? `${pkgconfig.GuildedAPI.API_URL}/${options.path}`;
if (!this.ratelimits[route]) {
this.ratelimits[route] = new SequentialBucket(1, this.latencyRef);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "touchguild",
"version": "1.2.4",
"version": "1.2.5",
"description": "TouchGuild is a NodeJS library for interfacing with Guilded.",
"main": "./dist/lib/index.js",
"types": "./dist/lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions pkgconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import * as pkg from "./package.json";
import { GatewayVersion, GatewayURL } from "guildedapi-types.ts/v1";
export const config = {
name: "TouchGuild",
branch: "Development build",
branch: "Stable build",
version: pkg.version,
NodeJSVersion: process.version,
GuildedAPI: {
GatewayVersion,
GatewayURL,
APIURL: `https://www.guilded.gg/api/v${GatewayVersion}`
API_URL: `https://www.guilded.gg/api/v${GatewayVersion}`
}
};

0 comments on commit 2eb5b70

Please sign in to comment.