@xiaoguomeiyitian/core 1.1.4 → 1.1.6
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/index.js +14 -2
- package/dist/lib_linux_20.jsc +0 -0
- package/dist/lib_linux_22.jsc +0 -0
- package/dist/lib_win32_20.jsc +0 -0
- package/dist/lib_win32_22.jsc +0 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
var
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
3
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
6
|
exports.GenServiceFunc = exports.GenEntityDefs = exports.delFiles = exports.copyDir = exports.Entity = exports.Global = void 0;
|
5
7
|
require("bytenode");
|
6
|
-
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
9
|
+
const path_1 = __importDefault(require("path"));
|
10
|
+
;
|
11
|
+
let lib = null;
|
12
|
+
if (fs_1.default.existsSync(path_1.default.resolve(process.cwd(), './core'))) {
|
13
|
+
lib = require(path_1.default.resolve(process.cwd(), './core/lib'));
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
lib = require("./lib_" + process.platform + '_' + process.versions.node.split('.')[0] + '.jsc');
|
17
|
+
}
|
18
|
+
exports.Global = lib.Global, exports.Entity = lib.Entity, exports.copyDir = lib.copyDir, exports.delFiles = lib.delFiles, exports.GenEntityDefs = lib.GenEntityDefs, exports.GenServiceFunc = lib.GenServiceFunc;
|
package/dist/lib_linux_20.jsc
CHANGED
Binary file
|
package/dist/lib_linux_22.jsc
CHANGED
Binary file
|
package/dist/lib_win32_20.jsc
CHANGED
Binary file
|
package/dist/lib_win32_22.jsc
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xiaoguomeiyitian/core",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.6",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "types/lib.d.ts",
|
6
6
|
"bin": {
|
@@ -13,6 +13,7 @@
|
|
13
13
|
"dist/lib_*.jsc"
|
14
14
|
],
|
15
15
|
"scripts": {
|
16
|
+
"pull": "git stash && git pull && git stash pop",
|
16
17
|
"build": "tsc --build --diagnostics",
|
17
18
|
"jsc": "node ./gen_jsc.js ./dist/lib.js ./dist/lib.jsc",
|
18
19
|
"pack": "npm pack --pack-destination ../sheShou/server",
|