@occultus/task-api 0.22.0-alpha.5 → 0.22.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occultus/task-api",
3
- "version": "0.22.0-alpha.5",
3
+ "version": "0.22.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://codeberg.org/TeamOccultus/StarTenonAPI"
@@ -24,10 +24,10 @@
24
24
  "author": "CTN Studios",
25
25
  "type": "module",
26
26
  "dependencies": {
27
- "@occultus/toolkit": "0.22.1",
28
27
  "@occultus/format-api": "0.21.0",
29
- "@occultus/condition-api": "0.22.0-alpha.6",
30
- "@occultus/text-api": "0.20.0"
28
+ "@occultus/condition-api": "0.22.1",
29
+ "@occultus/toolkit": "0.23.3",
30
+ "@occultus/text-api": "0.23.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@minecraft/server": "^2.4.0",
@@ -35,7 +35,7 @@
35
35
  "@occultus/core": "~0.18.4"
36
36
  },
37
37
  "devDependencies": {
38
- "typedoc": "^0.28.15"
38
+ "typedoc": "^0.28.16"
39
39
  },
40
40
  "scripts": {
41
41
  "test": "tsc"
@@ -1,6 +1,7 @@
1
1
  import { ItemStack, Player } from "@minecraft/server";
2
2
  import { TaskAwards } from "./TaskAwards";
3
3
  import { giveItem } from "@occultus/toolkit";
4
+ import { toOneLine } from "@occultus/text-api";
4
5
 
5
6
  export class ItemAwards extends TaskAwards {
6
7
  constructor(
@@ -19,7 +20,7 @@ export class ItemAwards extends TaskAwards {
19
20
  const item = this.getItem();
20
21
  return {
21
22
  rawtext: [
22
- { translate: item.localizationKey },
23
+ { translate: toOneLine(item.localizationKey) },
23
24
  { text: " × " },
24
25
  { text: item.amount.toString() }
25
26
  ]
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,