@satorijs/adapter-lark 3.8.1 → 3.8.2

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
@@ -3310,7 +3310,7 @@ var LarkBot = class extends import_core5.Bot {
3310
3310
  const response = await this.http("/" + params.path, {
3311
3311
  method,
3312
3312
  headers,
3313
- data: body,
3313
+ data: method === "GET" || method === "HEAD" ? null : body,
3314
3314
  params: Object.fromEntries(query.entries()),
3315
3315
  responseType: "arraybuffer",
3316
3316
  validateStatus: /* @__PURE__ */ __name(() => true, "validateStatus")
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.8.1",
4
+ "version": "3.8.2",
5
5
  "type": "module",
6
6
  "main": "lib/index.cjs",
7
7
  "types": "lib/index.d.ts",
package/src/bot.ts CHANGED
@@ -30,7 +30,7 @@ export class LarkBot<C extends Context = Context> extends Bot<C, LarkBot.Config>
30
30
  const response = await this.http('/' + params.path, {
31
31
  method,
32
32
  headers,
33
- data: body,
33
+ data: method === 'GET' || method === 'HEAD' ? null : body,
34
34
  params: Object.fromEntries(query.entries()),
35
35
  responseType: 'arraybuffer',
36
36
  validateStatus: () => true,