@beam3_dev/api_module 0.0.138 → 0.0.139

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
@@ -1984,28 +1984,28 @@ function st(e, t = void 0, n = void 0) {
1984
1984
  });
1985
1985
  });
1986
1986
  }
1987
- async function at(e, t) {
1988
- e.tenant && A(e, (n) => {
1989
- console.log("serviceUrls", n);
1990
- const s = n.services.find((o) => o.id === "3dpassport")?.url, i = n.services.find((o) => o.id === "businessprocess")?.url + "/api/v2", r = `${s}/login/?service=${i}/identity/users`;
1991
- f(r, {
1987
+ async function at(e, t, n = void 0, s = void 0) {
1988
+ e.tenant && A(e, (i) => {
1989
+ console.log("serviceUrls", i);
1990
+ const r = i.services.find((c) => c.id === "3dpassport")?.url, o = i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2", a = `${r}/login/?service=${o}/identity/users`;
1991
+ f(a, {
1992
1992
  headers: {
1993
1993
  Authorization: `Bearer ${t}`
1994
1994
  },
1995
- async onComplete(o) {
1996
- console.log("response", o);
1995
+ onComplete(c) {
1996
+ console.log("response", c), n && n(c);
1997
1997
  },
1998
- onFailure(o) {
1999
- onError && onError(o);
1998
+ onFailure(c) {
1999
+ s && s(c);
2000
2000
  }
2001
2001
  });
2002
2002
  }), await fetch(urlAPIV2Iterop, {
2003
2003
  headers: {
2004
2004
  Authorization: `Bearer ${t}`
2005
2005
  }
2006
- }).then((n) => n.json()).then((n) => {
2007
- console.log(n);
2008
- }).catch((n) => console.log(n));
2006
+ }).then((i) => i.json()).then((i) => {
2007
+ console.log(i);
2008
+ }).catch((i) => console.log(i));
2009
2009
  }
2010
2010
  function it(e) {
2011
2011
  const t = "Hello " + e;