@occultus/music-api 0.20.0 → 0.21.0

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/README.md CHANGED
@@ -49,4 +49,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
49
49
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
50
50
 
51
51
  THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
52
- ```
52
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occultus/music-api",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://codeberg.org/TeamOccultus/StarTenonAPI"
@@ -24,14 +24,14 @@
24
24
  "license": "MIT",
25
25
  "author": "CTN Studios",
26
26
  "peerDependencies": {
27
- "@minecraft/server": ">=2.0.0",
28
- "@occultus/core": ">=0.18.4 || <0.19.0"
27
+ "@minecraft/server": "^2.4.0",
28
+ "@occultus/core": "^1.1.0"
29
29
  },
30
30
  "dependencies": {
31
- "@occultus/format-api": "0.20.0"
31
+ "@occultus/format-api": "0.21.0"
32
32
  },
33
33
  "devDependencies": {
34
- "typedoc": "^0.28.9"
34
+ "typedoc": "^0.28.16"
35
35
  },
36
36
  "scripts": {
37
37
  "test": "tsc"
@@ -2,7 +2,7 @@ import {
2
2
  PlayerBreakBlockBeforeEvent,
3
3
  PlayerInteractWithBlockBeforeEvent,
4
4
  system,
5
- world,
5
+ world
6
6
  } from "@minecraft/server";
7
7
  import { MusicDisc } from "./MusicDisc";
8
8
  import { Color } from "@occultus/format-api";
@@ -105,15 +105,15 @@ function inputListener(
105
105
  .getPlayers({
106
106
  location: block.location,
107
107
  minDistance: 0,
108
- maxDistance: 10,
108
+ maxDistance: 10
109
109
  })
110
110
  .forEach((player) => {
111
111
  player.onScreenDisplay.setActionBar([
112
112
  Color.lightPurple,
113
113
  {
114
114
  translate: "record.nowPlaying",
115
- with: [`${artist} - ${name}`],
116
- },
115
+ with: [`${artist} - ${name}`]
116
+ }
117
117
  ]);
118
118
  });
119
119
  });
package/src/index.ts CHANGED
@@ -1,2 +1,5 @@
1
+ /**
2
+ * @module @occultus/music-api
3
+ */
1
4
  export * from "./api/MusicDisc";
2
- export * from "./api/MusicDiscServer";
5
+ export * from "./api/MusicDiscServer";
package/tsconfig.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "noEmit": true,
9
9
  "noEmitOnError": true,
10
10
  "target": "es2022",
11
- "lib": ["es2020", "dom"],
11
+ "lib": ["es2021", "dom"],
12
12
  "strict": true,
13
13
  "moduleResolution": "bundler",
14
14
  "esModuleInterop": true,