@moontra/moonui-pro 2.32.25 → 2.32.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/dist/index.mjs CHANGED
@@ -146,7 +146,7 @@ var init_cli_token_reader = __esm({
146
146
  keySize: 256 / 32,
147
147
  iterations: 1e4
148
148
  });
149
- const hmac = crypto2.HmacSHA256(ivHex + "." + encryptedData, key);
149
+ const hmac = crypto2.HmacSHA256(encryptedData, key);
150
150
  const computedSignature = hmac.toString();
151
151
  if (computedSignature !== signature) {
152
152
  console.error("[MoonUI Pro] Token signature verification failed - device mismatch");
@@ -186,13 +186,14 @@ var init_cli_token_reader = __esm({
186
186
  if (tokenData && tokenData.token) {
187
187
  const currentFingerprint = this.getDeviceFingerprint();
188
188
  if (tokenData.fingerprint) {
189
- const [originalPlatform, originalHostname] = tokenData.fingerprint.split("-");
190
- const [currentPlatform, currentHostname] = currentFingerprint.split("-");
191
- if (originalPlatform !== currentPlatform || originalHostname !== currentHostname) {
192
- console.error("[MoonUI Pro] Device fingerprint mismatch - token is for different device");
193
- console.error(`[MoonUI Pro] Expected: ${originalPlatform}-${originalHostname}, Got: ${currentPlatform}-${currentHostname}`);
189
+ const fingerprintParts = tokenData.fingerprint.split("-");
190
+ const currentParts = currentFingerprint.split("-");
191
+ if (fingerprintParts[0] !== currentParts[0]) {
192
+ console.error("[MoonUI Pro] Platform mismatch - token is for different OS");
193
+ console.error(`[MoonUI Pro] Expected: ${fingerprintParts[0]}, Got: ${currentParts[0]}`);
194
194
  return null;
195
195
  }
196
+ console.log("[MoonUI Pro] Device fingerprint validation passed for development");
196
197
  }
197
198
  const validationAge = now - this.validationTimestamp;
198
199
  if (!this.deviceValidated || validationAge > this.VALIDATION_CACHE_DURATION) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.32.25",
3
+ "version": "2.32.26",
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",