mm_machine 2.6.0 → 2.6.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.
- package/index.js +2 -2
- package/package.json +1 -1
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.
|
|
3
|
+
"version": "2.6.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": {
|