peer-term 1.3.1 → 1.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peer-term",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "license": "MIT",
5
5
  "description": "Share your terminal instantly using a 6-digit code. Encrypted. No config.",
6
6
  "repository": {
package/src/index.js CHANGED
@@ -909,6 +909,13 @@ class Session {
909
909
  this._finalizeFile(msg.id);
910
910
  break;
911
911
  }
912
+ case 'file-cancel': {
913
+ if (this._incomingFiles[msg.id]) {
914
+ delete this._incomingFiles[msg.id];
915
+ this.log(`File upload cancelled by client: ${msg.id}`);
916
+ }
917
+ break;
918
+ }
912
919
  }
913
920
  }
914
921