@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 +12 -12
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +3 -3
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
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, (
|
|
1989
|
-
console.log("serviceUrls",
|
|
1990
|
-
const
|
|
1991
|
-
f(
|
|
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
|
-
|
|
1996
|
-
console.log("response",
|
|
1995
|
+
onComplete(c) {
|
|
1996
|
+
console.log("response", c), n && n(c);
|
|
1997
1997
|
},
|
|
1998
|
-
onFailure(
|
|
1999
|
-
|
|
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((
|
|
2007
|
-
console.log(
|
|
2008
|
-
}).catch((
|
|
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;
|