mm_statics 1.4.7 → 1.4.8

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 +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -154,12 +154,12 @@ Statics.prototype.run = async function(ctx, next) {
154
154
  module.exports = function(root, config, es6_to_amd) {
155
155
  var static = new Statics(root, config, es6_to_amd);
156
156
  if (static.es6_to_amd.files.length > 0) {
157
- return function(ctx, next) {
158
- static.main(ctx, next);
157
+ return async function(ctx, next) {
158
+ await static.main(ctx, next);
159
159
  };
160
160
  } else {
161
- return function(ctx, next) {
162
- static.run(ctx, next);
161
+ return async function(ctx, next) {
162
+ await static.run(ctx, next);
163
163
  };
164
164
  }
165
165
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {