mm_machine 2.3.3 → 2.3.4
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 +7 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -130,7 +130,7 @@ Manager.prototype.newInfo = function (name, sort, state, file = '') {
|
|
|
130
130
|
*/
|
|
131
131
|
Manager.prototype.setInfo = function (info) {
|
|
132
132
|
let has = false;
|
|
133
|
-
for(let i = 0; i < this.infos.length; i++) {
|
|
133
|
+
for (let i = 0; i < this.infos.length; i++) {
|
|
134
134
|
let o = this.infos[i];
|
|
135
135
|
if (o.name == info.name) {
|
|
136
136
|
this.infos[i] = info;
|
|
@@ -268,8 +268,12 @@ Manager.prototype.newMod = function (config_file, config, script) {
|
|
|
268
268
|
}
|
|
269
269
|
mod.mode = this.config.mode;
|
|
270
270
|
mod.loadConfig(config_file);
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
if (script) {
|
|
272
|
+
mod.setMethods(script);
|
|
273
|
+
}
|
|
274
|
+
if (config) {
|
|
275
|
+
mod.setConfig(config);
|
|
276
|
+
}
|
|
273
277
|
return mod;
|
|
274
278
|
};
|
|
275
279
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
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": {
|