@moontra/moonui-pro 2.33.10 → 2.33.11
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 +4 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2838,14 +2838,15 @@ function SubscriptionProvider({ children }) {
|
|
|
2838
2838
|
if (response.ok) {
|
|
2839
2839
|
const data = await response.json();
|
|
2840
2840
|
console.log("[MoonUI Pro] Response data:", data);
|
|
2841
|
+
const planValue = typeof data.plan === "object" ? data.plan?.plan : data.plan;
|
|
2841
2842
|
const cacheData = {
|
|
2842
2843
|
valid: data.valid,
|
|
2843
|
-
plan:
|
|
2844
|
+
plan: planValue || "free",
|
|
2844
2845
|
timestamp: Date.now()
|
|
2845
2846
|
};
|
|
2846
2847
|
localStorage.setItem(CLI_AUTH_CACHE_KEY, JSON.stringify(cacheData));
|
|
2847
|
-
console.log("[MoonUI Pro] Cached CLI auth response for 1 hour");
|
|
2848
|
-
if (data.valid && (
|
|
2848
|
+
console.log("[MoonUI Pro] Cached CLI auth response for 1 hour, plan:", planValue);
|
|
2849
|
+
if (data.valid && (planValue === "lifetime" || planValue === "pro_lifetime")) {
|
|
2849
2850
|
return "cli-authenticated-pro";
|
|
2850
2851
|
} else if (data.valid) {
|
|
2851
2852
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.11",
|
|
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",
|