@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 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
- bot.ctx.server.post(path, (ctx) => {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@satorijs/adapter-lark",
3
3
  "description": "Lark (飞书) Adapter for Satorijs",
4
- "version": "3.12.2",
4
+ "version": "3.12.3",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "types": "lib/index.d.ts",
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
- bot.ctx.server.post(path, (ctx) => {
26
+ this.ctx.server.post(path, (ctx) => {
27
27
  this._refreshCipher()
28
28
 
29
29
  // compare signature if encryptKey is set