mm_machine 3.5.0 → 3.5.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/lib/scanner.js +4 -4
- package/package.json +1 -1
package/lib/scanner.js
CHANGED
|
@@ -179,9 +179,9 @@ Scanner.prototype.scanDir = async function (
|
|
|
179
179
|
if (cache) {
|
|
180
180
|
return cache.list.slice();
|
|
181
181
|
}
|
|
182
|
-
let dirs =
|
|
182
|
+
let dirs = $.dir.getAll(dir, dirname, ignore, max_depth);
|
|
183
183
|
// 目录快照需包含全部目录(忽略关键词), 才能检测新增目录
|
|
184
|
-
let all_dirs =
|
|
184
|
+
let all_dirs = $.dir.getAll(dir, undefined, ignore, max_depth);
|
|
185
185
|
_setCache(key, dirs, all_dirs);
|
|
186
186
|
return dirs;
|
|
187
187
|
};
|
|
@@ -206,9 +206,9 @@ Scanner.prototype.scanFile = async function (
|
|
|
206
206
|
if (cache) {
|
|
207
207
|
return cache.list.slice();
|
|
208
208
|
}
|
|
209
|
-
let files =
|
|
209
|
+
let files = $.file.getAll(dir, filename, undefined, ignore, max_depth);
|
|
210
210
|
// 目录快照用于检测新增或删除文件
|
|
211
|
-
let all_dirs =
|
|
211
|
+
let all_dirs = $.dir.getAll(dir, undefined, ignore, max_depth);
|
|
212
212
|
_setCache(key, files, all_dirs);
|
|
213
213
|
return files;
|
|
214
214
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.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": {
|