mm_machine 2.4.0 → 2.4.1

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.
Files changed (2) hide show
  1. package/index.js +8 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -202,7 +202,7 @@ Manager.prototype.updateInfo = function () {
202
202
  /**
203
203
  * 排序
204
204
  */
205
- Manager.prototype.sort = function () {
205
+ Manager.prototype._sort = function () {
206
206
  var sort_key = this.config.sort_key || 'sort';
207
207
  this.infos.sort((o1, o2) => {
208
208
  let p1 = o1[sort_key] || 100;
@@ -211,6 +211,13 @@ Manager.prototype.sort = function () {
211
211
  });
212
212
  };
213
213
 
214
+ /**
215
+ * 排序
216
+ */
217
+ Manager.prototype.sort = function () {
218
+ this._sort();
219
+ };
220
+
214
221
  // ==== 模块管理接口 ====
215
222
  /**
216
223
  * 删除模块
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A flexible Node.js plugin mechanism system for dynamic loading, management and execution of modules. Supports hot reload, lifecycle management, and modern JavaScript features.",
5
5
  "main": "index.js",
6
6
  "scripts": {