@progress/kendo-vue-upload 8.4.0-develop.1 → 8.4.0-develop.3

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.
@@ -5,44 +5,50 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const r = (t, e) => {
9
- Object.keys(e).forEach((o) => {
10
- t.append(o, e[o]);
8
+ const n = (e, t) => {
9
+ Object.keys(t).forEach((s) => {
10
+ e.append(s, t[s]);
11
11
  });
12
- }, p = (t, e, o) => {
13
- const n = new FormData();
14
- return r(n, o), t.forEach((a) => {
15
- const s = a.getRawFile ? a.getRawFile() : "";
16
- s ? n.append(e, s, a.name) : n.append(e, s);
17
- }), n;
18
- }, c = (t, e, o) => {
19
- const n = new FormData();
20
- return r(n, o), t.forEach((a) => {
21
- n.append(e, a);
22
- }), n;
23
- }, l = (t, e) => ({
24
- headers: t,
25
- responseType: e.responseType,
26
- withCredentials: e.withCredentials
27
- }), u = (t) => {
28
- const e = {};
29
- return Object.keys(t).forEach((o) => {
30
- e[o] = t[o];
31
- }), e;
32
- }, d = (t) => {
33
- const { data: e, config: o, ...n } = t;
34
- return {
35
- response: e,
36
- ...n
37
- };
38
- }, i = {
39
- populateClientFormData: r,
12
+ }, p = (e, t, s) => {
13
+ const r = new FormData();
14
+ return n(r, s), e.forEach((o) => {
15
+ const a = o.getRawFile ? o.getRawFile() : "";
16
+ a ? r.append(t, a, o.name) : r.append(t, a);
17
+ }), r;
18
+ }, c = (e, t, s) => {
19
+ const r = new FormData();
20
+ return n(r, s), e.forEach((o) => {
21
+ r.append(t, o);
22
+ }), r;
23
+ }, u = (e, t) => ({
24
+ headers: e,
25
+ responseType: t.responseType,
26
+ withCredentials: t.withCredentials
27
+ }), d = (e) => {
28
+ const t = {};
29
+ return Object.keys(e).forEach((s) => {
30
+ t[s] = e[s];
31
+ }), t;
32
+ }, i = (e) => {
33
+ const t = e.getAllResponseHeaders(), s = {};
34
+ return t && t.trim().split(/[\r\n]+/).forEach((r) => {
35
+ const o = r.indexOf(":");
36
+ o > 0 && (s[r.substring(0, o).trim().toLowerCase()] = r.substring(o + 1).trim());
37
+ }), s;
38
+ }, l = (e) => ({
39
+ response: e.response,
40
+ status: e.status,
41
+ statusText: e.statusText,
42
+ headers: e.request ? i(e.request) : e.headers || {},
43
+ request: e.request
44
+ }), m = {
45
+ populateClientFormData: n,
40
46
  populateUploadFormData: p,
41
47
  populateRemoveFormData: c,
42
- populateRequestOptions: l,
43
- cloneRequestHeaders: u,
44
- convertAxiosResponse: d
48
+ populateRequestOptions: u,
49
+ cloneRequestHeaders: d,
50
+ convertResponse: l
45
51
  };
46
52
  export {
47
- i as default
53
+ m as default
48
54
  };