hive-bedrock-api 3.0.0-alpha.14 → 3.0.0-alpha.16

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  An API wrapper for the Hive Minecraft Bedrock Edition server. Which allows you to get stats for leaderboards, players, cosmetics, unique player counts, maps and metadata.
4
4
 
5
5
  > [!NOTE]
6
- > This API responses returnded from this package will differ from the responses returned by the offical Hive API. This due to our preference and needs when using this package on [Hive Backpack](https://hivebackpack.com).
6
+ > This API responses returned from this package will differ from the responses returned by the official Hive API. This due to our preference and needs when using this package on [Hive Backpack](https://hivebackpack.com).
7
7
 
8
8
  ## Getting started
9
9
 
@@ -16,7 +16,7 @@ You should also include `hive-bedrock-data` as it includes useful functions and
16
16
 
17
17
  ## Usage
18
18
 
19
- To start using this API wrapper you may construct the main class `HiveAPI`. This class can take in seperate options that will be used in every http request.
19
+ To start using the API, construct the main class `HiveAPI`. This class takes in options that will be used in every HTTP request.
20
20
 
21
21
  ```ts
22
22
  const api = new HiveAPI({
package/lib/index.d.ts CHANGED
@@ -5,15 +5,16 @@ import { ProcessedGlobalStatisticsResponse } from "./processors/global_statistic
5
5
  import { ProcessedMapResponse } from "./processors/map";
6
6
  import { ProcessedGameMetadata } from "./processors/meta";
7
7
  import { ProcessedPlayerSearchResponse } from "./processors/player_search";
8
- import { ProcessedAllGamesResponse, ProcessedGame } from "./processors/game";
8
+ import { AvailableLeaderboardResponse, ProcessedAllGamesResponse, ProcessedGame } from "./processors/game";
9
9
  interface Options {
10
10
  resolveDynamicTitles?: boolean;
11
+ useModernLeaderboardSource?: boolean;
11
12
  apiBaseEndpoint?: string;
12
13
  requestInit?: RequestInit;
13
14
  }
14
15
  export default class HiveAPI {
15
16
  options: Options;
16
- constructor(options?: Options);
17
+ constructor(options: Options);
17
18
  private _fetchAPI;
18
19
  /**
19
20
  * `/game/all/main/{identifier}` Gets information about a player
@@ -49,6 +50,7 @@ export default class HiveAPI {
49
50
  }): Promise<MethodResponse<ProcessedGame<Timeframe.Monthly, false>[G]>>;
50
51
  private _getStatisticsAllTime;
51
52
  private _getStatisticsMonthly;
53
+ getAvailableMonthlyLeaderboards<G extends Game>(game: G): Promise<MethodResponse<AvailableLeaderboardResponse>>;
52
54
  /**
53
55
  * `/game/season/player/{game}/{player}/{season}` Gets seasonal statistics for a player
54
56
  * @param identifier Username or UUID of the player
package/lib/index.js CHANGED
@@ -72,8 +72,10 @@ var player_search_1 = __importDefault(require("./processors/player_search"));
72
72
  var game_1 = __importDefault(require("./processors/game"));
73
73
  var HiveAPI = /** @class */ (function () {
74
74
  function HiveAPI(options) {
75
- if (options === void 0) { options = { resolveDynamicTitles: true, apiBaseEndpoint: hive_bedrock_data_1.API_BASE_ENDPOINT }; }
75
+ var _a;
76
76
  this.options = options;
77
+ this.options = options;
78
+ this.options.apiBaseEndpoint = (_a = this.options.apiBaseEndpoint) !== null && _a !== void 0 ? _a : hive_bedrock_data_1.API_BASE_ENDPOINT;
77
79
  }
78
80
  HiveAPI.prototype._fetchAPI = function (endpoint) {
79
81
  return __awaiter(this, void 0, void 0, function () {
@@ -87,7 +89,7 @@ var HiveAPI = /** @class */ (function () {
87
89
  case 1:
88
90
  _c.trys.push([1, 4, , 5]);
89
91
  start = performance.now();
90
- return [4 /*yield*/, fetch(url, __assign(__assign({}, this.options.requestInit), { headers: __assign({ "X-Hive-Resolve-Stat-Track": ((_a = this.options.resolveDynamicTitles) !== null && _a !== void 0 ? _a : true).toString() }, (_b = this.options.requestInit) === null || _b === void 0 ? void 0 : _b.headers) }))];
92
+ return [4 /*yield*/, fetch(url, __assign(__assign({}, this.options.requestInit), { headers: __assign({ "X-Hive-Resolve-Stat-Track": ((_a = this.options.resolveDynamicTitles) !== null && _a !== void 0 ? _a : true).toString(), "X-Hive-Leaderboard-Source": this.options.useModernLeaderboardSource ? "modern" : "legacy" }, (_b = this.options.requestInit) === null || _b === void 0 ? void 0 : _b.headers) }))];
91
93
  case 2:
92
94
  request = _c.sent();
93
95
  if (!request.ok)
@@ -232,6 +234,21 @@ var HiveAPI = /** @class */ (function () {
232
234
  });
233
235
  });
234
236
  };
237
+ HiveAPI.prototype.getAvailableMonthlyLeaderboards = function (game) {
238
+ return __awaiter(this, void 0, void 0, function () {
239
+ var _a, response, error, meta;
240
+ return __generator(this, function (_b) {
241
+ switch (_b.label) {
242
+ case 0: return [4 /*yield*/, this._fetchAPI("/game/monthly/".concat(game, "/available"))];
243
+ case 1:
244
+ _a = _b.sent(), response = _a.data, error = _a.error, meta = _a.meta;
245
+ if (error)
246
+ return [2 /*return*/, { data: null, error: error, meta: meta }];
247
+ return [2 /*return*/, { data: response, error: null, meta: meta }];
248
+ }
249
+ });
250
+ });
251
+ };
235
252
  /**
236
253
  * `/game/season/player/{game}/{player}/{season}` Gets seasonal statistics for a player
237
254
  * @param identifier Username or UUID of the player
@@ -1,19 +1,19 @@
1
1
  import { Game, Statistics, Timeframe } from "hive-bedrock-data";
2
2
  import { OmittedSpecialStatistics } from "../types/types";
3
- export interface Processed_JustBuild_AllTimeStatistics extends OmittedSpecialStatistics<Game.JustBuild, Timeframe.AllTime> {
4
- id: Game.JustBuild;
3
+ export interface Processed_BuildBattle_AllTimeStatistics extends OmittedSpecialStatistics<Game.BuildBattle, Timeframe.AllTime> {
4
+ id: Game.BuildBattle;
5
5
  level: number;
6
6
  losses: number;
7
7
  win_percentage: number;
8
8
  total_ratings: number;
9
9
  first_played: number | null;
10
10
  }
11
- export interface Processed_JustBuild_MonthlyStatistics extends Statistics<Game.JustBuild, Timeframe.Monthly> {
12
- id: Game.JustBuild;
11
+ export interface Processed_BuildBattle_MonthlyStatistics extends Statistics<Game.BuildBattle, Timeframe.Monthly> {
12
+ id: Game.BuildBattle;
13
13
  level: number;
14
14
  total_ratings: number;
15
15
  losses: number;
16
16
  win_percentage: number;
17
17
  }
18
- export declare function processAllTime_BUILD(statistics: Partial<Statistics<Game.JustBuild, Timeframe.AllTime>>): Processed_JustBuild_AllTimeStatistics | null;
19
- export declare function processMonthly_BUILD(statistics: Partial<Statistics<Game.JustBuild, Timeframe.Monthly>>): Processed_JustBuild_MonthlyStatistics | null;
18
+ export declare function processAllTime_BUILD(statistics: Partial<Statistics<Game.BuildBattle, Timeframe.AllTime>>): Processed_BuildBattle_AllTimeStatistics | null;
19
+ export declare function processMonthly_BUILD(statistics: Partial<Statistics<Game.BuildBattle, Timeframe.Monthly>>): Processed_BuildBattle_MonthlyStatistics | null;
@@ -24,12 +24,12 @@ function processAllTime_BUILD(statistics) {
24
24
  var _a;
25
25
  if (!statistics || Array.isArray(statistics))
26
26
  return null;
27
- return __assign(__assign(__assign(__assign({ UUID: statistics.UUID }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.JustBuild, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processBuildRatings_1.default)(statistics.rating_love_received, statistics.rating_great_received, statistics.rating_good_received, statistics.rating_okay_received, statistics.rating_meh_received)), { first_played: (_a = statistics.first_played) !== null && _a !== void 0 ? _a : null });
27
+ return __assign(__assign(__assign(__assign({ UUID: statistics.UUID }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.BuildBattle, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processBuildRatings_1.default)(statistics.rating_love_received, statistics.rating_great_received, statistics.rating_good_received, statistics.rating_okay_received, statistics.rating_meh_received)), { first_played: (_a = statistics.first_played) !== null && _a !== void 0 ? _a : null });
28
28
  }
29
29
  function processMonthly_BUILD(statistics) {
30
30
  var _a, _b;
31
31
  if (!statistics || Array.isArray(statistics))
32
32
  return null;
33
33
  var index = (_a = statistics.index) !== null && _a !== void 0 ? _a : 0;
34
- return __assign(__assign(__assign({ index: (_b = statistics.index) !== null && _b !== void 0 ? _b : 0, human_index: index + 1, username: statistics.username }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.JustBuild, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processBuildRatings_1.default)(statistics.rating_love_received, statistics.rating_great_received, statistics.rating_good_received, statistics.rating_okay_received, statistics.rating_meh_received));
34
+ return __assign(__assign(__assign({ index: (_b = statistics.index) !== null && _b !== void 0 ? _b : 0, human_index: index + 1, username: statistics.username }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.BuildBattle, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processBuildRatings_1.default)(statistics.rating_love_received, statistics.rating_great_received, statistics.rating_good_received, statistics.rating_okay_received, statistics.rating_meh_received));
35
35
  }
@@ -88,7 +88,7 @@ export interface ProcessedGameGROUND {
88
88
  projectiles_fired: number;
89
89
  }
90
90
  export interface ProcessedGameBUILD {
91
- id: Game.JustBuild;
91
+ id: Game.BuildBattle;
92
92
  xp: number;
93
93
  played: number;
94
94
  victories: number;
@@ -140,6 +140,7 @@ export interface ProcessedGameSKY {
140
140
  mystery_chests_destroyed: number;
141
141
  ores_mined: number;
142
142
  spells_used: number;
143
+ prestige: number;
143
144
  }
144
145
  export interface ProcessedGameSKYKITS {
145
146
  id: Game.SkyWarsKits;
@@ -254,7 +255,7 @@ export interface ProcessedGame<T extends Timeframe, L extends boolean> {
254
255
  [Game.DeathRun]: ProcessedGameDR & AdditionalStatistics<T, L>;
255
256
  [Game.Gravity]: ProcessedGameGRAV & AdditionalStatistics<T, L>;
256
257
  [Game.GroundWars]: ProcessedGameGROUND & AdditionalStatistics<T, L>;
257
- [Game.JustBuild]: ProcessedGameBUILD & AdditionalStatistics<T, L>;
258
+ [Game.BuildBattle]: ProcessedGameBUILD & AdditionalStatistics<T, L>;
258
259
  [Game.HideAndSeek]: ProcessedGameHIDE & AdditionalStatistics<T, L>;
259
260
  [Game.MurderMystery]: ProcessedGameMURDER & AdditionalStatistics<T, L>;
260
261
  [Game.SkyWars]: ProcessedGameSKY & AdditionalStatistics<T, L>;
@@ -302,3 +303,10 @@ export interface ProcessedMonthlyGamesResponse {
302
303
  [G in Game]: ProcessedGame<Timeframe.Monthly, false>[G] | null;
303
304
  };
304
305
  }
306
+ export interface AvailableLeaderboard {
307
+ month: string;
308
+ year: string;
309
+ month_number: number;
310
+ resource: string;
311
+ }
312
+ export type AvailableLeaderboardResponse = AvailableLeaderboard[];
@@ -160,10 +160,10 @@ exports.processors = (_a = {},
160
160
  projectiles_fired: (_h = response.projectiles_fired) !== null && _h !== void 0 ? _h : 0,
161
161
  });
162
162
  },
163
- _a[hive_bedrock_data_1.Game.JustBuild] = function (response) {
163
+ _a[hive_bedrock_data_1.Game.BuildBattle] = function (response) {
164
164
  var _a, _b, _c, _d, _e, _f, _g, _h;
165
165
  return ({
166
- id: hive_bedrock_data_1.Game.JustBuild,
166
+ id: hive_bedrock_data_1.Game.BuildBattle,
167
167
  xp: (_a = response.xp) !== null && _a !== void 0 ? _a : 0,
168
168
  played: (_b = response.played) !== null && _b !== void 0 ? _b : 0,
169
169
  victories: (_c = response.victories) !== null && _c !== void 0 ? _c : 0,
@@ -216,7 +216,7 @@ exports.processors = (_a = {},
216
216
  });
217
217
  },
218
218
  _a[hive_bedrock_data_1.Game.SkyWars] = function (response) {
219
- var _a, _b, _c, _d, _e, _f, _g, _h;
219
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
220
220
  return ({
221
221
  id: hive_bedrock_data_1.Game.SkyWars,
222
222
  xp: (_a = response.xp) !== null && _a !== void 0 ? _a : 0,
@@ -230,6 +230,7 @@ exports.processors = (_a = {},
230
230
  mystery_chests_destroyed: (_f = response.mystery_chests_destroyed) !== null && _f !== void 0 ? _f : 0,
231
231
  ores_mined: (_g = response.ores_mined) !== null && _g !== void 0 ? _g : 0,
232
232
  spells_used: (_h = response.spells_used) !== null && _h !== void 0 ? _h : 0,
233
+ prestige: (_j = response.prestige) !== null && _j !== void 0 ? _j : 0,
233
234
  });
234
235
  },
235
236
  _a[hive_bedrock_data_1.Game.SkyWarsKits] = function (response) {
@@ -28,7 +28,7 @@ exports.AllTimeProcessors = (_a = {},
28
28
  _a[hive_bedrock_data_1.Game.Gravity] = grav_1.processAllTime_GRAV,
29
29
  _a[hive_bedrock_data_1.Game.GroundWars] = ground_1.processAllTime_GROUND,
30
30
  _a[hive_bedrock_data_1.Game.HideAndSeek] = hide_1.processAllTime_HIDE,
31
- _a[hive_bedrock_data_1.Game.JustBuild] = build_1.processAllTime_BUILD,
31
+ _a[hive_bedrock_data_1.Game.BuildBattle] = build_1.processAllTime_BUILD,
32
32
  _a[hive_bedrock_data_1.Game.MurderMystery] = murder_1.processAllTime_MURDER,
33
33
  _a[hive_bedrock_data_1.Game.ParkourWorlds] = parkour_1.processAllTime_PARKOUR,
34
34
  _a[hive_bedrock_data_1.Game.Skywars] = sky_1.processAllTime_SKY,
@@ -45,7 +45,7 @@ exports.MonthlyProcessors = (_b = {},
45
45
  _b[hive_bedrock_data_1.Game.Gravity] = grav_1.processMonthly_GRAV,
46
46
  _b[hive_bedrock_data_1.Game.GroundWars] = ground_1.processMonthly_GROUND,
47
47
  _b[hive_bedrock_data_1.Game.HideAndSeek] = hide_1.processMonthly_HIDE,
48
- _b[hive_bedrock_data_1.Game.JustBuild] = build_1.processMonthly_BUILD,
48
+ _b[hive_bedrock_data_1.Game.BuildBattle] = build_1.processMonthly_BUILD,
49
49
  _b[hive_bedrock_data_1.Game.MurderMystery] = murder_1.processMonthly_MURDER,
50
50
  _b[hive_bedrock_data_1.Game.Skywars] = sky_1.processMonthly_SKY,
51
51
  _b[hive_bedrock_data_1.Game.SurvivalGames] = sg_1.processMonthly_SG,
@@ -62,7 +62,7 @@ exports.LeaderboardProcessors = (_c = {},
62
62
  _c[hive_bedrock_data_1.Game.Gravity] = grav_1.processMonthly_GRAV,
63
63
  _c[hive_bedrock_data_1.Game.GroundWars] = ground_1.processMonthly_GROUND,
64
64
  _c[hive_bedrock_data_1.Game.HideAndSeek] = hide_1.processMonthly_HIDE,
65
- _c[hive_bedrock_data_1.Game.JustBuild] = build_1.processMonthly_BUILD,
65
+ _c[hive_bedrock_data_1.Game.BuildBattle] = build_1.processMonthly_BUILD,
66
66
  _c[hive_bedrock_data_1.Game.MurderMystery] = murder_1.processMonthly_MURDER,
67
67
  _c[hive_bedrock_data_1.Game.Skywars] = sky_1.processMonthly_SKY,
68
68
  _c[hive_bedrock_data_1.Game.SurvivalGames] = sg_1.processMonthly_SG,
@@ -21,15 +21,15 @@ var processGameAndXP_1 = __importDefault(require("./helpers/processGameAndXP"));
21
21
  var processPlayedAndVictories_1 = __importDefault(require("./helpers/processPlayedAndVictories"));
22
22
  var processKillsAndDeaths_1 = __importDefault(require("./helpers/processKillsAndDeaths"));
23
23
  function processAllTime_SKY(statistics) {
24
- var _a, _b, _c, _d;
24
+ var _a, _b, _c, _d, _e;
25
25
  if (!statistics || Array.isArray(statistics))
26
26
  return null;
27
- return __assign(__assign(__assign(__assign({ UUID: statistics.UUID }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.Skywars, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processKillsAndDeaths_1.default)(statistics.kills, statistics.deaths)), { mystery_chests_destroyed: (_a = statistics.mystery_chests_destroyed) !== null && _a !== void 0 ? _a : 0, ores_mined: (_b = statistics.ores_mined) !== null && _b !== void 0 ? _b : 0, spells_used: (_c = statistics.spells_used) !== null && _c !== void 0 ? _c : 0, first_played: (_d = statistics.first_played) !== null && _d !== void 0 ? _d : null });
27
+ return __assign(__assign(__assign(__assign({ UUID: statistics.UUID }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.Skywars, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processKillsAndDeaths_1.default)(statistics.kills, statistics.deaths)), { mystery_chests_destroyed: (_a = statistics.mystery_chests_destroyed) !== null && _a !== void 0 ? _a : 0, ores_mined: (_b = statistics.ores_mined) !== null && _b !== void 0 ? _b : 0, spells_used: (_c = statistics.spells_used) !== null && _c !== void 0 ? _c : 0, prestige: (_d = statistics.prestige) !== null && _d !== void 0 ? _d : 0, first_played: (_e = statistics.first_played) !== null && _e !== void 0 ? _e : null });
28
28
  }
29
29
  function processMonthly_SKY(statistics) {
30
- var _a, _b, _c, _d, _e;
30
+ var _a, _b, _c, _d, _e, _f;
31
31
  if (!statistics || Array.isArray(statistics))
32
32
  return null;
33
33
  var index = (_a = statistics.index) !== null && _a !== void 0 ? _a : 0;
34
- return __assign(__assign(__assign(__assign({ index: (_b = statistics.index) !== null && _b !== void 0 ? _b : 0, human_index: index + 1, username: statistics.username }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.Skywars, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processKillsAndDeaths_1.default)(statistics.kills, statistics.deaths)), { mystery_chests_destroyed: (_c = statistics.mystery_chests_destroyed) !== null && _c !== void 0 ? _c : 0, ores_mined: (_d = statistics.ores_mined) !== null && _d !== void 0 ? _d : 0, spells_used: (_e = statistics.spells_used) !== null && _e !== void 0 ? _e : 0 });
34
+ return __assign(__assign(__assign(__assign({ index: (_b = statistics.index) !== null && _b !== void 0 ? _b : 0, human_index: index + 1, username: statistics.username }, (0, processGameAndXP_1.default)(hive_bedrock_data_1.Game.Skywars, statistics.xp)), (0, processPlayedAndVictories_1.default)(statistics.played, statistics.victories)), (0, processKillsAndDeaths_1.default)(statistics.kills, statistics.deaths)), { mystery_chests_destroyed: (_c = statistics.mystery_chests_destroyed) !== null && _c !== void 0 ? _c : 0, ores_mined: (_d = statistics.ores_mined) !== null && _d !== void 0 ? _d : 0, spells_used: (_e = statistics.spells_used) !== null && _e !== void 0 ? _e : 0, prestige: (_f = statistics.prestige) !== null && _f !== void 0 ? _f : 0 });
35
35
  }
@@ -7,7 +7,7 @@ import { Processed_DeathRun_AllTimeStatistics, Processed_DeathRun_MonthlyStatist
7
7
  import { Processed_Gravity_AllTimeStatistics, Processed_Gravity_MonthlyStatistics } from "../processors/grav";
8
8
  import { Processed_GroundWars_AllTimeStatistics, Processed_GroundWars_MonthlyStatistics } from "../processors/ground";
9
9
  import { Processed_HideAndSeek_AllTimeStatistics, Processed_HideAndSeek_MonthlyStatistics } from "../processors/hide";
10
- import { Processed_JustBuild_AllTimeStatistics, Processed_JustBuild_MonthlyStatistics } from "../processors/build";
10
+ import { Processed_BuildBattle_AllTimeStatistics, Processed_BuildBattle_MonthlyStatistics } from "../processors/build";
11
11
  import { Processed_MurderMystery_AllTimeStatistics, Processed_MurderMystery_MonthlyStatistics } from "../processors/murder";
12
12
  import { Processed_ParkourWorlds_AllTimeStatistics } from "../processors/parkour";
13
13
  import { Processed_Skywars_AllTimeStatistics, Processed_Skywars_MonthlyStatistics } from "../processors/sky";
@@ -26,7 +26,7 @@ export interface AllTimeProcessedStatistics {
26
26
  [Game.Gravity]: Processed_Gravity_AllTimeStatistics;
27
27
  [Game.GroundWars]: Processed_GroundWars_AllTimeStatistics;
28
28
  [Game.HideAndSeek]: Processed_HideAndSeek_AllTimeStatistics;
29
- [Game.JustBuild]: Processed_JustBuild_AllTimeStatistics;
29
+ [Game.BuildBattle]: Processed_BuildBattle_AllTimeStatistics;
30
30
  [Game.MurderMystery]: Processed_MurderMystery_AllTimeStatistics;
31
31
  [Game.Skywars]: Processed_Skywars_AllTimeStatistics;
32
32
  [Game.SurvivalGames]: Processed_SurvivalGames_AllTimeStatistics;
@@ -49,7 +49,7 @@ export interface MonthlyProcessedStatistics {
49
49
  [Game.Gravity]: Processed_Gravity_MonthlyStatistics;
50
50
  [Game.GroundWars]: Processed_GroundWars_MonthlyStatistics;
51
51
  [Game.HideAndSeek]: Processed_HideAndSeek_MonthlyStatistics;
52
- [Game.JustBuild]: Processed_JustBuild_MonthlyStatistics;
52
+ [Game.BuildBattle]: Processed_BuildBattle_MonthlyStatistics;
53
53
  [Game.MurderMystery]: Processed_MurderMystery_MonthlyStatistics;
54
54
  [Game.Skywars]: Processed_Skywars_MonthlyStatistics;
55
55
  [Game.SurvivalGames]: Processed_SurvivalGames_MonthlyStatistics;
package/lib/utils.d.ts CHANGED
@@ -4,7 +4,6 @@ export interface MethodResponseError {
4
4
  }
5
5
  export type MethodResponse<D extends any> = {
6
6
  meta?: {
7
- /** sss */
8
7
  duration: number;
9
8
  ratelimit?: {
10
9
  limit: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-bedrock-api",
3
- "version": "3.0.0-alpha.14",
3
+ "version": "3.0.0-alpha.16",
4
4
  "description": "An API wrapper for the Hive Minecraft Bedrock Edition server.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "license": "MIT",
12
12
  "author": "Cubeedge Studios",
13
13
  "dependencies": {
14
- "hive-bedrock-data": "^2.0.0-alpha.6"
14
+ "hive-bedrock-data": "^2.0.0-alpha.9"
15
15
  },
16
16
  "scripts": {
17
17
  "build": "tsc"