Fix skin part not being exported
Some checks failed
Publish JS SDK / docker (push) Has been cancelled

This commit is contained in:
Braydon 2024-04-15 11:05:31 -04:00
parent bb81be1e28
commit fc382fad27
7 changed files with 30 additions and 26 deletions

@ -1,5 +1,5 @@
export * from "./types/mojang";
export * from "./types/player";
export * from "./types/player/player";
export * from "./types/server/bedrock-server";
export * from "./types/server/java-server";
export * from "./types/server/server";

@ -1,2 +1,3 @@
export * from "@/lib/restfulmc";
export * from "@/types/error";
export * from "@/types/player/skin-part";

@ -1,6 +1,7 @@
import { WebRequest } from "@/lib/webRequest";
import { WebRequest } from "@/lib/web-request";
import { MojangServerStatus } from "@/types/mojang";
import { CachedPlayer, SkinPart } from "@/types/player";
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";

@ -1,3 +1,5 @@
import { SkinPart } from "@/types/player/skin-part";
/**
* A cacheable {@link Player}.
*/
@ -93,28 +95,6 @@ enum SkinModel {
SLIM,
}
/**
* A part of a skin texture.
*/
export enum SkinPart {
HEAD_OVERLAY_FACE,
HEAD_TOP,
HEAD,
FACE,
HEAD_LEFT,
HEAD_RIGHT,
HEAD_BOTTOM,
HEAD_BACK,
BODY_FRONT,
BODY,
LEFT_ARM_TOP,
RIGHT_ARM_TOP,
LEFT_ARM_FRONT,
RIGHT_ARM_FRONT,
LEFT_LEG_FRONT,
RIGHT_LEG_FRONT,
}
/**
* A cape for a {@link Player}.
*/

@ -0,0 +1,21 @@
/**
* A part of a skin texture.
*/
export enum SkinPart {
HEAD_OVERLAY_FACE,
HEAD_TOP,
HEAD,
FACE,
HEAD_LEFT,
HEAD_RIGHT,
HEAD_BOTTOM,
HEAD_BACK,
BODY_FRONT,
BODY,
LEFT_ARM_TOP,
RIGHT_ARM_TOP,
LEFT_ARM_FRONT,
RIGHT_ARM_FRONT,
LEFT_LEG_FRONT,
RIGHT_LEG_FRONT,
}

@ -1,6 +1,7 @@
import { getPlayer, getSkinPart } from "@/index";
import { RestfulMCAPIError } from "@/types/error";
import { CachedPlayer, SkinPart } from "@/types/player";
import { CachedPlayer } from "@/types/player/player";
import { SkinPart } from "@/types/player/skin-part";
import { expect, test } from "bun:test";
/**