mm_expand 2.2.7 → 2.2.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.
Files changed (2) hide show
  1. package/lib/base.js +4 -3
  2. package/package.json +1 -1
package/lib/base.js CHANGED
@@ -33,6 +33,8 @@ class Base extends Event {
33
33
  this.setConfig(config);
34
34
  // 监听事件
35
35
  this._listen();
36
+ // 设置状态
37
+ this.setState('created');
36
38
  }
37
39
 
38
40
  /**
@@ -144,7 +146,6 @@ Base.prototype._initCore = async function (...params) {
144
146
  return this;
145
147
  };
146
148
 
147
-
148
149
  /**
149
150
  * 初始化模块 - 内部方法
150
151
  * @private
@@ -161,7 +162,7 @@ Base.prototype._init = async function (...params) {
161
162
  * @returns {object} 返回当前对象
162
163
  */
163
164
  Base.prototype.init = async function (...params) {
164
- return this._init(...params);
165
+ return await this._init(...params);
165
166
  };
166
167
 
167
168
  /**
@@ -184,7 +185,7 @@ Base.prototype._destroy = async function () {
184
185
  * 销毁
185
186
  */
186
187
  Base.prototype.destroy = async function () {
187
- return this._destroy();
188
+ return await this._destroy();
188
189
  };
189
190
 
190
191
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_expand",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "description": "Super Meimei Prototype Function Extension Module - Enhanced operations for string, array, object, date manipulation with error prevention and simplified business logic.",
5
5
  "main": "index.js",
6
6
  "scripts": {