@opencloud-eu/web-client 7.2.0 → 7.3.0

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.
@@ -59,7 +59,6 @@ function l(e) {
59
59
  let t = e();
60
60
  return Object.defineProperty(this, "value", { value: t }), t;
61
61
  }
62
- throw Error("cached value already set");
63
62
  } };
64
63
  }
65
64
  function u(e) {
@@ -125,7 +124,7 @@ function v(e) {
125
124
  let t = e.constructor;
126
125
  if (t === void 0 || typeof t != "function") return !0;
127
126
  let n = t.prototype;
128
- return !(_(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
127
+ return _(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
129
128
  }
130
129
  function ie(e) {
131
130
  return v(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
@@ -889,7 +888,7 @@ var it = (e) => {
889
888
  input: n.value,
890
889
  inst: e,
891
890
  continue: !t.abort
892
- })), t.normalize ? n.value = i.href : n.value = r;
891
+ })), n.value = t.normalize ? i.href : r;
893
892
  return;
894
893
  } catch {
895
894
  n.issues.push({
@@ -2177,14 +2176,14 @@ function Ir(e, t) {
2177
2176
  if (n.ref = null, o) {
2178
2177
  r(o);
2179
2178
  let n = e.seen.get(o), s = n.schema;
2180
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e === "$ref" || e === "allOf" || e in a || delete i[e];
2181
- if (s.$ref && n.def) for (let e in i) e === "$ref" || e === "allOf" || e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
2179
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
2180
+ if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
2182
2181
  }
2183
2182
  let s = t._zod.parent;
2184
2183
  if (s && s !== o) {
2185
2184
  r(s);
2186
2185
  let t = e.seen.get(s);
2187
- if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e === "$ref" || e === "allOf" || e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
2186
+ if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e !== "$ref" && e !== "allOf" && e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
2188
2187
  }
2189
2188
  e.override({
2190
2189
  zodSchema: t,
@@ -2285,7 +2284,7 @@ var Lr = (e, t = {}) => (n) => {
2285
2284
  }
2286
2285
  }, Br = (e, t, n, r) => {
2287
2286
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
2288
- typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
2287
+ i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
2289
2288
  let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
2290
2289
  d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
2291
2290
  }, Vr = (e, t, n, r) => {
@@ -3,7 +3,7 @@ import { Audio, GeoCoordinates, Identity, Image, Photo, User } from '../../graph
3
3
  import { MongoAbility, SubjectRawRule } from '@casl/ability';
4
4
  import { DAVResultResponseProps, FileStat } from 'webdav';
5
5
  export type AbilityActions = 'create' | 'create-all' | 'delete' | 'delete-all' | 'read' | 'read-all' | 'set-quota' | 'set-quota-all' | 'update' | 'update-all';
6
- export type AbilitySubjects = 'Account' | 'Drive' | 'Favorite' | 'Group' | 'Language' | 'Logo' | 'PublicLink' | 'ReadOnlyPublicLinkPassword' | 'Role' | 'Setting' | 'Share';
6
+ export type AbilitySubjects = 'Account' | 'Announcement' | 'Drive' | 'Favorite' | 'Group' | 'Language' | 'Logo' | 'PublicLink' | 'ReadOnlyPublicLinkPassword' | 'Role' | 'Setting' | 'Share';
7
7
  export type Ability = MongoAbility<[AbilityActions, AbilitySubjects]>;
8
8
  export type AbilityRule = SubjectRawRule<AbilityActions, AbilitySubjects, any>;
9
9
  export interface Resource {
@@ -52,3 +52,9 @@ export declare class SSEAdapter implements EventSource {
52
52
  updateLanguage(language: string): void;
53
53
  }
54
54
  export declare const sse: (baseURI: string, fetchOptions: FetchEventSourceInit) => SSEAdapter;
55
+ /**
56
+ * Closes the current SSE connection and clears the singleton, so the next `sse()`
57
+ * call creates a fresh connection. Used on logout to stop the stream from
58
+ * reconnecting with a stale (removed) access token.
59
+ */
60
+ export declare const resetSSE: () => void;
@@ -1,4 +1,4 @@
1
- import { n as e } from "./dist-B2vdwwII.js";
1
+ import { n as e } from "./dist-CeGfU4rJ.js";
2
2
  //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
3
3
  var t = typeof e == "object" && e && e.Object === Object && e, n = typeof self == "object" && self && self.Object === Object && self, r = t || n || Function("return this")(), i = r.Symbol, a = Object.prototype, ee = a.hasOwnProperty, te = a.toString, o = i ? i.toStringTag : void 0;
4
4
  function ne(e) {
@@ -1,2 +1,2 @@
1
- import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Cn as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, Ft as m, G as h, Gt as g, H as _, Ht as v, I as y, It as b, J as x, Jt as S, K as C, Kt as w, L as T, Lt as E, M as D, Mt as O, N as k, Nt as A, O as j, Ot as M, P as N, Pt as P, Q as F, Qt as I, R as L, Rt as R, S as z, Sn as B, St as V, T as H, Tn as U, Tt as W, U as G, Ut as K, V as q, Vt as J, W as Y, Wt as X, X as Z, Xt as Q, Y as $, Yt as ee, Z as te, Zt as ne, _ as re, _n as ie, _t as ae, a as oe, an as se, at as ce, b as le, bn as ue, bt as de, c as fe, cn as pe, ct as me, d as he, dn as ge, dt as _e, en as ve, et as ye, f as be, fn as xe, ft as Se, g as Ce, gn as we, gt as Te, h as Ee, hn as De, ht as Oe, i as ke, in as Ae, it as je, j as Me, jt as Ne, k as Pe, kt as Fe, l as Ie, ln as Le, lt as Re, m as ze, mn as Be, mt as Ve, n as He, nn as Ue, nt as We, o as Ge, on as Ke, ot as qe, p as Je, pn as Ye, pt as Xe, q as Ze, qt as Qe, r as $e, rn as et, rt as tt, s as nt, sn as rt, st as it, t as at, tn as ot, tt as st, u as ct, un as lt, ut, v as dt, vn as ft, vt as pt, w as mt, wn as ht, wt as gt, x as _t, xn as vt, xt as yt, y as bt, yn as xt, yt as St, z as Ct, zt as wt } from "../../generated-CDEuOcXT.js";
1
+ import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as o, Cn as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, Ft as m, G as h, Gt as g, H as _, Ht as v, I as y, It as b, J as x, Jt as S, K as C, Kt as w, L as T, Lt as E, M as D, Mt as O, N as k, Nt as A, O as j, Ot as M, P as N, Pt as P, Q as F, Qt as I, R as L, Rt as R, S as z, Sn as B, St as V, T as H, Tn as U, Tt as W, U as G, Ut as K, V as q, Vt as J, W as Y, Wt as X, X as Z, Xt as Q, Y as $, Yt as ee, Z as te, Zt as ne, _ as re, _n as ie, _t as ae, a as oe, an as se, at as ce, b as le, bn as ue, bt as de, c as fe, cn as pe, ct as me, d as he, dn as ge, dt as _e, en as ve, et as ye, f as be, fn as xe, ft as Se, g as Ce, gn as we, gt as Te, h as Ee, hn as De, ht as Oe, i as ke, in as Ae, it as je, j as Me, jt as Ne, k as Pe, kt as Fe, l as Ie, ln as Le, lt as Re, m as ze, mn as Be, mt as Ve, n as He, nn as Ue, nt as We, o as Ge, on as Ke, ot as qe, p as Je, pn as Ye, pt as Xe, q as Ze, qt as Qe, r as $e, rn as et, rt as tt, s as nt, sn as rt, st as it, t as at, tn as ot, tt as st, u as ct, un as lt, ut, v as dt, vn as ft, vt as pt, w as mt, wn as ht, wt as gt, x as _t, xn as vt, xt as yt, y as bt, yn as xt, yt as St, z as Ct, zt as wt } from "../../generated-FCm3SbzB.js";
2
2
  export { He as ActivitiesApi, $e as ActivitiesApiAxiosParamCreator, ke as ActivitiesApiFactory, oe as ActivitiesApiFp, Ge as ApplicationsApi, nt as ApplicationsApiAxiosParamCreator, fe as ApplicationsApiFactory, Ie as ApplicationsApiFp, at as Configuration, ct as DriveItemApi, he as DriveItemApiAxiosParamCreator, be as DriveItemApiFactory, Je as DriveItemApiFp, ze as DrivesApi, Ee as DrivesApiAxiosParamCreator, Ce as DrivesApiFactory, re as DrivesApiFp, dt as DrivesGetDrivesApi, bt as DrivesGetDrivesApiAxiosParamCreator, le as DrivesGetDrivesApiFactory, _t as DrivesGetDrivesApiFp, z as DrivesPermissionsApi, o as DrivesPermissionsApiAxiosParamCreator, mt as DrivesPermissionsApiFactory, H as DrivesPermissionsApiFp, d as DrivesRootApi, l as DrivesRootApiAxiosParamCreator, j as DrivesRootApiFactory, Pe as DrivesRootApiFp, n as EducationClassApi, Me as EducationClassApiAxiosParamCreator, D as EducationClassApiFactory, k as EducationClassApiFp, N as EducationClassClassificationEnum, p as EducationClassTeachersApi, y as EducationClassTeachersApiAxiosParamCreator, T as EducationClassTeachersApiFactory, L as EducationClassTeachersApiFp, Ct as EducationSchoolApi, i as EducationSchoolApiAxiosParamCreator, q as EducationSchoolApiFactory, _ as EducationSchoolApiFp, G as EducationUserApi, Y as EducationUserApiAxiosParamCreator, h as EducationUserApiFactory, C as EducationUserApiFp, Ze as GetDriveItemSelectEnum, x as GetDriveSelectEnum, $ as GetEducationUserExpandEnum, Z as GetGroupExpandEnum, te as GetGroupSelectEnum, F as GetOwnUserExpandEnum, e as GetUserExpandEnum, ye as GetUserSelectEnum, st as GroupApi, We as GroupApiAxiosParamCreator, tt as GroupApiFactory, je as GroupApiFp, ce as GroupsApi, qe as GroupsApiAxiosParamCreator, it as GroupsApiFactory, me as GroupsApiFp, Re as InvitationsApi, ut as InvitationsApiAxiosParamCreator, _e as InvitationsApiFactory, Se as InvitationsApiFp, Xe as ListAllDrivesBetaSelectEnum, Ve as ListEducationUsersExpandEnum, Oe as ListEducationUsersOrderbyEnum, Te as ListGroupsExpandEnum, ae as ListGroupsOrderbyEnum, pt as ListGroupsSelectEnum, St as ListMyDrivesBetaSelectEnum, de as ListPermissionsSelectEnum, yt as ListPermissionsSpaceRootSelectEnum, V as ListSharedByMeExpandEnum, c as ListSharedWithMeExpandEnum, gt as ListUsersExpandEnum, W as ListUsersOrderbyEnum, f as ListUsersSelectEnum, u as MeChangepasswordApi, M as MeChangepasswordApiAxiosParamCreator, Fe as MeChangepasswordApiFactory, r as MeChangepasswordApiFp, Ne as MeDriveApi, O as MeDriveApiAxiosParamCreator, A as MeDriveApiFactory, P as MeDriveApiFp, m as MeDriveRootApi, b as MeDriveRootApiAxiosParamCreator, E as MeDriveRootApiFactory, R as MeDriveRootApiFp, wt as MeDriveRootChildrenApi, a as MeDriveRootChildrenApiAxiosParamCreator, J as MeDriveRootChildrenApiFactory, v as MeDriveRootChildrenApiFp, K as MeDrivesApi, X as MeDrivesApiAxiosParamCreator, g as MeDrivesApiFactory, w as MeDrivesApiFp, Qe as MePhotoApi, S as MePhotoApiAxiosParamCreator, ee as MePhotoApiFactory, Q as MePhotoApiFp, ne as MeUserApi, I as MeUserApiAxiosParamCreator, t as MeUserApiFactory, ve as MeUserApiFp, ot as RoleManagementApi, Ue as RoleManagementApiAxiosParamCreator, et as RoleManagementApiFactory, Ae as RoleManagementApiFp, se as SharingLinkType, Ke as TagsApi, rt as TagsApiAxiosParamCreator, pe as TagsApiFactory, Le as TagsApiFp, lt as UserApi, ge as UserApiAxiosParamCreator, xe as UserApiFactory, Ye as UserApiFp, Be as UserAppRoleAssignmentApi, De as UserAppRoleAssignmentApiAxiosParamCreator, we as UserAppRoleAssignmentApiFactory, ie as UserAppRoleAssignmentApiFp, ft as UserPhotoApi, xt as UserPhotoApiAxiosParamCreator, ue as UserPhotoApiFactory, vt as UserPhotoApiFp, B as UsersApi, s as UsersApiAxiosParamCreator, ht as UsersApiFactory, U as UsersApiFp };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../graph-D6GY6HvL.js";
1
+ import { t as e } from "../graph-CppzmKYd.js";
2
2
  export { e as graph };
@@ -1,2 +1,2 @@
1
- import { o as e, t } from "../ocs-BwWCZeaA.js";
1
+ import { o as e, t } from "../ocs-gQyxMolJ.js";
2
2
  export { e as GetCapabilitiesFactory, t as ocs };
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../ox-S6JjEpPN.js";
1
+ import { i as e, n as t, r as n, t as r } from "../ox-DIaYdpxw.js";
2
2
  export { t as ContactSchema, n as OxAutocompleteResponseSchema, e as OxComposeSpaceResponseSchema, r as ox };
@@ -16,9 +16,7 @@ function t(e) {
16
16
  i === -1 && (i = n - c);
17
17
  break;
18
18
  case 13: a = !0;
19
- case 10:
20
- r = n;
21
- break;
19
+ case 10: r = n;
22
20
  }
23
21
  if (r === -1) break;
24
22
  e(t.subarray(c, r), i), c = n, i = -1;
@@ -45,7 +43,6 @@ function n(e, t, n) {
45
43
  case "retry":
46
44
  let n = parseInt(c, 10);
47
45
  isNaN(n) || t(r.retry = n);
48
- break;
49
46
  }
50
47
  }
51
48
  };
@@ -197,6 +194,8 @@ var d = /* @__PURE__ */ function(e) {
197
194
  updateLanguage(e) {
198
195
  this.fetchOptions.headers["Accept-Language"] = e, this.close(), this.connect();
199
196
  }
200
- }, h = null, g = (e, t) => (h ||= new m(new URL("ocs/v2.php/apps/notifications/api/v1/notifications/sse", e).href, t), h);
197
+ }, h = null, g = (e, t) => (h ||= new m(new URL("ocs/v2.php/apps/notifications/api/v1/notifications/sse", e).href, t), h), _ = () => {
198
+ h &&= (h.close(), null);
199
+ };
201
200
  //#endregion
202
- export { d as MESSAGE_TYPE, f as RetriableError, m as SSEAdapter, g as sse };
201
+ export { d as MESSAGE_TYPE, f as RetriableError, m as SSEAdapter, _ as resetSSE, g as sse };
@@ -1,3 +1,3 @@
1
- import { t as e } from "../webdav-Di0erpeX.js";
2
- import { G as t, K as n, U as r, W as i } from "../helpers-BMMUdKkY.js";
1
+ import { t as e } from "../webdav-BMoGCm4T.js";
2
+ import { G as t, K as n, U as r, W as i } from "../helpers-MRfkPTnV.js";
3
3
  export { r as DavMethod, i as DavPermission, t as DavProperties, n as DavProperty, e as webdav };
@@ -1,16 +1,19 @@
1
- import { t as e } from "./graph-D6GY6HvL.js";
2
- import { i as t, n, r, t as i } from "./webdav-Di0erpeX.js";
1
+ import { t as e } from "./graph-CppzmKYd.js";
2
+ import { i as t, n, r, t as i } from "./webdav-BMoGCm4T.js";
3
3
  import { t as a } from "./urlJoin-_pUL1TUx.js";
4
- import { A as o, B as s, C as c, D as l, E as u, F as d, H as f, I as p, J as m, L as h, M as g, N as _, O as v, P as y, R as b, S as x, T as S, V as C, _ as w, a as T, b as E, c as D, d as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, n as L, o as R, p as z, q as B, r as V, s as H, t as U, u as W, v as G, w as K, x as q, y as J, z as Y } from "./helpers-BMMUdKkY.js";
5
- import { t as X } from "./ocs-BwWCZeaA.js";
6
- import { t as Z } from "./ox-S6JjEpPN.js";
4
+ import { A as o, B as s, C as c, D as l, E as u, F as d, H as f, I as p, J as m, L as h, M as g, N as _, O as v, P as y, R as b, S as x, T as S, V as C, _ as w, a as T, b as E, c as D, d as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, n as L, o as R, p as z, q as B, r as V, s as H, t as U, u as W, v as G, w as K, x as q, y as J, z as Y } from "./helpers-MRfkPTnV.js";
5
+ import { t as X } from "./ocs-gQyxMolJ.js";
6
+ import { t as Z } from "./ox-DIaYdpxw.js";
7
7
  //#region src/helpers/call.ts
8
8
  var Q = function* (e) {
9
9
  return yield e;
10
- }, $ = ({ message: e, statusCode: t, xReqId: n }) => new r(e, new Response(void 0, {
11
- headers: { "x-request-id": n },
12
- status: t
13
- }), t), ee = class {
10
+ }, $ = ({ message: e, statusCode: t, xReqId: n }) => {
11
+ let i = new Response(void 0, {
12
+ headers: { "x-request-id": n },
13
+ status: t
14
+ });
15
+ return new r(e, i, t);
16
+ }, ee = class {
14
17
  static Read = 1;
15
18
  static Update = 2;
16
19
  static Create = 4;
@@ -1,8 +1,8 @@
1
- import { n as e, r as t, t as n } from "./axios-Dwm7CNmg.js";
2
- import { n as r } from "./dist-B2vdwwII.js";
1
+ import { n as e, r as t, t as n } from "./axios-DvF8YTlk.js";
2
+ import { n as r } from "./dist-CeGfU4rJ.js";
3
3
  import { t as i } from "./urlJoin-_pUL1TUx.js";
4
- import { E as a, G as o, K as s, M as c, N as l, U as u, _ as d, f } from "./helpers-BMMUdKkY.js";
5
- import { a as p, i as m, n as h, r as g, t as _ } from "./ocs-BwWCZeaA.js";
4
+ import { E as a, G as o, K as s, M as c, N as l, U as u, _ as d, f } from "./helpers-MRfkPTnV.js";
5
+ import { a as p, i as m, n as h, r as g, t as _ } from "./ocs-gQyxMolJ.js";
6
6
  //#region src/utils/encodePath.ts
7
7
  var v = (e) => encodeURIComponent(e).split("%2F").join("/"), y = class extends Error {
8
8
  response;
@@ -56,8 +56,8 @@ function re(e, t) {
56
56
  let n = t.stopNodes[e];
57
57
  typeof n == "string" ? r.push(new m(n)) : n instanceof m && r.push(n);
58
58
  }
59
- let i = p("qName", { xmlVersion: te(e, t) }), a = new g();
60
- return ie(e, t, n, a, r, i);
59
+ let i = te(e, t), a = p("qName", { xmlVersion: i }), o = new g();
60
+ return ie(e, t, n, o, r, a);
61
61
  }
62
62
  function ie(e, t, n, r, i, a) {
63
63
  let o = "", s = !1;
@@ -79,16 +79,19 @@ function ie(e, t, n, r, i, a) {
79
79
  let e = l[u];
80
80
  p || (e = t.tagValueProcessor(d, e), e = ce(e, t)), s && (o += n), o += e, s = !1, r.pop();
81
81
  continue;
82
- } else if (d === t.cdataPropName) {
82
+ }
83
+ if (d === t.cdataPropName) {
83
84
  s && (o += n);
84
85
  let e = l[u][0][t.textNodeName], i = S(e);
85
86
  o += `<![CDATA[${i}]]>`, s = !1, r.pop();
86
87
  continue;
87
- } else if (d === t.commentPropName) {
88
+ }
89
+ if (d === t.commentPropName) {
88
90
  let e = l[u][0][t.textNodeName], i = x(e);
89
91
  o += n + `<!--${i}-->`, s = !0, r.pop();
90
92
  continue;
91
- } else if (d[0] === "?") {
93
+ }
94
+ if (d[0] === "?") {
92
95
  let e = E(l[":@"], t, p, r, a);
93
96
  o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
94
97
  continue;
@@ -254,8 +257,8 @@ D.prototype.build = function(e) {
254
257
  if (this.options.preserveOrder) return re(e, this.options);
255
258
  {
256
259
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
257
- let t = new g(), n = p("qName", { xmlVersion: de(e, this.options) });
258
- return this.j2x(e, 0, t, n).val;
260
+ let t = new g(), n = de(e, this.options), r = p("qName", { xmlVersion: n });
261
+ return this.j2x(e, 0, t, r).val;
259
262
  }
260
263
  }, D.prototype.j2x = function(e, t, n, r) {
261
264
  let i = "", a = "";
@@ -280,7 +283,7 @@ D.prototype.build = function(e) {
280
283
  let r = this.checkStopNode(n);
281
284
  if (n.pop(), r) {
282
285
  let n = "" + e[c];
283
- n === "" ? a += this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : a += this.indentate(t) + "<" + l + ">" + n + "</" + l + this.tagEndChar;
286
+ a += n === "" ? this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : this.indentate(t) + "<" + l + ">" + n + "</" + l + this.tagEndChar;
284
287
  } else a += this.buildTextValNode(e[c], l, "", t, n);
285
288
  }
286
289
  } else if (Array.isArray(e[c])) {
@@ -301,7 +304,7 @@ D.prototype.build = function(e) {
301
304
  let e = this.checkStopNode(n);
302
305
  if (n.pop(), e) {
303
306
  let e = "" + i;
304
- e === "" ? o += this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : o += this.indentate(t) + "<" + l + ">" + e + "</" + l + this.tagEndChar;
307
+ o += e === "" ? this.indentate(t) + "<" + l + this.closeTag(l) + this.tagEndChar : this.indentate(t) + "<" + l + ">" + e + "</" + l + this.tagEndChar;
305
308
  } else o += this.buildTextValNode(i, l, "", t, n);
306
309
  }
307
310
  }
@@ -359,11 +362,11 @@ D.prototype.extractAttributes = function(e) {
359
362
  for (let e of r) if (typeof e == "string" || typeof e == "number") t += `<${n}>${e}</${n}>`;
360
363
  else if (typeof e == "object" && e) {
361
364
  let r = this.buildRawContent(e), i = this.buildAttributesForStopNode(e);
362
- r === "" ? t += `<${n}${i}/>` : t += `<${n}${i}>${r}</${n}>`;
365
+ t += r === "" ? `<${n}${i}/>` : `<${n}${i}>${r}</${n}>`;
363
366
  }
364
367
  } else if (typeof r == "object" && r) {
365
368
  let e = this.buildRawContent(r), i = this.buildAttributesForStopNode(r);
366
- e === "" ? t += `<${n}${i}/>` : t += `<${n}${i}>${e}</${n}>`;
369
+ t += e === "" ? `<${n}${i}/>` : `<${n}${i}>${e}</${n}>`;
367
370
  } else t += `<${n}>${r}</${n}>`;
368
371
  }
369
372
  return t;
@@ -404,11 +407,13 @@ D.prototype.extractAttributes = function(e) {
404
407
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
405
408
  let t = S(e);
406
409
  return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
407
- } else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
410
+ }
411
+ if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
408
412
  let t = x(e);
409
413
  return this.indentate(r) + `<!--${t}-->` + this.newLine;
410
- } else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
411
- else {
414
+ }
415
+ if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
416
+ {
412
417
  let i = this.options.tagValueProcessor(t, e);
413
418
  return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
414
419
  }
@@ -426,7 +431,7 @@ function he(e) {
426
431
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
427
432
  }
428
433
  //#endregion
429
- //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
434
+ //#region ../../node_modules/.pnpm/fast-xml-parser@5.10.1/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
430
435
  var ge = D, O = (e, { fileId: t, path: n, name: r }) => {
431
436
  if (n !== void 0) return i(e.webDavPath, n);
432
437
  if (t !== void 0) {
@@ -1336,7 +1341,7 @@ function Ie(e) {
1336
1341
  if (!Le(e)) throw Error("Parameter was not an error");
1337
1342
  }
1338
1343
  function Le(e) {
1339
- return !!e && typeof e == "object" && (t = e, Object.prototype.toString.call(t)) === "[object Error]" || e instanceof Error;
1344
+ return !!e && typeof e == "object" && (t = e, Object.prototype.toString.call(t) === "[object Error]") || e instanceof Error;
1340
1345
  var t;
1341
1346
  }
1342
1347
  var A = class e extends Error {
@@ -1403,7 +1408,7 @@ function M() {
1403
1408
  var t = [];
1404
1409
  if (e.length === 0) return "";
1405
1410
  if (typeof e[0] != "string") throw TypeError("Url must be a string. Received " + e[0]);
1406
- e[0].match(/^[^/:]+:\/*$/) && e.length > 1 && (e[0] = e.shift() + e[0]), e[0].match(/^file:\/\/\//) ? e[0] = e[0].replace(/^([^/:]+):\/*/, "$1:///") : e[0] = e[0].replace(/^([^/:]+):\/*/, "$1://");
1411
+ e[0].match(/^[^/:]+:\/*$/) && e.length > 1 && (e[0] = e.shift() + e[0]), e[0] = e[0].match(/^file:\/\/\//) ? e[0].replace(/^([^/:]+):\/*/, "$1:///") : e[0].replace(/^([^/:]+):\/*/, "$1://");
1407
1412
  for (var n = 0; n < e.length; n++) {
1408
1413
  var r = e[n];
1409
1414
  if (typeof r != "string") throw TypeError("Url must be a string. Received " + r);
@@ -1791,7 +1796,7 @@ var St = k(285), Ct = (e) => {
1791
1796
  return this.#t;
1792
1797
  }
1793
1798
  toString() {
1794
- return this.#l === void 0 ? this.type ? this.#l = this.type + "(" + this.#r.map(((e) => String(e))).join("|") + ")" : this.#l = this.#r.map(((e) => String(e))).join("") : this.#l;
1799
+ return this.#l === void 0 ? this.#l = this.type ? this.type + "(" + this.#r.map(((e) => String(e))).join("|") + ")" : this.#r.map(((e) => String(e))).join("") : this.#l;
1795
1800
  }
1796
1801
  #d() {
1797
1802
  if (this !== this.#e) throw Error("should only call on root");
@@ -2948,7 +2953,7 @@ function Hn(e, t, n) {
2948
2953
  if (s === void 0) continue;
2949
2954
  if (o[s]) {
2950
2955
  let e = Hn(o[s], t, c), n = Gn(e, t);
2951
- o[Bn] !== void 0 && (e[Bn] = o[Bn]), o[":@"] ? Wn(e, o[":@"], c, t) : Object.keys(e).length !== 1 || e[t.textNodeName] === void 0 || t.alwaysCreateTextNode ? Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = "") : e = e[t.textNodeName], i[s] !== void 0 && i.hasOwnProperty(s) ? (Array.isArray(i[s]) || (i[s] = [i[s]]), i[s].push(e)) : t.isArray(s, c, n) ? i[s] = [e] : i[s] = e;
2956
+ o[Bn] !== void 0 && (e[Bn] = o[Bn]), o[":@"] ? Wn(e, o[":@"], c, t) : Object.keys(e).length !== 1 || e[t.textNodeName] === void 0 || t.alwaysCreateTextNode ? Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = "") : e = e[t.textNodeName], i[s] !== void 0 && i.hasOwnProperty(s) ? (Array.isArray(i[s]) || (i[s] = [i[s]]), i[s].push(e)) : i[s] = t.isArray(s, c, n) ? [e] : e;
2952
2957
  }
2953
2958
  }
2954
2959
  }
@@ -2966,7 +2971,7 @@ function Wn(e, t, n, r) {
2966
2971
  let i = Object.keys(t), a = i.length;
2967
2972
  for (let o = 0; o < a; o++) {
2968
2973
  let a = i[o];
2969
- r.isArray(a, n + "." + a, !0, !0) ? e[a] = [t[a]] : e[a] = t[a];
2974
+ e[a] = r.isArray(a, n + "." + a, !0, !0) ? [t[a]] : t[a];
2970
2975
  }
2971
2976
  }
2972
2977
  }
@@ -2983,7 +2988,7 @@ function qn(e) {
2983
2988
  }
2984
2989
  function Jn(e, t) {
2985
2990
  let n = t;
2986
- for (; t < e.length; t++) if (!(e[t] != "?" && e[t] != " ")) {
2991
+ for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
2987
2992
  let r = e.substr(n, t - n);
2988
2993
  if (t > 5 && r === "xml") return K("InvalidXml", "XML declaration allowed only at the start of the document.", q(e, t));
2989
2994
  if (e[t] == "?" && e[t + 1] == ">") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencloud-eu/web-client",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "OpenCloud web client",
5
5
  "license": "AGPL-3.0",
6
6
  "private": false,