akpm-datapoint-front 0.0.25 → 0.0.26
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/CDN/dp-component.js +5 -2
- package/package.json +1 -1
package/CDN/dp-component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.0.
|
|
1
|
+
/* Version: 0.0.26 */
|
|
2
2
|
var Ld = Object.defineProperty;
|
|
3
3
|
var E0 = (r) => {
|
|
4
4
|
throw TypeError(r);
|
|
@@ -2133,7 +2133,10 @@ const mo = (r) => {
|
|
|
2133
2133
|
});
|
|
2134
2134
|
if (!t.ok)
|
|
2135
2135
|
throw new Error(`Error fetching user level: ${t.statusText}`);
|
|
2136
|
-
|
|
2136
|
+
let a = await t.json();
|
|
2137
|
+
console.log("User level data:", a);
|
|
2138
|
+
let l = a.result.reduce((i, n) => Math.max(i, n.level), 0);
|
|
2139
|
+
return console.log("Highest user level:", l), l;
|
|
2137
2140
|
}, u1 = async (r, e) => {
|
|
2138
2141
|
const t = {
|
|
2139
2142
|
envid: mt.getEnvironmentId(),
|