mm_expand 2.3.1 → 2.3.2
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/lib/eventer.js +7 -7
- package/package.json +1 -1
package/lib/eventer.js
CHANGED
|
@@ -1071,8 +1071,8 @@ Eventer.prototype.emit = function (key, ...params) {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
} catch (
|
|
1075
|
-
this.log('error', `事件触发失败 [${key}]`,
|
|
1074
|
+
} catch (error) {
|
|
1075
|
+
this.log('error', `事件触发失败 [${key}]`, error);
|
|
1076
1076
|
// 返回一个安全的默认结果
|
|
1077
1077
|
return {
|
|
1078
1078
|
results: [],
|
|
@@ -1081,7 +1081,7 @@ Eventer.prototype.emit = function (key, ...params) {
|
|
|
1081
1081
|
*
|
|
1082
1082
|
*/
|
|
1083
1083
|
cancel: () => { },
|
|
1084
|
-
error:
|
|
1084
|
+
error: error
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
1087
|
};
|
|
@@ -1156,8 +1156,8 @@ Eventer.prototype._handleAsyncError = function (error, full_key, args) {
|
|
|
1156
1156
|
this.log('error', `异步监听器错误 [${full_key}]:`, error);
|
|
1157
1157
|
try {
|
|
1158
1158
|
this.emit('async:error', error, full_key, args);
|
|
1159
|
-
} catch (
|
|
1160
|
-
this.log('error', '错误事件触发失败 [async:error]',
|
|
1159
|
+
} catch (error) {
|
|
1160
|
+
this.log('error', '错误事件触发失败 [async:error]', error);
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
|
|
@@ -1166,8 +1166,8 @@ Eventer.prototype._handleSyncError = function (sync_error, full_key, args) {
|
|
|
1166
1166
|
this.log('error', `同步监听器错误 [${full_key}]:`, sync_error);
|
|
1167
1167
|
try {
|
|
1168
1168
|
this.emit('sync:error', sync_error, full_key, args);
|
|
1169
|
-
} catch (
|
|
1170
|
-
this.log('error', '错误事件触发失败 [sync:error]',
|
|
1169
|
+
} catch (error) {
|
|
1170
|
+
this.log('error', '错误事件触发失败 [sync:error]', error);
|
|
1171
1171
|
}
|
|
1172
1172
|
};
|
|
1173
1173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_expand",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
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": {
|