mcutils-js-api 2.0.35 → 2.0.36

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
@@ -75,10 +75,9 @@ export declare class McUtilsAPI {
75
75
  * Fetch a player by UUID or username.
76
76
  *
77
77
  * @param id the UUID or username of the player (eg: ImFascinated)
78
- * @param fetchOptifineCape whether to fetch the optifine cape (default: true)
79
78
  * @returns the player or the error (if one occurred)
80
79
  */
81
- fetchPlayer(id: string, fetchOptifineCape?: boolean): Promise<{
80
+ fetchPlayer(id: string): Promise<{
82
81
  player?: Player;
83
82
  error?: ErrorResponse;
84
83
  }>;
package/dist/index.js CHANGED
@@ -99,11 +99,10 @@ export class McUtilsAPI {
99
99
  * Fetch a player by UUID or username.
100
100
  *
101
101
  * @param id the UUID or username of the player (eg: ImFascinated)
102
- * @param fetchOptifineCape whether to fetch the optifine cape (default: true)
103
102
  * @returns the player or the error (if one occurred)
104
103
  */
105
- async fetchPlayer(id, fetchOptifineCape = true) {
106
- const response = await fetch(`${this.endpoint}/players/${id}${this.buildParams({ fetchOptifineCape: String(fetchOptifineCape) })}`);
104
+ async fetchPlayer(id) {
105
+ const response = await fetch(`${this.endpoint}/players/${id}`);
107
106
  if (response.ok) {
108
107
  return {
109
108
  player: (await response.json()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcutils-js-api",
3
- "version": "2.0.35",
3
+ "version": "2.0.36",
4
4
  "module": "dist/index.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",