bancho.js 0.10.0 → 0.10.1

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,10 @@
2
2
 
3
3
  ## Version 0.10
4
4
 
5
+ ### Version 0.10.1
6
+
7
+ - **BanchoLobby: Fix beatmap never being refreshed from API**
8
+
5
9
  ### Version 0.10.0
6
10
 
7
11
  #### Highlights
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![NPM](https://nodei.co/npm/bancho.js.png?compact=true)](https://nodei.co/npm/bancho.js/)
4
4
  [![pipeline status](https://git.cartooncraft.fr/ThePooN/bancho.js/badges/master/pipeline.svg)](https://git.cartooncraft.fr/ThePooN/bancho.js/commits/master)
5
5
 
6
- ## Current release: 0.10.0
6
+ ## Current release: 0.10.1
7
7
 
8
8
  # Introduction
9
9
 
@@ -27,7 +27,7 @@ class BanchoMessage {
27
27
 
28
28
  /**
29
29
  * The content of this message
30
- * @type {string}
30
+ * @returns {string}
31
31
  */
32
32
  get content() {
33
33
  return this.message;
@@ -35,7 +35,7 @@ class BanchoMessage {
35
35
 
36
36
  /**
37
37
  * Tries to parse this message as an ACTION (/me message).
38
- * @returns {[string]}
38
+ * @returns {string}
39
39
  */
40
40
  getAction() {
41
41
  const action = actionRegex.exec(this.message);
@@ -138,8 +138,8 @@ class BanchoLobby extends EventEmitter {
138
138
  case "playerChangedBeatmap":
139
139
  case "refereeChangedBeatmap":
140
140
  case "beatmapFromSettings":
141
- this.beatmapId = ret.id;
142
141
  if(ret.id != this.beatmapId) {
142
+ this.beatmapId = ret.id;
143
143
  this.beatmap = null;
144
144
  for(const player of this.slots)
145
145
  if(player != null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bancho.js",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Interface with Bancho over IRC, made easy and reliable",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",