flamerest 1.0.26 → 1.0.27

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 +2 -0
  2. package/package.json +1 -1
package/REST.js CHANGED
@@ -455,6 +455,8 @@ class FLAMEREST {
455
455
  for (let val in values) {
456
456
  // Преобразуем
457
457
  if (values[val] instanceof HTMLInputElement && values[val].type === 'file') values[val] = values[val].files;
458
+ if (values[val] instanceof ClipboardEvent) values[val] = values[val].clipboardData.files;
459
+ if (values[val] instanceof DataTransfer) values[val] = values[val].files;
458
460
  if (values[val] instanceof FileList) {
459
461
  let newValues = [];
460
462
  values[val] = Array.from(values[val]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flamerest",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "REST.js",
6
6
  "typings": "./REST.d.ts",