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.
- package/package.json +1 -1
- package/src/index.js +7 -3
package/package.json
CHANGED
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.
|
|
214
|
+
version: '1.1.5',
|
|
215
215
|
shell: this.shell,
|
|
216
216
|
startPath: this.startPath,
|
|
217
217
|
});
|
|
218
|
-
|
|
219
|
-
|
|
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 ──────────────────────────────────────────────
|