File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " mcutils-js-api" ,
3- "version" : " 2.0.22 " ,
3+ "version" : " 2.0.23 " ,
44 "module" : " dist/index.js" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import type { BedrockServer } from "./types/server/impl/bedrock-server";
55import type { JavaServer } from "./types/server/impl/java-server" ;
66import type { CachedPlayer } from "./types/cache/cached-player" ;
77import type { CachedPlayerName } from "./types/cache/cached-player-name" ;
8- import type { CapeData } from "./types/player/cape/cape " ;
9- import { ServerType } from "./types/server/server " ;
8+ import type { ServerType } from "./types/server/server " ;
9+ import type { Cape } from "./types/player/cape/cape " ;
1010
1111export class McUtilsAPI {
1212 private readonly endpoint : string ;
@@ -257,12 +257,12 @@ export class McUtilsAPI {
257257 * @returns the list of cape data or the error (if one occurred)
258258 */
259259 async fetchCapes ( ) : Promise < {
260- capes ?: CapeData [ ] ;
260+ capes ?: Cape [ ] ;
261261 error ?: ErrorResponse ;
262262 } > {
263263 const response = await fetch ( `${ this . endpoint } /capes` ) ;
264264 if ( response . ok ) {
265- return { capes : ( await response . json ( ) ) as CapeData [ ] } ;
265+ return { capes : ( await response . json ( ) ) as Cape [ ] } ;
266266 }
267267 return {
268268 error : ( await response . json ( ) ) as ErrorResponse ,
Original file line number Diff line number Diff line change 11import { CapePart } from "./cape-part" ;
22
33export type Cape = {
4- textureId : string ;
5- textureUrl : string ;
6- parts : Record < CapePart , string > ;
7- } ;
8-
9- export type CapeData = {
104 name : string ;
115 textureId : string ;
126 textureUrl : string ;
137 parts : Record < CapePart , string > ;
14- } ;
8+ } ;
You can’t perform that action at this time.
0 commit comments