@moontra/moonui-pro 3.5.0 → 3.5.2

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @moontra/moonui-pro v3.5.0 - CDN Build
2
+ * @moontra/moonui-pro v3.5.2 - CDN Build
3
3
  * Premium UI components for MoonUI
4
4
  * (c) 2026 MoonUI. All rights reserved.
5
5
  * @license Commercial - https://moonui.dev/license
package/dist/index.mjs CHANGED
@@ -40,7 +40,7 @@ import NProgress from 'nprogress';
40
40
  import { useTheme } from 'next-themes';
41
41
 
42
42
  /**
43
- * @moontra/moonui-pro v3.5.0
43
+ * @moontra/moonui-pro v3.5.2
44
44
  * Premium UI components for MoonUI
45
45
  * (c) 2026 MoonUI. All rights reserved.
46
46
  * @license Commercial - https://moonui.dev/license
@@ -27,7 +27,7 @@ var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
27
27
  var path__namespace = /*#__PURE__*/_interopNamespace(path);
28
28
 
29
29
  /**
30
- * @moontra/moonui-pro v3.5.0 - CommonJS build (next-config + vite plugins)
30
+ * @moontra/moonui-pro v3.5.2 - CommonJS build (next-config + vite plugins)
31
31
  * (c) 2026 MoonUI. All rights reserved.
32
32
  * @license Commercial - https://moonui.dev/license
33
33
  */
@@ -2,7 +2,7 @@ import * as fs from 'fs';
2
2
  import * as path from 'path';
3
3
 
4
4
  /**
5
- * @moontra/moonui-pro v3.5.0
5
+ * @moontra/moonui-pro v3.5.2
6
6
  * Premium UI components for MoonUI
7
7
  * (c) 2026 MoonUI. All rights reserved.
8
8
  * @license Commercial - https://moonui.dev/license
package/dist/server.mjs CHANGED
@@ -4,7 +4,7 @@ import * as crypto from 'crypto';
4
4
  import crypto__default from 'crypto';
5
5
 
6
6
  /**
7
- * @moontra/moonui-pro v3.5.0
7
+ * @moontra/moonui-pro v3.5.2
8
8
  * Premium UI components for MoonUI
9
9
  * (c) 2026 MoonUI. All rights reserved.
10
10
  * @license Commercial - https://moonui.dev/license
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @moontra/moonui-pro v3.5.0
2
+ * @moontra/moonui-pro v3.5.2
3
3
  * Premium UI components for MoonUI
4
4
  * (c) 2026 MoonUI. All rights reserved.
5
5
  * @license Commercial - https://moonui.dev/license
@@ -27,7 +27,7 @@ var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
27
27
  var path__namespace = /*#__PURE__*/_interopNamespace(path);
28
28
 
29
29
  /**
30
- * @moontra/moonui-pro v3.5.0 - CommonJS build (next-config + vite plugins)
30
+ * @moontra/moonui-pro v3.5.2 - CommonJS build (next-config + vite plugins)
31
31
  * (c) 2026 MoonUI. All rights reserved.
32
32
  * @license Commercial - https://moonui.dev/license
33
33
  */
@@ -2,7 +2,7 @@ import * as fs from 'fs';
2
2
  import * as path from 'path';
3
3
 
