@moontra/moonui-pro 2.33.1 → 2.33.4
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/index.global.js.map +1 -1
- package/dist/index.mjs +15 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2796,26 +2796,35 @@ function SubscriptionProvider({ children }) {
|
|
|
2796
2796
|
try {
|
|
2797
2797
|
const decoded = JSON.parse(atob(devToken));
|
|
2798
2798
|
const jwtToken = decoded.token;
|
|
2799
|
+
const requestBody = {
|
|
2800
|
+
deviceId,
|
|
2801
|
+
browserDeviceId: `browser-${navigator.userAgent.substring(0, 10).replace(/[^a-zA-Z0-9]/g, "")}-${Date.now()}`,
|
|
2802
|
+
timestamp: Date.now(),
|
|
2803
|
+
validationType: "hybrid-strict"
|
|
2804
|
+
};
|
|
2805
|
+
console.log("[MoonUI Pro] Sending request to moonui.dev/api/cli/validate-session");
|
|
2806
|
+
console.log("[MoonUI Pro] DeviceId:", deviceId);
|
|
2807
|
+
console.log("[MoonUI Pro] Request body:", requestBody);
|
|
2799
2808
|
const response = await fetch("https://moonui.dev/api/cli/validate-session", {
|
|
2800
2809
|
method: "POST",
|
|
2801
2810
|
headers: {
|
|
2802
2811
|
"Authorization": `Bearer ${jwtToken}`,
|
|
2803
2812
|
"Content-Type": "application/json"
|
|
2804
2813
|
},
|
|
2805
|
-
body: JSON.stringify(
|
|
2806
|
-
deviceId,
|
|
2807
|
-
browserDeviceId: `browser-${navigator.userAgent.substring(0, 10).replace(/[^a-zA-Z0-9]/g, "")}-${Date.now()}`,
|
|
2808
|
-
timestamp: Date.now(),
|
|
2809
|
-
validationType: "hybrid-strict"
|
|
2810
|
-
})
|
|
2814
|
+
body: JSON.stringify(requestBody)
|
|
2811
2815
|
});
|
|
2816
|
+
console.log("[MoonUI Pro] Response status:", response.status);
|
|
2812
2817
|
if (response.ok) {
|
|
2813
2818
|
const data = await response.json();
|
|
2819
|
+
console.log("[MoonUI Pro] Response data:", data);
|
|
2814
2820
|
if (data.valid && data.plan === "pro_lifetime") {
|
|
2815
2821
|
return "cli-authenticated-pro";
|
|
2816
2822
|
} else if (data.valid) {
|
|
2817
2823
|
return null;
|
|
2818
2824
|
}
|
|
2825
|
+
} else {
|
|
2826
|
+
const errorData = await response.text();
|
|
2827
|
+
console.error("[MoonUI Pro] API Error:", response.status, errorData);
|
|
2819
2828
|
}
|
|
2820
2829
|
} catch (error) {
|
|
2821
2830
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.4",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|