@rian8337/osu-base 1.0.5 → 1.2.9

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.
@@ -93,9 +93,7 @@ class Beatmap {
93
93
  */
94
94
  get sliderTicks() {
95
95
  const sliders = (this.objects.filter((v) => v instanceof Slider_1.Slider));
96
- return sliders
97
- .map((v) => v.ticks)
98
- .reduce((acc, value) => acc + value, 0);
96
+ return sliders.reduce((acc, value) => acc + value.ticks, 0);
99
97
  }
100
98
  /**
101
99
  * The amount of sliderends in the beatmap.
@@ -108,9 +106,7 @@ class Beatmap {
108
106
  */
109
107
  get sliderRepeatPoints() {
110
108
  const sliders = (this.objects.filter((v) => v instanceof Slider_1.Slider));
111
- return sliders
112
- .map((v) => v.repeatPoints)
113
- .reduce((acc, value) => acc + value, 0);
109
+ return sliders.reduce((acc, value) => acc + value.repeatPoints, 0);
114
110
  }
115
111
  /**
116
112
  * The maximum combo of the beatmap.
@@ -114,7 +114,7 @@ class APIRequestBuilder {
114
114
  class DroidAPIRequestBuilder extends APIRequestBuilder {
115
115
  constructor() {
116
116
  super(...arguments);
117
- this.host = "http://ops.dgsrz.com/api/";
117
+ this.host = "https://osudroid.moe/api/";
118
118
  this.APIkey = process.env
119
119
  .DROID_API_KEY;
120
120
  this.APIkeyParam = `apiKey=${this.APIkey}&`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-base",
3
- "version": "1.0.5",
3
+ "version": "1.2.9",
4
4
  "description": "Base module for all osu! related modules.",
5
5
  "keywords": [
6
6
  "osu",
@@ -11,13 +11,13 @@
11
11
  "license": "MIT",
12
12
  "main": "dist/index.js",
13
13
  "types": "typings/index.d.ts",
14
+ "typedocMain": "src/index.ts",
14
15
  "files": [
15
16
  "dist/**",
16
17
  "typings/**"
17
18
  ],
18
19
  "scripts": {
19
20
  "build": "tsc",
20
- "generate-docs": "typedoc src/index.ts",
21
21
  "lint": "eslint --ext ts",
22
22
  "prepare": "npm run build",
23
23
  "test": "jest -i"
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "c8c092485a5ae3be16f2bfa0a3defb00163918d7"
44
+ "gitHead": "4bb4b0c00cf07d5624e1af644a01685697b2832c"
45
45
  }