mm_scanner 1.1.0 → 1.2.0

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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  const Scanner = require('./lib/scanner');
2
+ const { Watcher } = require('mm_watcher');
2
3
  const Admin = require('mm_corejs').Admin;
3
4
 
4
5
  const admin = new Admin();
@@ -6,6 +7,7 @@ admin.setClass(Scanner);
6
7
 
7
8
  module.exports = {
8
9
  Scanner,
10
+ Watcher,
9
11
  admin,
10
12
  scannerAdmin(scope, config) {
11
13
  if (!scope) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mm_scanner",
3
- "version": "1.1.0",
4
- "description": "目录扫描器,按扩展名递归扫描目录并缓存文件元信息,支持按 key、扩展名、目录检索文件路径,默认忽略 .git/node_modules 等常见目录,支持目录监听热更新。",
3
+ "version": "1.2.0",
4
+ "description": "目录扫描器,按扩展名递归扫描目录并缓存文件元信息,支持按 key、扩展名、目录检索文件路径,默认忽略 .git/node_modules 等常见目录,支持目录监听热更新,并再导出 mm_watcher 的 Watcher 供单文件监听使用。",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://gitee.com/qiuwenwu91/mm_scanner.git"