@xiaoguomeiyitian/core 2.0.2 → 2.0.4

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.
@@ -19,3 +19,4 @@ if (cmd == "bytenode") {
19
19
  const gen = new index_1.BytenodeMgr();
20
20
  gen.gen(process.argv[3]);
21
21
  }
22
+ //# sourceMappingURL=cli.js.map
@@ -16,3 +16,4 @@ else {
16
16
  lib = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc');
17
17
  }
18
18
  exports.Global = lib.Global, exports.Entity = lib.Entity, exports.GenEntityDefs = lib.GenEntityDefs, exports.GenServiceFunc = lib.GenServiceFunc, exports.BytenodeMgr = lib.BytenodeMgr;
19
+ //# sourceMappingURL=index.js.map
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "name": "@xiaoguomeiyitian/core",
3
- "version": "2.0.2",
4
- "main": "dist/index.js",
3
+ "version": "2.0.4",
4
+ "main": "dist/src/index.js",
5
5
  "types": "types/lib.d.ts",
6
6
  "bin": {
7
- "core": "./dist/cli.js"
7
+ "core": "./dist/src/cli.js"
8
8
  },
9
9
  "files": [
10
10
  "types/lib.d.ts",
11
- "dist/index.js",
12
- "dist/cli.js",
13
- "dist/lib_*.jsc",
11
+ "dist/src/index.js",
12
+ "dist/src/cli.js",
13
+ "dist/src/lib_*.jsc",
14
14
  "README.md"
15
15
  ],
16
16
  "scripts": {
17
17
  "pull": "git stash && git pull && git stash pop",
18
18
  "build": "tsc --build --diagnostics",
19
- "jsc": "node ./gen_jsc.js ./dist/lib.js ./dist/lib.jsc",
19
+ "jsc": "node ./gen_jsc.js ./dist/src/lib.js ./dist/src/lib.jsc",
20
20
  "pack": "npm pack --pack-destination ../sheShou/server_dev",
21
21
  "bp": "npm run build && npm run jsc && npm run pack"
22
22
  },
23
23
  "bundleDependencies": [],
24
24
  "devDependencies": {
25
25
  "@types/node": "^22.14.1",
26
- "typescript": "^5.9.3"
26
+ "typescript": "^6.0.2"
27
27
  },
28
28
  "dependencies": {
29
29
  "@xiaoguomeiyitian/utils": "^0.1.3",
package/types/lib.d.ts CHANGED
@@ -60,8 +60,10 @@ export declare class Global {
60
60
  outputGC(threshold?: number, durationMs?: number): void;
61
61
  }
62
62
  export declare class Entity {
63
- type: string; /** 实体类型 */
64
- id: string; /** 实体id */
63
+ /** 实体类型 */
64
+ type: string;
65
+ /** 实体id */
66
+ id: string;
65
67
  /** 连接列表 */
66
68
  conns: WsConnection[];
67
69
  constructor(type: string, id?: string);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file