mm_os 4.1.7 → 4.1.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.
package/software.js CHANGED
@@ -22,6 +22,7 @@ class Software {
22
22
 
23
23
  /**
24
24
  * 获取适配器
25
+ * @returns {object} 适配器实例
25
26
  */
26
27
  Software.prototype.getAdapter = function () {
27
28
  return this.getParent().adapter;
@@ -29,6 +30,7 @@ Software.prototype.getAdapter = function () {
29
30
 
30
31
  /**
31
32
  * 获取管理器
33
+ * @returns {object} 管理器实例
32
34
  */
33
35
  Software.prototype.getManager = function () {
34
36
  return this.getParent().manager;
@@ -74,7 +76,7 @@ Software.prototype._initSources = async function () {
74
76
  manager.game.runAll('init', server, server.eventer, server.logger),
75
77
  manager.app.runAll('init', server, server.eventer, server.logger)
76
78
  ]);
77
- await manager.mod.runAll('init', server, server.eventer, server.logger)
79
+ await manager.mod.runAll('init', server, server.eventer, server.logger);
78
80
  };
79
81
 
80
82
  /**
@@ -134,7 +136,7 @@ Software.prototype._createManager = function (name, title, cls) {
134
136
  // 设置到对应的管理器属性
135
137
  server.manager[name] = manager;
136
138
  return manager;
137
- }
139
+ };
138
140
 
139
141
  /**
140
142
  * 启动
@@ -178,6 +180,7 @@ Software.prototype._stopSources = async function () {
178
180
 
179
181
  /**
180
182
  * 运行
183
+ * @returns {object} 软件实例
181
184
  */
182
185
  Software.prototype.run = async function () {
183
186
  await this.load();
package/tcp.js CHANGED
@@ -41,6 +41,7 @@ class TCP {
41
41
 
42
42
  /**
43
43
  * 获取适配器
44
+ * @returns {object} 适配器实例
44
45
  */
45
46
  TCP.prototype.getAdapter = function () {
46
47
  return this.getParent().adapter;
@@ -48,6 +49,7 @@ TCP.prototype.getAdapter = function () {
48
49
 
49
50
  /**
50
51
  * 获取管理器
52
+ * @returns {object} 管理器实例
51
53
  */
52
54
  TCP.prototype.getManager = function () {
53
55
  return this.getParent().manager;
@@ -186,7 +188,7 @@ TCP.prototype._createManager = function (name, title, cls) {
186
188
  // 设置到对应的管理器属性
187
189
  server.manager[name] = manager;
188
190
  return manager;
189
- }
191
+ };
190
192
 
191
193
  /**
192
194
  * 启动
@@ -263,6 +265,7 @@ TCP.prototype._stopSources = async function () {
263
265
 
264
266
  /**
265
267
  * 运行
268
+ * @returns {object} TCP实例
266
269
  */
267
270
  TCP.prototype.run = async function () {
268
271
  await this.load();