gramio 0.0.7 → 0.0.8
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/dist/bot.js +2 -2
- package/dist/updates.js +1 -1
- package/package.json +4 -3
package/dist/bot.js
CHANGED
|
@@ -31,8 +31,8 @@ let Bot = class Bot {
|
|
|
31
31
|
// biome-ignore lint/style/noParameterAssign: mutate formattable
|
|
32
32
|
if (formattable && params)
|
|
33
33
|
params = formattable(params);
|
|
34
|
-
if ((0, files_1.isMediaUpload)(method, params
|
|
35
|
-
const formData = await (0, files_1.convertJsonToFormData)(method, params
|
|
34
|
+
if (params && (0, files_1.isMediaUpload)(method, params)) {
|
|
35
|
+
const formData = await (0, files_1.convertJsonToFormData)(method, params);
|
|
36
36
|
const encoder = new form_data_encoder_1.FormDataEncoder(formData);
|
|
37
37
|
reqOptions.body = encoder.encode();
|
|
38
38
|
reqOptions.headers = encoder.headers;
|
package/dist/updates.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gramio",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "WIP",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@gramio/contexts": "^0.0.1",
|
|
20
|
-
"@gramio/files": "^0.0.
|
|
21
|
-
"@gramio/format": "^0.0.
|
|
20
|
+
"@gramio/files": "^0.0.3",
|
|
21
|
+
"@gramio/format": "^0.0.7",
|
|
22
22
|
"@gramio/keyboards": "^0.1.6",
|
|
23
|
+
"common-tags": "^1.8.2",
|
|
23
24
|
"form-data-encoder": "^4.0.2",
|
|
24
25
|
"inspectable": "^2.1.0",
|
|
25
26
|
"middleware-io": "^2.8.1",
|