@moontra/moonui-pro 3.3.14 → 3.3.16

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.mjs CHANGED
@@ -2123,12 +2123,8 @@ function readLicenseTokenClient() {
2123
2123
  try {
2124
2124
  const decodedToken = typeof window !== "undefined" ? atob(envToken) : Buffer.from(envToken, "base64").toString("utf8");
2125
2125
  const token2 = JSON.parse(decodedToken);
2126
- if (token2.expiresAt < Date.now()) {
2127
- console.log("[MoonUI] Environment license token expired");
2128
- } else {
2129
- console.log("[MoonUI] Using environment license token (production)");
2130
- return token2;
2131
- }
2126
+ console.log("[MoonUI] Using environment license token (production - build-time validated)");
2127
+ return token2;
2132
2128
  } catch (error) {
2133
2129
  console.error("[MoonUI] Error parsing environment token:", error);
2134
2130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "3.3.14",
3
+ "version": "3.3.16",
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",
@@ -349,14 +349,18 @@ async function main() {
349
349
 
350
350
  // Run if called directly (not imported)
351
351
  if (require.main === module) {
352
- console.log('[MoonUI Pro] PostInstall script invoked');
353
- main().catch(error => {
354
- console.error('[MoonUI Pro] Unexpected error:', error);
355
- console.error('[MoonUI Pro] Stack trace:', error.stack);
356
- process.exit(0); // Don't fail npm install
357
- }).finally(() => {
358
- console.log('[MoonUI Pro] === POSTINSTALL SCRIPT FINISHED ===');
359
- });
352
+ (async () => {
353
+ console.log('[MoonUI Pro] PostInstall script invoked');
354
+ try {
355
+ await main();
356
+ } catch (error) {
357
+ console.error('[MoonUI Pro] Unexpected error:', error);
358
+ console.error('[MoonUI Pro] Stack trace:', error.stack);
359
+ } finally {
360
+ console.log('[MoonUI Pro] === POSTINSTALL SCRIPT FINISHED ===');
361
+ process.exit(0); // Don't fail npm install
362
+ }
363
+ })();
360
364
  } else {
361
365
  console.log('[MoonUI Pro] PostInstall script loaded as module');
362
366
  }
@@ -49,5 +49,14 @@ async function validate() {
49
49
  }
50
50
  }
51
51
 
52
- // Run validation
53
- validate();
52
+ // Run validation and wait for completion
53
+ (async () => {
54
+ try {
55
+ await validate();
56
+ console.log('[MoonUI Pro] Validation completed successfully');
57
+ process.exit(0); // Success
58
+ } catch (error) {
59
+ console.error('[MoonUI Pro] Validation failed:', error);
60
+ process.exit(0); // Don't fail build
61
+ }
62
+ })();