4
4
  /**
5
- * @moontra/moonui-pro v3.5.0
5
+ * @moontra/moonui-pro v3.5.2
6
6
  * Premium UI components for MoonUI
7
7
  * (c) 2026 MoonUI. All rights reserved.
8
8
  * @license Commercial - https://moonui.dev/license
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
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",
@@ -25,13 +25,11 @@
25
25
  ".": {
26
26
  "types": "./dist/index.d.ts",
27
27
  "import": "./dist/index.mjs",
28
- "require": null,
29
28
  "default": "./dist/index.mjs"
30
29
  },
31
30
  "./server": {
32
31
  "types": "./dist/server.d.ts",
33
32
  "import": "./dist/server.mjs",
34
- "require": null,
35
33
  "default": "./dist/server.mjs"
36
34
  },
37
35
  "./plugin": {
@@ -14,6 +14,19 @@ const LICENSE_FILE = '.moonui-license-token'; // FIXED: Match next-config-plugin
14
14
  const API_URL = 'https://moonui.dev/api/v1/license/validate';
15
15
  const CACHE_DURATION = 30 * 24 * 60 * 60 * 1000; // 30 days in milliseconds
16
16
 
17
+ // Bu script her `npm install`'da koşar ve çıktısı doğrudan build log'una (Vercel,
18
+ // Dokploy, GitHub Actions, Docker) düşer. Build log'ları çoğu platformda ekip
19
+ // üyeleri ve entegrasyonlar tarafından okunabilir → hassas veri BASILMAZ.
20
+ // Ayrıntılı teşhis çıktısı yalnızca MOONUI_DEBUG=1 iken açılır.
21
+ const isDebug = () => !!process.env.MOONUI_DEBUG;
22
+
23
+ // Lisans anahtarı ASLA ham basılmaz — MOONUI_DEBUG açıkken bile.
24
+ // Sunucu tarafıyla aynı desen: src/app/api/v1/license/validate/route.ts
25
+ function maskLicenseKey(key) {
26
+ if (typeof key !== 'string' || key.length === 0) return '(none)';
27
+ return `${key.substring(0, 10)}...`;
28
+ }
29
+
17
30
  // Detect if we're in production environment
18
31
  function isProduction() {
19
32
  // Enhanced Vercel detection
@@ -51,7 +64,10 @@ async function validateLicense(licenseKey) {
51
64
  source: 'postinstall'
52
65
  });
53
66
 
54
- console.log('[MoonUI Pro] Sending validation request with data:', postData);
67
+ console.log(
68
+ '[MoonUI Pro] Sending validation request for license',
69
+ maskLicenseKey(licenseKey)
70
+ );
55
71
 
56
72
  const options = {
57
73
  hostname: 'moonui.dev',
@@ -77,9 +93,13 @@ async function validateLicense(licenseKey) {
77
93
 
78
94
  res.on('end', () => {
79
95
  try {
80
- console.log('[MoonUI Pro] Raw response data:', data);
96
+ if (isDebug()) {
97
+ console.log('[MoonUI Pro] Raw response data:', data);
98
+ }
81
99
  const result = JSON.parse(data);
82
- console.log('[MoonUI Pro] Parsed response:', JSON.stringify(result, null, 2));
100
+ if (isDebug()) {
101
+ console.log('[MoonUI Pro] Parsed response:', JSON.stringify(result, null, 2));
102
+ }
83
103
 
84
104
  if (res.statusCode === 200) {
85
105
  // Return the full result, don't check result.valid here
@@ -216,7 +236,7 @@ async function validateAndCreateToken(licenseKey, options = {}) {
216
236
  // Validate license with API
217
237
  const validationResult = await validateLicense(licenseKey);
218
238
 
219
- if (!silent) {
239
+ if (!silent && isDebug()) {
220
240
  console.log('[MoonUI Pro] Validation result:', JSON.stringify(validationResult, null, 2));
221
241
  }
222
242
 
@@ -234,7 +254,7 @@ async function validateAndCreateToken(licenseKey, options = {}) {
234
254
  timestamp: Date.now()
235
255
  };
236
256
 
237
- if (!silent) {
257
+ if (!silent && isDebug()) {
238
258
  console.log('[MoonUI Pro] Creating token:', JSON.stringify(token, null, 2));
239
259
  }
240
260
 
@@ -339,5 +359,6 @@ module.exports = {
339
359
  validateLicense,
340
360
  saveLicenseToken,
341
361
  validateAndCreateToken,
342
- isProduction
362
+ isProduction,
363
+ maskLicenseKey
343
364
  };