@beam3_dev/api_module 0.0.52 → 0.0.53

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.
package/dist/wb3Api.js CHANGED
@@ -1842,23 +1842,22 @@ function te(e) {
1842
1842
  }
1843
1843
  function qe(e, t = void 0, n = void 0) {
1844
1844
  const s = e.space + "/api/user/getcurrent/";
1845
- w(
1846
- e,
1847
- (i) => {
1848
- f(s, {
1849
- method: "GET",
1850
- headers: { "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken },
1851
- onComplete(c, o, a) {
1852
- const r = JSON.parse(c);
1853
- t && t(r.result);
1854
- },
1855
- onFailure(c, o, a) {
1856
- n && n({ response: c, headers: o, xhr: a });
1857
- }
1858
- });
1859
- },
1860
- n
1861
- );
1845
+ w(e, (i) => {
1846
+ f(s, {
1847
+ method: "GET",
1848
+ headers: {
1849
+ "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1850
+ },
1851
+ onComplete(c, o, a) {
1852
+ const r = JSON.parse(c);
1853
+ t && t(r.result);
1854
+ },
1855
+ onFailure(c, o, a) {
1856
+ const r = { erreur: JSON.parse(c), headers: o, xhr: a };
1857
+ n && n(r);
1858
+ }
1859
+ });
1860
+ });
1862
1861
  }
1863
1862
  function Qe(e, t, n = void 0, s = void 0) {
1864
1863
  const i = e.space + "/api/user/find/login/" + t;