@satorijs/adapter-lark 3.12.1 → 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);
@@ -1428,7 +1428,7 @@ var LarkBot = class extends import_core6.Bot {
1428
1428
  static {
1429
1429
  __name(this, "LarkBot");
1430
1430
  }
1431
- static inject = ["server", "http"];
1431
+ static inject = ["http"];
1432
1432
  static MessageEncoder = LarkMessageEncoder;
1433
1433
  _refresher;
1434
1434
  http;
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.1",
4
+ "version": "3.12.3",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "types": "lib/index.d.ts",
package/src/bot.ts CHANGED
@@ -16,7 +16,7 @@ const fileTypeMap: Record<Exclude<Im.File.CreateForm['file_type'], 'stream'>, st
16
16
  }
17
17
 
18
18
  export class LarkBot<C extends Context = Context, T extends LarkBot.Config = LarkBot.Config> extends Bot<C, T> {
19
- static inject = ['server', 'http']
19
+ static inject = ['http']
20
20
  static MessageEncoder = LarkMessageEncoder
21
21
 
22
22
  _refresher?: NodeJS.Timeout
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