@occultus/api 0.23.1 → 0.23.3
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/LICENSE +9 -9
- package/README.md +4 -4
- package/package.json +12 -12
- package/src/apiVer.ts +26 -25
- package/src/index.ts +24 -24
package/LICENSE
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright © 2025 CTN Studios
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
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.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 CTN Studios
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
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.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Star Tenon API
|
|
2
|
-
|
|
3
|
-
> [!IMPORTANT]
|
|
4
|
-
> 该包仍处于开发阶段,可能会有一些问题亟待修复
|
|
1
|
+
# Star Tenon API
|
|
2
|
+
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> 该包仍处于开发阶段,可能会有一些问题亟待修复
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@occultus/api",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://codeberg.org/TeamOccultus/StarTenonAPI"
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"author": "CTN Studios",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@occultus/article-api": "0.22.0-alpha.1",
|
|
27
|
-
"@occultus/common": "0.20.0",
|
|
28
27
|
"@occultus/artifact-api": "0.22.1",
|
|
29
|
-
"@occultus/
|
|
30
|
-
"@occultus/block-api": "0.22.0
|
|
28
|
+
"@occultus/common": "0.20.0",
|
|
29
|
+
"@occultus/block-api": "0.22.0",
|
|
30
|
+
"@occultus/format-api": "0.21.0",
|
|
31
31
|
"@occultus/entity-api": "0.22.0-alpha.1",
|
|
32
|
+
"@occultus/time-api": "0.20.0",
|
|
32
33
|
"@occultus/text-api": "0.22.0",
|
|
33
|
-
"@occultus/format-api": "0.21.0",
|
|
34
|
-
"@occultus/item-api": "0.22.0-beta.1",
|
|
35
34
|
"@occultus/task-api": "0.22.0-alpha.5",
|
|
35
|
+
"@occultus/item-api": "0.22.0-beta.1",
|
|
36
36
|
"@occultus/skill-api": "0.20.0",
|
|
37
|
+
"@occultus/notification-api": "0.20.0",
|
|
37
38
|
"@occultus/music-api": "0.20.0",
|
|
38
39
|
"@occultus/math-api": "0.22.0",
|
|
39
|
-
"@occultus/
|
|
40
|
-
"@occultus/notification-api": "0.20.0",
|
|
40
|
+
"@occultus/tutorial-api": "0.20.0",
|
|
41
41
|
"@occultus/logger-api": "0.20.0",
|
|
42
42
|
"@occultus/loot-api": "0.20.0",
|
|
43
|
+
"@occultus/job-api": "0.22.3",
|
|
44
|
+
"@occultus/random-api": "0.20.0",
|
|
43
45
|
"@occultus/toolkit": "0.23.1",
|
|
44
|
-
"@occultus/tutorial-api": "0.20.0",
|
|
45
|
-
"@occultus/job-api": "0.22.1",
|
|
46
|
-
"@occultus/condition-api": "0.22.0-beta.2",
|
|
47
46
|
"@occultus/effect-api": "0.22.0-alpha.1",
|
|
48
|
-
"@occultus/credits-api": "0.23.1"
|
|
47
|
+
"@occultus/credits-api": "0.23.1",
|
|
48
|
+
"@occultus/condition-api": "0.22.0-beta.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@minecraft/server": "^2.4.0",
|
package/src/apiVer.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module StarTenonAPI
|
|
3
|
-
*/
|
|
4
|
-
export class StarTenon {
|
|
5
|
-
private constructor() {}
|
|
6
|
-
/**
|
|
7
|
-
* Star Tenon API 版本级别
|
|
8
|
-
*
|
|
9
|
-
* - 1:基础 API;
|
|
10
|
-
* - 2:添加了教程 API;
|
|
11
|
-
* - 3:优化了大部分 API 接口依赖的版本;
|
|
12
|
-
* - 4:完善了任务 API 的条件与奖励、加入了 `Localization` 类;
|
|
13
|
-
* - 5:加入了模拟效果 API;
|
|
14
|
-
* - 6:加入了职业 API
|
|
15
|
-
* - 6.1:工具集的一些优化与改进
|
|
16
|
-
* - 6.2:`ensureNamespace`与`ensureNoNamespace`函数与漏洞修复
|
|
17
|
-
* - 7:加入了 Credits API
|
|
18
|
-
* - 7.1:新的工具集函数
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module StarTenonAPI
|
|
3
|
+
*/
|
|
4
|
+
export class StarTenon {
|
|
5
|
+
private constructor() {}
|
|
6
|
+
/**
|
|
7
|
+
* Star Tenon API 版本级别
|
|
8
|
+
*
|
|
9
|
+
* - 1:基础 API;
|
|
10
|
+
* - 2:添加了教程 API;
|
|
11
|
+
* - 3:优化了大部分 API 接口依赖的版本;
|
|
12
|
+
* - 4:完善了任务 API 的条件与奖励、加入了 `Localization` 类;
|
|
13
|
+
* - 5:加入了模拟效果 API;
|
|
14
|
+
* - 6:加入了职业 API
|
|
15
|
+
* - 6.1:工具集的一些优化与改进
|
|
16
|
+
* - 6.2:`ensureNamespace`与`ensureNoNamespace`函数与漏洞修复
|
|
17
|
+
* - 7:加入了 Credits API
|
|
18
|
+
* - 7.1:新的工具集函数
|
|
19
|
+
* - 7.2:职业 API 的改进
|
|
20
|
+
*/
|
|
21
|
+
static apiLevel: number = 7.2;
|
|
22
|
+
/**
|
|
23
|
+
* Star Tenon API 对应的版本号
|
|
24
|
+
*/
|
|
25
|
+
static version: string = `0.23.2 (API: ${this.apiLevel})`;
|
|
26
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export * from "./apiVer";
|
|
2
|
-
export * from "@occultus/core";
|
|
3
|
-
export * from "@occultus/common";
|
|
4
|
-
export * from "@occultus/time-api";
|
|
5
|
-
export * from "@occultus/text-api";
|
|
6
|
-
export * from "@occultus/format-api";
|
|
7
|
-
export * from "@occultus/entity-api";
|
|
8
|
-
export * from "@occultus/skill-api";
|
|
9
|
-
export * from "@occultus/item-api";
|
|
10
|
-
export * from "@occultus/task-api";
|
|
11
|
-
export * from "@occultus/music-api";
|
|
12
|
-
export * from "@occultus/math-api";
|
|
13
|
-
export * from "@occultus/notification-api";
|
|
14
|
-
export * from "@occultus/loot-api";
|
|
15
|
-
export * from "@occultus/logger-api";
|
|
16
|
-
export * from "@occultus/block-api";
|
|
17
|
-
export * from "@occultus/artifact-api";
|
|
18
|
-
export * from "@occultus/article-api";
|
|
19
|
-
export * from "@occultus/random-api";
|
|
20
|
-
export * from "@occultus/tutorial-api";
|
|
21
|
-
export * from "@occultus/effect-api";
|
|
22
|
-
export * from "@occultus/job-api";
|
|
23
|
-
export * from "@occultus/toolkit";
|
|
24
|
-
export * from "@occultus/condition-api";
|
|
1
|
+
export * from "./apiVer";
|
|
2
|
+
export * from "@occultus/core";
|
|
3
|
+
export * from "@occultus/common";
|
|
4
|
+
export * from "@occultus/time-api";
|
|
5
|
+
export * from "@occultus/text-api";
|
|
6
|
+
export * from "@occultus/format-api";
|
|
7
|
+
export * from "@occultus/entity-api";
|
|
8
|
+
export * from "@occultus/skill-api";
|
|
9
|
+
export * from "@occultus/item-api";
|
|
10
|
+
export * from "@occultus/task-api";
|
|
11
|
+
export * from "@occultus/music-api";
|
|
12
|
+
export * from "@occultus/math-api";
|
|
13
|
+
export * from "@occultus/notification-api";
|
|
14
|
+
export * from "@occultus/loot-api";
|
|
15
|
+
export * from "@occultus/logger-api";
|
|
16
|
+
export * from "@occultus/block-api";
|
|
17
|
+
export * from "@occultus/artifact-api";
|
|
18
|
+
export * from "@occultus/article-api";
|
|
19
|
+
export * from "@occultus/random-api";
|
|
20
|
+
export * from "@occultus/tutorial-api";
|
|
21
|
+
export * from "@occultus/effect-api";
|
|
22
|
+
export * from "@occultus/job-api";
|
|
23
|
+
export * from "@occultus/toolkit";
|
|
24
|
+
export * from "@occultus/condition-api";
|
|
25
25
|
export * from "@occultus/credits-api";
|