flamerest 1.0.41 → 1.0.42

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/REST.js +1 -0
  2. package/package.json +1 -1
package/REST.js CHANGED
@@ -483,6 +483,7 @@ class FLAMEREST {
483
483
  // Если в один из параметров передан FileList или input[type=file], т.е. нужно загрузить файлы
484
484
  for (let val in values) {
485
485
  // Преобразуем
486
+ if (values[val] instanceof Event && values[val].target instanceof HTMLInputElement) values[val] = values[val].target;
486
487
  if (values[val] instanceof HTMLInputElement && values[val].type === 'file') values[val] = values[val].files;
487
488
  if (values[val] instanceof ClipboardEvent) values[val] = values[val].clipboardData.files;
488
489
  if (values[val] instanceof DataTransfer) values[val] = values[val].files;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flamerest",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "REST.js",
6
6
  "typings": "./REST.d.ts",