@itutoring/itutoring_application_js_api 1.24.3 → 1.24.5

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/objects/ApiFile.js +22 -0
  2. package/package.json +1 -1
@@ -13,6 +13,28 @@
13
13
  */
14
14
  export default class ApiFile
15
15
  {
16
+
17
+ /**
18
+ *
19
+ * @param {FileList} files
20
+ */
21
+ constructor(files)
22
+ {
23
+ if (files instanceof FileList)
24
+ {
25
+ if (files.length > 0)
26
+ {
27
+ this.File = files[0];
28
+ let current = this;
29
+ for (let i = 1; i < files.length; i++)
30
+ {
31
+ current.next = new ApiFile(null);
32
+ current = current.next;
33
+ current.File = files[i];
34
+ }
35
+ }
36
+ }
37
+ }
16
38
  /**
17
39
  * File object from input type=file
18
40
  * @type {File}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.24.3",
3
+ "version": "1.24.5",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",