mm_statics 1.5.5 → 1.5.6

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 +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -196,8 +196,9 @@ Static.prototype._toAmd = async function (file_type, text) {
196
196
  }
197
197
  }
198
198
 
199
- // 格式化代码后返回
200
- return await this._formatCode(txt, file_type);
199
+ // 格式化代码后返回,确保返回字符串而不是Promise
200
+ const result = await this._formatCode(txt, file_type);
201
+ return result;
201
202
  };
202
203
 
203
204
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {