From c1e9d7e5db0116ba18bcef31ea776702ae01da79 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 16 Apr 2024 22:18:42 +0100 Subject: [PATCH] fix mojang endpoint --- package.json | 2 +- src/types/cache/cachedEndpointStatus.ts | 22 +++++++++++++++++++--- src/types/mojang/endpointStatus.ts | 24 ------------------------ 3 files changed, 20 insertions(+), 28 deletions(-) delete mode 100644 src/types/mojang/endpointStatus.ts diff --git a/package.json b/package.json index dfeb099..1ee1897 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcutils-library", - "version": "1.1.1", + "version": "1.1.2", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/types/cache/cachedEndpointStatus.ts b/src/types/cache/cachedEndpointStatus.ts index 0298fd9..89a85d9 100644 --- a/src/types/cache/cachedEndpointStatus.ts +++ b/src/types/cache/cachedEndpointStatus.ts @@ -1,8 +1,24 @@ -import { EndpointStatus } from "../mojang/endpointStatus"; - export interface CachedEndpointStatus extends Cache { /** * The cached endpoint status. */ - status: EndpointStatus; + endpoints: Map; +} + +enum Status { + /** + * The service is online and operational. + */ + ONLINE, + + /** + * The service is online, but may be experiencing issues. + * This could be due to high load or other issues. + */ + DEGRADED, + + /** + * The service is offline and not operational. + */ + OFFLINE, } diff --git a/src/types/mojang/endpointStatus.ts b/src/types/mojang/endpointStatus.ts deleted file mode 100644 index 7c78a90..0000000 --- a/src/types/mojang/endpointStatus.ts +++ /dev/null @@ -1,24 +0,0 @@ -export type EndpointStatus = { - /** - * The status of the endpoints. - */ - endpoints: Map; -}; - -enum Status { - /** - * The service is online and operational. - */ - ONLINE, - - /** - * The service is online, but may be experiencing issues. - * This could be due to high load or other issues. - */ - DEGRADED, - - /** - * The service is offline and not operational. - */ - OFFLINE, -}