mm_machine 3.4.3 → 3.4.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/lib/drive.js +3 -18
- package/package.json +1 -1
package/lib/drive.js
CHANGED
|
@@ -195,7 +195,7 @@ Drive.prototype._initOptions = function () {
|
|
|
195
195
|
* @returns {string} 缓存目录
|
|
196
196
|
*/
|
|
197
197
|
Drive.prototype._getCacheDir = function () {
|
|
198
|
-
return './cache/options'.fullname();
|
|
198
|
+
return './cache/options'.fullname($.run_path);
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
/**
|
|
@@ -203,23 +203,8 @@ Drive.prototype._getCacheDir = function () {
|
|
|
203
203
|
* @returns {string} 选项缓存文件名
|
|
204
204
|
*/
|
|
205
205
|
Drive.prototype._getOptionsFileName = function () {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
let parent_name = '';
|
|
209
|
-
if (parent) {
|
|
210
|
-
// 获取上级构造名
|
|
211
|
-
let constructor_name = parent.constructor.name || '';
|
|
212
|
-
// 再获取上级名称
|
|
213
|
-
let mod_name = parent.config?.name || '';
|
|
214
|
-
parent_name = constructor_name + '_' + mod_name;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// 再获取当前模块名
|
|
218
|
-
let current_name = this.constructor.name + '_' + (this.config.name || 'default');
|
|
219
|
-
if (parent_name) {
|
|
220
|
-
current_name = parent_name + '/' + current_name;
|
|
221
|
-
}
|
|
222
|
-
return `./${current_name}.json`.toLowerCase();
|
|
206
|
+
var current_name = this.constructor.name + '_' + (this.config.name || 'default');
|
|
207
|
+
return './' + current_name.toLowerCase() + '.json';
|
|
223
208
|
};
|
|
224
209
|
|
|
225
210
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.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": {
|