@xiaoguomeiyitian/core 1.3.8 → 2.0.0
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/README.md +3 -3
- package/dist/cli.js +5 -0
- package/dist/index.js +2 -2
- package/dist/lib_darwin_20.jsc +0 -0
- package/dist/lib_darwin_22.jsc +0 -0
- package/dist/lib_darwin_24.jsc +0 -0
- package/dist/lib_linux_20.jsc +0 -0
- package/dist/lib_linux_22.jsc +0 -0
- package/dist/lib_linux_24.jsc +0 -0
- package/dist/lib_win32_20.jsc +0 -0
- package/dist/lib_win32_22.jsc +0 -0
- package/dist/lib_win32_24.jsc +0 -0
- package/package.json +3 -3
- package/types/lib.d.ts +3 -0
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -14,3 +14,8 @@ if (cmd == "func") {
|
|
|
14
14
|
gen.gen("./src/rpc/serviceProto.ts", "./src/rpc/serviceFunc.ts", ["rpc"]);
|
|
15
15
|
gen.gen("./src/shared/protocols/serviceProto.ts", "./src/shared/protocols/serviceFunc.ts", ["client", "server"]);
|
|
16
16
|
}
|
|
17
|
+
//生成字节码
|
|
18
|
+
if (cmd == "bytenode") {
|
|
19
|
+
const gen = new index_1.BytenodeMgr();
|
|
20
|
+
gen.gen(process.argv[3]);
|
|
21
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GenServiceFunc = exports.GenEntityDefs = exports.Entity = exports.Global = void 0;
|
|
6
|
+
exports.BytenodeMgr = exports.GenServiceFunc = exports.GenEntityDefs = exports.Entity = exports.Global = void 0;
|
|
7
7
|
require("bytenode");
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -15,4 +15,4 @@ if (fs_1.default.existsSync(path_1.default.resolve(process.cwd(), './core'))) {
|
|
|
15
15
|
else {
|
|
16
16
|
lib = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc');
|
|
17
17
|
}
|
|
18
|
-
exports.Global = lib.Global, exports.Entity = lib.Entity, exports.GenEntityDefs = lib.GenEntityDefs, exports.GenServiceFunc = lib.GenServiceFunc;
|
|
18
|
+
exports.Global = lib.Global, exports.Entity = lib.Entity, exports.GenEntityDefs = lib.GenEntityDefs, exports.GenServiceFunc = lib.GenServiceFunc, exports.BytenodeMgr = lib.BytenodeMgr;
|
package/dist/lib_darwin_20.jsc
CHANGED
|
Binary file
|
package/dist/lib_darwin_22.jsc
CHANGED
|
Binary file
|
package/dist/lib_darwin_24.jsc
CHANGED
|
Binary file
|
package/dist/lib_linux_20.jsc
CHANGED
|
Binary file
|
package/dist/lib_linux_22.jsc
CHANGED
|
Binary file
|
package/dist/lib_linux_24.jsc
CHANGED
|
Binary file
|
package/dist/lib_win32_20.jsc
CHANGED
|
Binary file
|
package/dist/lib_win32_22.jsc
CHANGED
|
Binary file
|
package/dist/lib_win32_24.jsc
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiaoguomeiyitian/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "types/lib.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"bundleDependencies": [],
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^22.14.1",
|
|
26
|
-
"typescript": "^5.9.
|
|
26
|
+
"typescript": "^5.9.3"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@xiaoguomeiyitian/utils": "^0.1.3",
|
|
30
30
|
"bytenode": "^1.5.7",
|
|
31
31
|
"classic-level": "^3.0.0",
|
|
32
|
-
"tsrpc": "^3.4.
|
|
32
|
+
"tsrpc": "^3.4.21"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/types/lib.d.ts
CHANGED