mm_os 2.5.8 → 2.5.9

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.
@@ -56,7 +56,7 @@ module.exports = {
56
56
  */
57
57
  start(option) {
58
58
  var msg = null;
59
- console.log("启动了", this.options());
59
+ console.log("启动了", this.get_options());
60
60
  return msg;
61
61
  },
62
62
 
package/demo/index.js CHANGED
@@ -3,8 +3,13 @@ const OS = require("../index.js");
3
3
 
4
4
  $.runPath = __dirname + $.slash;
5
5
  var NODE_ENV = process.env.NODE_ENV || 'local';
6
+ // 避免掉线
7
+ if (NODE_ENV == 'local') {
8
+ process.on('uncaughtException', (err) => {
9
+ console.error('捕获到未处理的异常:', err);
10
+ });
11
+ }
6
12
  var config = `./config/${NODE_ENV}.json`.fullname().loadJson();
7
- console.log("模式", NODE_ENV);
8
13
  var os = new OS(config);
9
14
 
10
15
  $.sql = $.mysql_admin('sys', __dirname);
@@ -17,7 +22,6 @@ setTimeout(async () => {
17
22
  mqtt.start();
18
23
  await mqtt.update();
19
24
  mqtt.run(null, 'init');
20
- // console.log("打印", $.eventer, mqtt);
21
25
  }, 2000);
22
26
 
23
27
  os.run();
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
- {
2
- "name": "mm_os",
3
- "version": "2.5.8",
4
- "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "cross-env NODE_ENV=test node ./demo/index.js",
8
- "start": "node --trace-warnings ./demo/index.js",
9
- "dev": "cross-env NODE_ENV=development nodemon ./demo/index.js"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://gitee.com/qiuwenwu91/mm_os.git"
14
- },
15
- "keywords": [
16
- "超级美眉",
17
- "游戏",
18
- "系统",
19
- "物联网",
20
- "服务端",
21
- "框架",
22
- "函数式",
23
- "公众号",
24
- "MM",
25
- "game",
26
- "iot",
27
- "server",
28
- "framework"
29
- ],
30
- "author": "邱文武",
31
- "license": "ISC",
32
- "dependencies": {
33
- "koa": "^2.15.3",
34
- "koa-body": "^6.0.1",
35
- "koa-compress": "^5.1.1",
36
- "koa-send": "^5.0.1",
37
- "koa-websocket": "^7.0.0",
38
- "mm_check": "^1.4.8",
39
- "mm_excel": "^1.2.0",
40
- "mm_expand": "^1.7.4",
41
- "mm_html": "^1.1.6",
42
- "mm_koa_proxy": "^1.0.0",
43
- "mm_logs": "^1.1.5",
44
- "mm_machine": "^1.8.1",
45
- "mm_mongodb": "^1.4.2",
46
- "mm_mqtt": "^1.0.6",
47
- "mm_mysql": "^1.8.5",
48
- "mm_redis": "^1.4.2",
49
- "mm_ret": "^1.3.9",
50
- "mm_session": "^1.4.8",
51
- "mm_statics": "^1.4.8",
52
- "mm_tpl": "^2.3.9",
53
- "mm_xml": "^1.1.5",
54
- "mosca": "^2.8.3",
55
- "mqtt": "^5.10.3",
56
- "publish": "^0.6.0"
57
- }
58
- }
1
+ {
2
+ "name": "mm_os",
3
+ "version": "2.5.9",
4
+ "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "cross-env NODE_ENV=test node ./demo/index.js",
8
+ "start": "node --trace-warnings ./demo/index.js",
9
+ "dev": "cross-env NODE_ENV=development nodemon ./demo/index.js"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://gitee.com/qiuwenwu91/mm_os.git"
14
+ },
15
+ "keywords": [
16
+ "超级美眉",
17
+ "游戏",
18
+ "系统",
19
+ "物联网",
20
+ "服务端",
21
+ "框架",
22
+ "函数式",
23
+ "公众号",
24
+ "MM",
25
+ "game",
26
+ "iot",
27
+ "server",
28
+ "framework"
29
+ ],
30
+ "author": "邱文武",
31
+ "license": "ISC",
32
+ "dependencies": {
33
+ "koa": "^2.15.3",
34
+ "koa-body": "^6.0.1",
35
+ "koa-compress": "^5.1.1",
36
+ "koa-send": "^5.0.1",
37
+ "koa-websocket": "^7.0.0",
38
+ "mm_check": "^1.4.8",
39
+ "mm_excel": "^1.2.0",
40
+ "mm_expand": "^1.7.7",
41
+ "mm_html": "^1.1.6",
42
+ "mm_koa_proxy": "^1.0.0",
43
+ "mm_logs": "^1.1.6",
44
+ "mm_machine": "^1.8.1",
45
+ "mm_mongodb": "^1.4.2",
46
+ "mm_mqtt": "^1.0.6",
47
+ "mm_mysql": "^1.8.6",
48
+ "mm_redis": "^1.4.2",
49
+ "mm_ret": "^1.3.9",
50
+ "mm_session": "^1.4.8",
51
+ "mm_statics": "^1.4.8",
52
+ "mm_tpl": "^2.3.9",
53
+ "mm_xml": "^1.1.5",
54
+ "mosca": "^2.8.3",
55
+ "mqtt": "^5.10.3",
56
+ "publish": "^0.6.0"
57
+ }
58
+ }