From ad3b5c380b9caea8ce4341afd93c35a0672b5d0b Mon Sep 17 00:00:00 2001 From: James Cook Date: Fri, 8 Sep 2023 19:27:01 +0100 Subject: [PATCH] fix: fix wording of docs --- src/core/baseClient.ts | 2 +- src/utils/consts.ts | 2 +- src/utils/utils.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/baseClient.ts b/src/core/baseClient.ts index af8de63..d2e8f21 100644 --- a/src/core/baseClient.ts +++ b/src/core/baseClient.ts @@ -72,7 +72,7 @@ export class BaseClient { * Makes a request to the ClassCharts API with the required authentication headers * * @param path Path to the API endpoint - * @param kyOptions Ky (fetch library) request options + * @param fetchOptions Request Options * @param options * @param options.revalidateToken Whether to revalidate the session ID if it is older than 3 minutes * diff --git a/src/utils/consts.ts b/src/utils/consts.ts index 964409d..50d3626 100644 --- a/src/utils/consts.ts +++ b/src/utils/consts.ts @@ -2,4 +2,4 @@ export const BASE_URL = "https://www.classcharts.com"; export const API_BASE_STUDENT = `${BASE_URL}/apiv2student`; export const API_BASE_PARENT = `${BASE_URL}/apiv2parent`; -export const PING_INTERVAL = 180 * 1000; // 3 minutes +export const PING_INTERVAL = 60 * 3 * 1000; // 3 minutes diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 48126dc..aa24abd 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -14,7 +14,6 @@ export function parseCookies(input: string) { } return output; } - export function leftTrim(str: string) { return str.replace(/^\s+/g, ""); }