clashofclans.js 2.5.1-dev.63736bf → 2.5.2

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,13 @@
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.2 (2022-01-23)
6
+
7
+ ### Bug Fixes
8
+
9
+ - Fix `ClanWar#attacksPerMembers` property ([#97](https://github.com/clashperk/clashofclans.js/pull/97))
10
+ - Bump `node-fetch` from 2.6.6 to 2.6.7 ([#96](https://github.com/clashperk/clashofclans.js/pull/96))
11
+
5
12
  ## 2.5.1 (2022-01-11)
6
13
 
7
14
  ### 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clashofclans.js",
3
- "version": "2.5.1-dev.63736bf",
3
+ "version": "2.5.2",
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",