node-karin 0.12.13 → 0.12.14
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.
|
@@ -89,7 +89,7 @@ e: KarinMessageType,
|
|
|
89
89
|
/** 是否继续执行下一个中间件 */
|
|
90
90
|
next: () => void,
|
|
91
91
|
/** 是否退出此条消息 不再执行匹配插件 */
|
|
92
|
-
exit: () => void) => Promise<
|
|
92
|
+
exit: () => void) => Promise<void>;
|
|
93
93
|
/**
|
|
94
94
|
* 回复消息前 中间件实现方法
|
|
95
95
|
*/
|
|
@@ -101,7 +101,7 @@ element: KarinElement[],
|
|
|
101
101
|
/** 是否继续执行下一个中间件 */
|
|
102
102
|
next: () => void,
|
|
103
103
|
/** 是否不发送此条消息 */
|
|
104
|
-
exit: () => void) => Promise<
|
|
104
|
+
exit: () => void) => Promise<void>;
|
|
105
105
|
/**
|
|
106
106
|
* 发送主动消息前 中间件实现方法
|
|
107
107
|
*/
|
|
@@ -115,7 +115,7 @@ element: KarinElement[],
|
|
|
115
115
|
/** 是否继续执行下一个中间件 */
|
|
116
116
|
next: () => void,
|
|
117
117
|
/** 是否不发送此条消息 */
|
|
118
|
-
exit: () => void) => Promise<
|
|
118
|
+
exit: () => void) => Promise<void>;
|
|
119
119
|
/**
|
|
120
120
|
* 发送合并转发前 中间件实现方法
|
|
121
121
|
*/
|
|
@@ -127,7 +127,7 @@ elements: Array<NodeElement>,
|
|
|
127
127
|
/** 是否继续执行下一个中间件 */
|
|
128
128
|
next: () => void,
|
|
129
129
|
/** 是否不发送此条消息 */
|
|
130
|
-
exit: () => void) => Promise<
|
|
130
|
+
exit: () => void) => Promise<void>;
|
|
131
131
|
/**
|
|
132
132
|
* 消息事件没有找到任何匹配的插件触发 中间件实现方法
|
|
133
133
|
*/
|
|
@@ -137,7 +137,7 @@ e: KarinMessageType,
|
|
|
137
137
|
/** 是否继续执行下一个中间件 */
|
|
138
138
|
next: () => void,
|
|
139
139
|
/** 是否退出此条消息 不再执行匹配插件 */
|
|
140
|
-
exit: () => void) => Promise<
|
|
140
|
+
exit: () => void) => Promise<void>;
|
|
141
141
|
/** use规则集类型 */
|
|
142
142
|
export interface UseInfo<T extends keyof UseMapType = keyof UseMapType> extends Omit<AppBase, 'log'> {
|
|
143
143
|
type: `${AppType.Use}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-karin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "基于 Kritor 进行开发的nodejs机器人框架",
|
|
6
6
|
"homepage": "https://github.com/KarinJS/Karin",
|
|
@@ -124,7 +124,6 @@
|
|
|
124
124
|
"fix": "eslint lib/**/*.js --fix",
|
|
125
125
|
"fix:all": "eslint lib/**/*.js --fix && eslint lib/**/*.d.ts --fix",
|
|
126
126
|
"init": "node lib/cli/init.js",
|
|
127
|
-
"postinstall": "npm run init",
|
|
128
127
|
"pub": "npm publish --access public",
|
|
129
128
|
"sort": "npx sort-package-json && sort-json tsconfig.json",
|
|
130
129
|
"start": "node lib/cli/start.js start"
|