@cappitolian/network-discovery 0.0.3 → 0.0.4

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.
@@ -179,13 +179,9 @@ public class NetworkDiscovery {
179
179
  // Agregar direcciones IP
180
180
  InetAddress host = serviceInfo.getHost();
181
181
  if (host != null) {
182
- try {
183
- JSONArray addresses = new JSONArray();
184
- addresses.put(host.getHostAddress());
185
- serviceData.put("addresses", addresses);
186
- } catch (JSONException e) {
187
- Log.e(TAG, "Error adding addresses", e);
188
- }
182
+ JSONArray addresses = new JSONArray();
183
+ addresses.put(host.getHostAddress());
184
+ serviceData.put("addresses", addresses);
189
185
  }
190
186
 
191
187
  // Agregar TXT records
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappitolian/network-discovery",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A Capacitor plugin for network service discovery using mDNS/Bonjour. Allows automatic server-client connection without manual IP configuration.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",