@satorijs/adapter-lark 3.12.2 → 3.12.3
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/index.cjs +1 -1
- package/package.json +1 -1
- package/src/http.ts +1 -1
package/lib/index.cjs
CHANGED
|
@@ -528,7 +528,7 @@ var HttpServer = class extends import_core2.Adapter {
|
|
|
528
528
|
}
|
|
529
529
|
async connect(bot) {
|
|
530
530
|
const { path } = bot.config;
|
|
531
|
-
|
|
531
|
+
this.ctx.server.post(path, (ctx) => {
|
|
532
532
|
this._refreshCipher();
|
|
533
533
|
const signature = ctx.get("X-Lark-Signature");
|
|
534
534
|
const enabledSignatureVerify = this.bots.filter((bot2) => bot2.config.verifySignature);
|
package/package.json
CHANGED
package/src/http.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class HttpServer<C extends Context = Context> extends Adapter<C, LarkBot<
|
|
|
23
23
|
|
|
24
24
|
async connect(bot: LarkBot<C, LarkBot.BaseConfig & HttpServer.Options>) {
|
|
25
25
|
const { path } = bot.config
|
|
26
|
-
|
|
26
|
+
this.ctx.server.post(path, (ctx) => {
|
|
27
27
|
this._refreshCipher()
|
|
28
28
|
|
|
29
29
|
// compare signature if encryptKey is set
|