Comparing version 0.0.7 to 0.0.8
@@ -34,4 +34,4 @@ "use strict"; | ||
params = formattable(params); | ||
if ((0, files_1.isMediaUpload)(method, params || {})) { | ||
const formData = await (0, files_1.convertJsonToFormData)(method, params || {}); | ||
if (params && (0, files_1.isMediaUpload)(method, params)) { | ||
const formData = await (0, files_1.convertJsonToFormData)(method, params); | ||
const encoder = new form_data_encoder_1.FormDataEncoder(formData); | ||
@@ -38,0 +38,0 @@ reqOptions.body = encoder.encode(); |
@@ -51,3 +51,3 @@ "use strict"; | ||
catch (error) { | ||
throw new Error(`Update type ${updateType} not supported.`); | ||
throw new Error(`[UPDATES] Update type ${updateType} not supported.`); | ||
} | ||
@@ -54,0 +54,0 @@ } |
{ | ||
"name": "gramio", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "WIP", | ||
@@ -20,5 +20,6 @@ "main": "./dist/index.js", | ||
"@gramio/contexts": "^0.0.1", | ||
"@gramio/files": "^0.0.2", | ||
"@gramio/format": "^0.0.2", | ||
"@gramio/files": "^0.0.3", | ||
"@gramio/format": "^0.0.7", | ||
"@gramio/keyboards": "^0.1.6", | ||
"common-tags": "^1.8.2", | ||
"form-data-encoder": "^4.0.2", | ||
@@ -25,0 +26,0 @@ "inspectable": "^2.1.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9474
10
+ Addedcommon-tags@^1.8.2
+ Added@gramio/files@0.0.3(transitive)
+ Added@gramio/format@0.0.7(transitive)
+ Addedcommon-tags@1.8.2(transitive)
- Removed@gramio/files@0.0.2(transitive)
- Removed@gramio/format@0.0.2(transitive)
Updated@gramio/files@^0.0.3
Updated@gramio/format@^0.0.7