mm_machine 2.6.0 → 2.6.2

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 +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -967,10 +967,10 @@ Manager.prototype.create = function (config, file = '') {
967
967
  * @param {string} name 模块名称
968
968
  * @returns {object} 删除的模块实例
969
969
  */
970
- Manager.prototype.remove = function (name) {
970
+ Manager.prototype.remove = async function (name) {
971
971
  let mod = this.getMod(name);
972
972
  if (mod) {
973
- mod.remove();
973
+ await mod.remove();
974
974
  }
975
975
  this.unregisterMod(name);
976
976
  return mod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
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": {
@@ -36,7 +36,7 @@
36
36
  "@prettier/sync": "^0.6.1",
37
37
  "mm_config": "^2.3.2",
38
38
  "mm_hot_reload": "^1.3.2",
39
- "mm_tpl": "^2.5.0"
39
+ "mm_tpl": "^2.5.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "eslint": "^10.2.1",