mm_machine 3.2.0 → 3.2.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/manager.js +1 -5
- package/package.json +1 -1
package/manager.js
CHANGED
|
@@ -343,11 +343,7 @@ Manager.prototype.regMod = function (config_file, config = {}, script = {}) {
|
|
|
343
343
|
|
|
344
344
|
var mod = this.newMod(config_file, cg, script);
|
|
345
345
|
if (!mod) return null;
|
|
346
|
-
|
|
347
|
-
// 模块已存在时不替换内存实例,避免破坏已初始化的模块
|
|
348
|
-
if (!this.mods[mod.config.name]) {
|
|
349
|
-
this.setMod(mod.config.name, mod);
|
|
350
|
-
}
|
|
346
|
+
this.setMod(mod.config.name, mod);
|
|
351
347
|
|
|
352
348
|
var entry = {
|
|
353
349
|
name: mod.config.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.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": {
|