vibex-sh 0.9.3 → 0.9.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.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import http from 'http';
|
|
|
9
9
|
import https from 'https';
|
|
10
10
|
import { fileURLToPath } from 'url';
|
|
11
11
|
import WebSocket from 'ws';
|
|
12
|
+
import crypto from 'crypto';
|
|
12
13
|
|
|
13
14
|
// Get version from package.json
|
|
14
15
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -422,7 +423,7 @@ async function main() {
|
|
|
422
423
|
const sessionSlug = sessionId.replace(/^vibex-/, ''); // Remove prefix for example
|
|
423
424
|
console.log(' 💡 Tip: Use -s to send more logs to this session');
|
|
424
425
|
console.log(` Example: echo '{"cpu": 45, "memory": 78}' | npx vibex-sh -s ${sessionSlug}${localFlag}\n`);
|
|
425
|
-
} catch (error
|
|
426
|
+
} catch (error) {
|
|
426
427
|
console.error(` ✗ Error creating session: ${error.message}`);
|
|
427
428
|
process.exit(1);
|
|
428
429
|
}
|