@rian8337/osu-droid-replay-analyzer 4.0.0-beta.101 → 4.0.0-beta.102

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -2615,8 +2615,9 @@ class ReplayAnalyzer {
2615
2615
  .on("entry", (entry) => {
2616
2616
  const fileName = entry.path;
2617
2617
  if (fileName === "data") {
2618
- resolve(entry.buffer());
2619
- return;
2618
+ // Using the buffer directly from the entry would cause the promise to never resolve
2619
+ // if the file ends inside the entry, so we need to manually resolve it.
2620
+ entry.buffer().then(resolve, reject);
2620
2621
  }
2621
2622
  else {
2622
2623
  entry.autodrain();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-droid-replay-analyzer",
3
- "version": "4.0.0-beta.101",
3
+ "version": "4.0.0-beta.102",
4
4
  "description": "A replay analyzer for analyzing osu!droid replay files.",
5
5
  "keywords": [
6
6
  "osu",
@@ -34,9 +34,9 @@
34
34
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@rian8337/osu-base": "4.0.0-beta.100",
38
- "@rian8337/osu-difficulty-calculator": "4.0.0-beta.101",
39
- "@rian8337/osu-rebalance-difficulty-calculator": "4.0.0-beta.101",
37
+ "@rian8337/osu-base": "4.0.0-beta.102",
38
+ "@rian8337/osu-difficulty-calculator": "4.0.0-beta.102",
39
+ "@rian8337/osu-rebalance-difficulty-calculator": "4.0.0-beta.102",
40
40
  "java-deserialization": "^0.1.0",
41
41
  "unzipper": "^0.10.11"
42
42
  },
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "6a51736ff25bfe58cbe19a121df333c4484d7c61"
49
+ "gitHead": "e93f9512ed8a9b0ab2747fc75e047ffd53a35d29"
50
50
  }