peer-term 1.1.4 → 1.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peer-term",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Share your terminal instantly using a 6-digit code. Encrypted. No config.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -211,12 +211,16 @@ class Session {
211
211
  const config = JSON.stringify({
212
212
  type: 'session-config',
213
213
  readonly: this.readOnly,
214
- version: '1.1.3',
214
+ version: '1.1.5',
215
215
  shell: this.shell,
216
216
  startPath: this.startPath,
217
217
  });
218
- const payload = await encrypt(this.sharedKey, config);
219
- this.ws.send(JSON.stringify({ type: 'data', payload }));
218
+ try {
219
+ const payload = await encrypt(this.sharedKey, config);
220
+ this.ws.send(JSON.stringify({ type: 'data', payload }));
221
+ } catch (err) {
222
+ this.log(`Failed to send session config: ${err.message}`);
223
+ }
220
224
  }
221
225
 
222
226
  // ─── Start the session ──────────────────────────────────────────────