mm_machine 1.7.0 → 1.7.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/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -515,7 +515,7 @@ Index.prototype.sort = function() {
|
|
|
515
515
|
/**
|
|
516
516
|
* 更新前
|
|
517
517
|
*/
|
|
518
|
-
Index.prototype.update_before =
|
|
518
|
+
Index.prototype.update_before = function(dir) {
|
|
519
519
|
// console.log("更新前")
|
|
520
520
|
}
|
|
521
521
|
|
|
@@ -523,7 +523,7 @@ Index.prototype.update_before = async function(dir) {
|
|
|
523
523
|
/**
|
|
524
524
|
* 更新后
|
|
525
525
|
*/
|
|
526
|
-
Index.prototype.update_after =
|
|
526
|
+
Index.prototype.update_after = function(dir) {
|
|
527
527
|
// console.log("更新后")
|
|
528
528
|
}
|
|
529
529
|
|
|
@@ -531,12 +531,12 @@ Index.prototype.update_after = async function(dir) {
|
|
|
531
531
|
* 更新配置
|
|
532
532
|
* @param {String} dir 检索的路径
|
|
533
533
|
*/
|
|
534
|
-
Index.prototype.update =
|
|
535
|
-
|
|
534
|
+
Index.prototype.update = function(dir) {
|
|
535
|
+
this.update_before(dir);
|
|
536
536
|
this.clear();
|
|
537
537
|
this.load(dir);
|
|
538
538
|
this.sort();
|
|
539
|
-
|
|
539
|
+
this.update_after(dir);
|
|
540
540
|
};
|
|
541
541
|
|
|
542
542
|
/**
|