node-karin 0.12.21 → 0.12.23

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.
@@ -156,8 +156,8 @@ export class OB11Event {
156
156
  group_id: groupId,
157
157
  operator_uid: (data.operator_id + '') || '',
158
158
  operator_uin: (data.operator_id + '') || '',
159
- target_uid: data.user_id || '',
160
- target_uin: data.user_id || '',
159
+ target_uid: (data.user_id + '') || '',
160
+ target_uin: (data.user_id + '') || '',
161
161
  type: data.sub_type,
162
162
  };
163
163
  const options = {
@@ -208,8 +208,8 @@ export class OB11Event {
208
208
  group_id: groupId,
209
209
  operator_uid: (data.operator_id + '') || '',
210
210
  operator_uin: (data.operator_id + '') || '',
211
- target_uid: data.user_id || '',
212
- target_uin: data.user_id || '',
211
+ target_uid: (data.user_id + '') || '',
212
+ target_uin: (data.user_id + '') || '',
213
213
  duration: data.duration,
214
214
  type: data.sub_type,
215
215
  };
@@ -254,8 +254,8 @@ export class OB11Event {
254
254
  group_id: groupId,
255
255
  operator_uid: (data.operator_id + '') || '',
256
256
  operator_uin: (data.operator_id + '') || '',
257
- target_uid: data.user_id || '',
258
- target_uin: data.user_id || '',
257
+ target_uid: (data.user_id + '') || '',
258
+ target_uin: (data.user_id + '') || '',
259
259
  message_id: data.message_id,
260
260
  tip_text: '撤回了一条消息',
261
261
  };
@@ -329,7 +329,7 @@ class PluginLoader {
329
329
  return true;
330
330
  }
331
331
  if (typeof Fn !== 'function' || !Fn?.prototype?.constructor)
332
- return false;
332
+ return true;
333
333
  const Class = new Fn();
334
334
  if (!Class.name) {
335
335
  logger.error(`[${plugin}]${_path ? `${common.getRelPath(_path)}` : ''}[${file}] 插件名称错误`);
@@ -9,7 +9,7 @@ export declare const server: {
9
9
  WebSocketServer: WebSocketServer;
10
10
  RegExp: RegExp;
11
11
  /** 监听WebSocket连接并初始化http服务器 */
12
- init(): Promise<false | any>;
12
+ init(): Promise<false | /*elided*/ any>;
13
13
  /** HTTP渲染器 */
14
14
  static(): void;
15
15
  /** 构建静态资源路径 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.12.21",
3
+ "version": "0.12.23",
4
4
  "private": false,
5
5
  "description": "基于 Kritor 进行开发的nodejs机器人框架",
6
6
  "homepage": "https://github.com/KarinJS/Karin",