bc-minecraft-bedrock-command 1.2.29 → 1.2.30

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.
@@ -1,4 +1,13 @@
1
1
  import { ParameterType } from "../Types/ParameterType";
2
+ /**An interface that carries additional obsolete info*/
3
+ export interface ObsoleteInfo {
4
+ /**The message to be displayed */
5
+ message: string;
6
+ /**The error code to use*/
7
+ code: string | number;
8
+ /**The version in which the command was removed*/
9
+ format_version?: string;
10
+ }
2
11
  /**A single command syntax*/
3
12
  export interface CommandInfo {
4
13
  /**The name of the command*/
@@ -7,6 +16,8 @@ export interface CommandInfo {
7
16
  documentation: string;
8
17
  /**The parameter that make this particular syntax*/
9
18
  parameters: ParameterInfo[];
19
+ /**Marks */
20
+ obsolete?: boolean | ObsoleteInfo;
10
21
  }
11
22
  /**The information of a single parameter.*/
12
23
  export interface ParameterInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-minecraft-bedrock-command",
3
- "version": "1.2.29",
3
+ "version": "1.2.30",
4
4
  "description": "A typescript package library that handles commands for minecraft bedrock",
5
5
  "main": "./lib/src/main.js",
6
6
  "types": "./lib/src/main.d.ts",
@@ -43,15 +43,15 @@
43
43
  "homepage": "https://github.com/Blockception/BC-Minecraft-Bedrock-Command#readme",
44
44
  "devDependencies": {
45
45
  "@types/chai": "^4.3.1",
46
- "@types/mocha": "^9.1.0",
47
- "@types/node": "^17.0.25",
46
+ "@types/mocha": "^9.1.1",
47
+ "@types/node": "^18.6.1",
48
48
  "chai": "^4.3.6",
49
- "mocha": "^9.2.2",
49
+ "mocha": "^10.0.0",
50
50
  "rimraf": "^3.0.2",
51
- "ts-node": "^10.7.0",
52
- "typescript": "^4.6.3"
51
+ "ts-node": "^10.9.1",
52
+ "typescript": "^4.7.4"
53
53
  },
54
54
  "dependencies": {
55
- "bc-minecraft-bedrock-types": "^1.3.5"
55
+ "bc-minecraft-bedrock-types": "^1.3.8"
56
56
  }
57
57
  }