Compare commits

...

2 Commits

Author SHA1 Message Date
77bff8067e Export server platform
All checks were successful
Publish JS SDK / docker (push) Successful in 32s
2024-04-15 11:10:05 -04:00
9be372e3e0 JS SDK version bump 2024-04-15 11:08:10 -04:00
6 changed files with 21 additions and 19 deletions

View File

@ -1,6 +1,6 @@
{
"name": "restfulmc-lib",
"version": "1.0.4",
"version": "1.0.5",
"author": "Braydon (Rainnny) <braydonrainnny@gmail.com>",
"description": "A simple, yet useful RESTful API for Minecraft utilizing Springboot.",
"keywords": [

View File

@ -1,3 +1,6 @@
export * from "@/lib/restfulmc";
// Types
export * from "@/types/error";
export * from "@/types/player/skin-part";
export * from "@/types/server/platform";

View File

@ -4,7 +4,7 @@ import { CachedPlayer } from "@/types/player/player";
import { SkinPart } from "@/types/player/skin-part";
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
import { ServerPlatform } from "@/types/server/server";
import { ServerPlatform } from "@/types/server/platform";
/**
* Get a player by their username or UUID.

View File

@ -0,0 +1,15 @@
/**
* A platform a Minecraft
* server can operate on.
*/
export enum ServerPlatform {
/**
* The Java edition of Minecraft.
*/
JAVA = "java",
/**
* The Bedrock edition of Minecraft.
*/
BEDROCK = "bedrock",
}

View File

@ -109,19 +109,3 @@ type MOTD = {
*/
html: string[];
};
/**
* A platform a Minecraft
* server can operate on.
*/
export enum ServerPlatform {
/**
* The Java edition of Minecraft.
*/
JAVA = "java",
/**
* The Bedrock edition of Minecraft.
*/
BEDROCK = "bedrock",
}

View File

@ -1,4 +1,5 @@
import {
ServerPlatform,
getJavaServerFavicon,
getMinecraftServer,
isMojangBlocked,
@ -6,7 +7,6 @@ import {
import { RestfulMCAPIError } from "@/types/error";
import { CachedBedrockMinecraftServer } from "@/types/server/bedrock-server";
import { CachedJavaMinecraftServer } from "@/types/server/java-server";
import { ServerPlatform } from "@/types/server/server";
import { expect, test } from "bun:test";
/**