gramio 0.0.39 → 0.0.40

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.
Files changed (2) hide show
  1. package/dist/bot.js +3 -0
  2. package/package.json +6 -5
package/dist/bot.js CHANGED
@@ -142,6 +142,7 @@ let Bot = (() => {
142
142
  this.extend(new plugin_1.Plugin("@gramio/format").preRequest((context) => {
143
143
  if (!context.params)
144
144
  return context;
145
+ // @ts-ignore
145
146
  const formattable = format_1.FormattableMap[context.method];
146
147
  // @ts-ignore add AnyTelegramMethod to @gramio/format
147
148
  if (formattable)
@@ -177,7 +178,9 @@ let Bot = (() => {
177
178
  });
178
179
  // biome-ignore lint/style/noParameterAssign: mutate params
179
180
  params = context.params;
181
+ // @ts-ignore
180
182
  if (params && (0, files_1.isMediaUpload)(method, params)) {
183
+ // @ts-ignore
181
184
  const formData = await (0, files_1.convertJsonToFormData)(method, params);
182
185
  reqOptions.body = formData;
183
186
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "gramio",
3
- "version": "0.0.39",
3
+ "type": "commonjs",
4
+ "version": "0.0.40",
4
5
  "description": "Powerful Telegram Bot API framework",
5
6
  "main": "./dist/index.js",
6
7
  "types": "./dist/index.d.ts",
@@ -27,7 +28,7 @@
27
28
  "license": "ISC",
28
29
  "devDependencies": {
29
30
  "@biomejs/biome": "1.7.3",
30
- "@types/node": "^20.12.12",
31
+ "@types/node": "^20.14.5",
31
32
  "typescript": "^5.4.5"
32
33
  },
33
34
  "dependencies": {
@@ -36,10 +37,10 @@
36
37
  "@gramio/files": "^0.0.8",
37
38
  "@gramio/format": "^0.1.3",
38
39
  "@gramio/keyboards": "^0.3.3",
39
- "@gramio/types": "^7.4.1",
40
- "inspectable": "^3.0.1",
40
+ "@gramio/types": "^7.5.0",
41
+ "inspectable": "^3.0.2",
41
42
  "middleware-io": "^2.8.1",
42
- "undici": "^6.18.1"
43
+ "undici": "^6.19.2"
43
44
  },
44
45
  "files": [
45
46
  "dist"