mm_statics 1.4.7 → 1.4.9
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 +5 -5
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.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://gitee.com/qiuwenwu91/mm_statics.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"mystatics",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "邱文武",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"bugs": {
|
|
29
|
-
"url": "https://
|
|
29
|
+
"url": "https://gitee.com/qiuwenwu91/mm_statics/issues"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://gitee.com/qiuwenwu91/mm_statics#readme",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"abstract-syntax-tree": "^2.22.0",
|
|
34
34
|
"koa-send": "^5.0.1",
|
|
35
|
-
"mm_es6_to_amd": "^1.4.
|
|
35
|
+
"mm_es6_to_amd": "^1.4.2"
|
|
36
36
|
}
|
|
37
37
|
}
|