hotdrop 1.0.0 → 1.0.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.
package/local_install.sh CHANGED
@@ -33,5 +33,5 @@ echo " hotdrop status — Check if running"
33
33
  echo " hotdrop logs — View logs"
34
34
  echo " hotdrop uninstall — Stop and clean up"
35
35
  echo ""
36
- echo " Then open http://$(hostname -I 2>/dev/null | awk '{print $1}' || echo 'YOUR_LOCAL_IP'):5821 on any device."
36
+ echo " Run \"hotdrop start\" to launch the server and get your local URL."
37
37
  echo ""
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "hotdrop",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "P2P LAN & internet file sharing via WebRTC — no cloud, no installs, just a URL",
5
- "main": "signaling/server.js",
5
+ "preferGlobal": true,
6
6
  "bin": {
7
7
  "hotdrop": "./cli.js"
8
8
  },
package/public/index.html CHANGED
@@ -851,6 +851,7 @@ function onPeerDisconnected(peerId) {
851
851
  const stillConnected = [...peers.values()].filter(p => p.dc && p.dc.readyState === 'open').length;
852
852
  if (stillConnected === 0) {
853
853
  setBadge('disconnected', 'error');
854
+ document.getElementById('peer-info-text').innerHTML = `Connected · <strong>0 peers</strong>`;
854
855
  document.getElementById('disconnected-banner').classList.add('visible');
855
856
  document.getElementById('drop-zone').style.pointerEvents = 'none';
856
857
  document.getElementById('drop-zone').style.opacity = '0.4';
package/public/sw.js CHANGED
@@ -1,4 +1,4 @@
1
- const CACHE = 'hotdrop-v0.0.3';
1
+ const CACHE = 'hotdrop-v1.0.2';
2
2
  const STATIC = ['/', '/index.html', '/manifest.json', '/icon-192.svg', '/icon-512.svg'];
3
3
 
4
4
  self.addEventListener('install', e => {
@@ -138,5 +138,10 @@ wss.on('connection', ws => {
138
138
  });
139
139
 
140
140
  httpServer.listen(PORT, () => {
141
- console.log(`hotdrop running on port ${PORT}`);
141
+ const ip = getLocalIP();
142
+ const url = ip ? `http://${ip}:${PORT}` : `http://localhost:${PORT}`;
143
+ // OSC 8 hyperlink — clickable in iTerm2, modern Terminal.app, VS Code terminal, etc.
144
+ const link = `\x1b]8;;${url}\x07${url}\x1b]8;;\x07`;
145
+ console.log(`\n HotDrop is running\n`);
146
+ console.log(` \x1b[36m${link}\x1b[0m\n`);
142
147
  });