mm_expand 1.5.4 → 1.5.5

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 +1 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2265,10 +2265,7 @@ if (typeof($) === "undefined") {
2265
2265
  */
2266
2266
  File.prototype.load = function(file, encode) {
2267
2267
  if (isFile(file)) {
2268
- if (!encode) {
2269
- encode = "utf-8"
2270
- }
2271
- return readFileSync(file, type);
2268
+ return readFileSync(file, encode);
2272
2269
  }
2273
2270
  };
2274
2271
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_expand",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "这是超级美眉原型函数拓展模块,更有利于对string、array、object的操作,避免出错,简化业务逻辑。",
5
5
  "main": "index.js",
6
6
  "scripts": {