@shirokasoke/webapi-sdk 2.9.0-beta3-0.13-pre2 → 2.9.0-beta3-0.14-pre

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/dist/client.d.ts CHANGED
@@ -273,6 +273,7 @@ export declare class WebApiClient {
273
273
  y: number;
274
274
  z: number;
275
275
  dim?: number;
276
+ dimension?: number;
276
277
  action: "start" | "stop";
277
278
  }): Promise<GT5StatusResult>;
278
279
  /**
@@ -142,6 +142,7 @@ export interface GT5BatchMachineCoord {
142
142
  y: number;
143
143
  z: number;
144
144
  dim?: number;
145
+ dimension?: number;
145
146
  }
146
147
  /** POST /gt5/batch 提交结果 */
147
148
  export interface GT5BatchSubmitResult {
package/package.json CHANGED
@@ -1,21 +1,14 @@
1
1
  {
2
2
  "name": "@shirokasoke/webapi-sdk",
3
- "version": "2.9.0-beta3-0.13-pre2",
3
+ "version": "2.9.0-beta3-0.14-pre",
4
4
  "private": false,
5
5
  "description": "TypeScript SDK for the love.shirokasoke.WebAPI Minecraft Mod",
6
6
  "main": "./dist/index.js",
7
- "module": "./dist/index.mjs",
8
7
  "types": "./dist/index.d.ts",
9
8
  "exports": {
10
9
  ".": {
11
- "import": {
12
- "types": "./dist/index.d.ts",
13
- "default": "./dist/esm/index.js"
14
- },
15
- "require": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.js"
18
- }
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
19
12
  }
20
13
  },
21
14
  "files": [
@@ -23,11 +16,9 @@
23
16
  ],
24
17
  "sideEffects": false,
25
18
  "scripts": {
26
- "build": "npm run build:cjs && npm run build:esm",
27
- "build:cjs": "tsc -p tsconfig.json",
28
- "build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
19
+ "build": "tsc -p tsconfig.json",
29
20
  "test": "tsx --test test/*.test.ts",
30
- "web": "npm run build && cp -r /workspace/sdk/ts/dist/* /workspace/web/node_modules/@shirokasoke/webapi-sdk/dist/"
21
+ "web": "npm run build && rm -rf /workspace/web/node_modules/@shirokasoke/webapi-sdk/dist && cp -r dist package.json /workspace/web/node_modules/@shirokasoke/webapi-sdk/"
31
22
  },
32
23
  "keywords": [
33
24
  "gtnh",
@@ -39,12 +30,12 @@
39
30
  "author": "Rcrwrate",
40
31
  "license": "MIT",
41
32
  "devDependencies": {
42
- "@types/node": "^25.9.0",
43
- "tsx": "^4.22.1",
44
- "typescript": "^5.4.0"
33
+ "@types/node": "^26.6.5",
34
+ "tsx": "^4.23.15",
35
+ "typescript": "^7.0.2"
45
36
  },
46
37
  "dependencies": {
47
38
  "@microsoft/fetch-event-source": "^2.0.1",
48
- "joi": "^18.2.1"
39
+ "joi": "^18.2.9"
49
40
  }
50
41
  }