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.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. 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 = async function(dir) {
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 = async function(dir) {
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 = async function(dir) {
535
- await this.update_before(dir);
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
- await this.update_after(dir);
539
+ this.update_after(dir);
540
540
  };
541
541
 
542
542
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
5
5
  "main": "index.js",
6
6
  "scripts": {