fix mojang endpoint
All checks were successful
Publish Package / build (push) Successful in 19s

This commit is contained in:
Lee 2024-04-16 22:18:42 +01:00
parent 4bca857c80
commit c1e9d7e5db
3 changed files with 20 additions and 28 deletions

@ -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",

@ -1,8 +1,24 @@
import { EndpointStatus } from "../mojang/endpointStatus";
export interface CachedEndpointStatus extends Cache {
/**
* The cached endpoint status.
*/
status: EndpointStatus;
endpoints: Map<string, Status>;
}
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,
}

@ -1,24 +0,0 @@
export type EndpointStatus = {
/**
* The status of the endpoints.
*/
endpoints: Map<string, Status>;
};
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,
}