@moontra/moonui-pro 2.32.37 → 2.32.39
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 +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -105,19 +105,25 @@ var init_cli_token_reader = __esm({
|
|
|
105
105
|
*/
|
|
106
106
|
async getRealExternalIP() {
|
|
107
107
|
try {
|
|
108
|
+
console.log("[MoonUI Pro] Starting real external IP detection...");
|
|
108
109
|
const ip = await this.getWebRTCIP();
|
|
110
|
+
console.log("[MoonUI Pro] WebRTC returned IP:", ip);
|
|
109
111
|
if (ip && ip !== "unknown") {
|
|
112
|
+
console.log("[MoonUI Pro] Using WebRTC IP:", ip);
|
|
110
113
|
return ip;
|
|
111
114
|
}
|
|
112
115
|
if (typeof window !== "undefined") {
|
|
113
116
|
const currentHost = window.location.hostname;
|
|
117
|
+
console.log("[MoonUI Pro] Fallback hostname check:", currentHost);
|
|
114
118
|
if (currentHost !== "localhost" && currentHost !== "127.0.0.1") {
|
|
119
|
+
console.log("[MoonUI Pro] Using fallback hostname:", currentHost);
|
|
115
120
|
return currentHost;
|
|
116
121
|
}
|
|
117
122
|
}
|
|
123
|
+
console.log("[MoonUI Pro] Using last resort IP: 192.168.1.2");
|
|
118
124
|
return "192.168.1.2";
|
|
119
125
|
} catch (error) {
|
|
120
|
-
console.warn("[MoonUI Pro] External IP detection failed, using fallback");
|
|
126
|
+
console.warn("[MoonUI Pro] External IP detection failed, using fallback:", error);
|
|
121
127
|
return "192.168.1.2";
|
|
122
128
|
}
|
|
123
129
|
}
|
|
@@ -142,7 +148,7 @@ var init_cli_token_reader = __esm({
|
|
|
142
148
|
if (ipMatch && ipMatch[1]) {
|
|
143
149
|
const ip = ipMatch[1];
|
|
144
150
|
console.log(`[MoonUI Pro] WebRTC IP found: ${ip}`);
|
|
145
|
-
if (!ip.startsWith("127.") && !ip.startsWith("0.")) {
|
|
151
|
+
if (!ip.startsWith("127.") && !ip.startsWith("0.") && ip !== "0.0.0.0") {
|
|
146
152
|
console.log(`[MoonUI Pro] WebRTC IP accepted: ${ip}`);
|
|
147
153
|
pc.close();
|
|
148
154
|
resolve(ip);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.39",
|
|
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",
|