mm_os 4.0.2 → 4.0.3
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/core/plugin/index.js +9 -0
- package/package.json +3 -3
package/core/plugin/index.js
CHANGED
|
@@ -82,6 +82,15 @@ Plugin.prototype._initCore = async function (app, eventer, logger) {
|
|
|
82
82
|
this._initOptions();
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* 获取应用实例
|
|
87
|
+
* @returns {object} 应用实例
|
|
88
|
+
*/
|
|
89
|
+
Plugin.prototype.getApp = function () {
|
|
90
|
+
// 初始化资源
|
|
91
|
+
return this.getParent();
|
|
92
|
+
};
|
|
93
|
+
|
|
85
94
|
/**
|
|
86
95
|
* 获取插件配置
|
|
87
96
|
* @returns {object} 插件配置
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_os",
|
|
3
3
|
"description": "MM_OS服务端架构,用于快速构建应用程序,支持网站建设、小程序后台、AI应用、物联网(IOT/AIOT)、游戏服务端等多种场景。",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"AI",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"mm_statics": "^1.8.4",
|
|
53
53
|
"mm_xml": "^1.1.7",
|
|
54
54
|
"mqtt": "^5.15.1",
|
|
55
|
-
"openai": "^6.
|
|
55
|
+
"openai": "^6.42.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/jest": "^30.0.0",
|
|
59
59
|
"eslint-formatter-table": "^7.32.1",
|
|
60
|
-
"eslint-plugin-jsdoc": "^63.0.
|
|
60
|
+
"eslint-plugin-jsdoc": "^63.0.1",
|
|
61
61
|
"jest": "^30.4.2",
|
|
62
62
|
"mm_eslint": "^1.7.1"
|
|
63
63
|
},
|