clashofclans.js 2.5.0 → 2.5.1-dev.2ab26dd

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## 2.5.1 (2022-01-11)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Typings for `ClanWarLeagueGroup#state` property. ([#94](https://github.com/clashperk/clashofclans.js/pull/94))
10
+
5
11
  ## 2.5.0 (2021-12-30)
6
12
 
7
13
  ### Bug Fixes
@@ -136,7 +136,7 @@ class ClanWar {
136
136
  // @ts-expect-error
137
137
  this.state = data.state;
138
138
  this.teamSize = data.teamSize;
139
- this.attacksPerMember = data.attacksPerMember ?? extra.warTag ? 1 : 2;
139
+ this.attacksPerMember = data.attacksPerMember ?? (extra.warTag ? 1 : 2);
140
140
  this.preparationStartTime = client.util.formatDate(data.preparationStartTime);
141
141
  this.startTime = client.util.formatDate(data.startTime);
142
142
  this.endTime = client.util.formatDate(data.endTime);
@@ -42,7 +42,7 @@ export declare class ClanWarLeagueRound {
42
42
  export declare class ClanWarLeagueGroup {
43
43
  private readonly client;
44
44
  /** The CWL group's current war state. */
45
- state: 'preparation' | 'inWar' | 'warEnded';
45
+ state: 'preparation' | 'inWar' | 'ended';
46
46
  /** Season Id of this CWL group. */
47
47
  season: string;
48
48
  /** Returns all participating clans. */
@@ -139,7 +139,7 @@ export interface APIClanWarLog {
139
139
  }
140
140
  /** /clans/{clanTag}/currentwar/leaguegroup */
141
141
  export interface APIClanWarLeagueGroup {
142
- state: 'preparation' | 'inWar' | 'warEnded';
142
+ state: 'preparation' | 'inWar' | 'ended';
143
143
  season: string;
144
144
  clans: APIClanWarLeagueClan[];
145
145
  rounds: APIClanWarLeagueRound[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clashofclans.js",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-dev.2ab26dd",
4
4
  "description": "JavaScript library for interacting with the Clash of Clans API",
5
5
  "author": "SUVAJIT <suvajit.me@gmail.com>",
6
6
  "license": "MIT",
@@ -94,7 +94,7 @@
94
94
  },
95
95
  "dependencies": {
96
96
  "keyv": "^4.0.4",
97
- "node-fetch": "^2.6.1"
97
+ "node-fetch": "^2.6.7"
98
98
  },
99
99
  "devDependencies": {
100
100
  "@types/keyv": "^3.1.3",