mcutils-js-api 2.0.21 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,8 +4,8 @@ import type { BedrockServer } from "./types/server/impl/bedrock-server";
4
4
  import type { JavaServer } from "./types/server/impl/java-server";
5
5
  import type { CachedPlayer } from "./types/cache/cached-player";
6
6
  import type { CachedPlayerName } from "./types/cache/cached-player-name";
7
- import type { CapeData } from "./types/player/cape/cape";
8
- import { ServerType } from "./types/server/server";
7
+ import type { ServerType } from "./types/server/server";
8
+ import type { Cape } from "./types/player/cape/cape";
9
9
  export declare class McUtilsAPI {
10
10
  private readonly endpoint;
11
11
  constructor(endpoint?: string);
@@ -138,7 +138,7 @@ export declare class McUtilsAPI {
138
138
  * @returns the list of cape data or the error (if one occurred)
139
139
  */
140
140
  fetchCapes(): Promise<{
141
- capes?: CapeData[];
141
+ capes?: Cape[];
142
142
  error?: ErrorResponse;
143
143
  }>;
144
144
  /**
@@ -1,9 +1,5 @@
1
1
  import { CapePart } from "./cape-part";
2
2
  export type Cape = {
3
- textureUrl: string;
4
- parts: Record<CapePart, string>;
5
- };
6
- export type CapeData = {
7
3
  name: string;
8
4
  textureId: string;
9
5
  textureUrl: string;
@@ -1,6 +1,7 @@
1
1
  import { SkinModel } from "./skin-model";
2
2
  import { SkinPart } from "./skin-part";
3
3
  export type Skin = {
4
+ textureId: string;
4
5
  model: SkinModel;
5
6
  legacy: boolean;
6
7
  textureUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcutils-js-api",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "module": "dist/index.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",