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.
- package/index.js +4 -4
- 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
|
};
|