hive-bedrock-api 3.0.0-alpha.18 → 3.0.0-alpha.19

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/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@ 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 { AvailableLeaderboardResponse, ProcessedAllGamesResponse, ProcessedGame } from "./processors/game";
8
+ import { AvailableLeaderboardResponse, ProcessedAllGamesResponse, ProcessedGame, ProcessedMonthlyGamesResponse } from "./processors/game";
9
9
  interface Options {
10
10
  resolveDynamicTitles?: boolean;
11
11
  useModernLeaderboardSource?: boolean;
@@ -14,7 +14,7 @@ interface Options {
14
14
  }
15
15
  export default class HiveAPI {
16
16
  options: Options;
17
- constructor(options: Options);
17
+ constructor(options?: Options);
18
18
  private _fetchAPI;
19
19
  /**
20
20
  * `/game/all/main/{identifier}` Gets information about a player
@@ -42,7 +42,7 @@ export default class HiveAPI {
42
42
  getStatistics(identifier: string, timeframe: Timeframe.Monthly, options?: {
43
43
  month?: number;
44
44
  year?: number;
45
- }): Promise<MethodResponse<ProcessedAllGamesResponse>>;
45
+ }): Promise<MethodResponse<ProcessedMonthlyGamesResponse>>;
46
46
  getStatistics<G extends Game>(identifier: string, timeframe: Timeframe.Monthly, options: {
47
47
  game: G;
48
48
  month?: number;
package/lib/index.js CHANGED
@@ -72,6 +72,7 @@ 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 = {}; }
75
76
  var _a;
76
77
  this.options = options;
77
78
  this.options = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-bedrock-api",
3
- "version": "3.0.0-alpha.18",
3
+ "version": "3.0.0-alpha.19",
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",