mm_statics 1.7.7 → 1.7.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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -273,8 +273,8 @@ Static.prototype._addAmdReturn = function (code) {
273
273
  return code;
274
274
  }
275
275
 
276
- // 检查是否已经是简洁格式(有return语句)
277
- if (code.includes('return {')) {
276
+ // 检查是否已经是简洁格式(没有 _exports["default"])
277
+ if (!code.includes('_exports["default"]')) {
278
278
  return code;
279
279
  }
280
280
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {