@freesignal/protocol 0.5.1 → 0.5.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/dist/node.js CHANGED
@@ -241,7 +241,7 @@ class FreeSignalNode {
241
241
  if (bootstrap)
242
242
  out.datagram = yield this.packHandshake(bootstrap);
243
243
  return out;
244
- case types_1.Protocols.NULL:
244
+ case types_1.Protocols.PING:
245
245
  return out;
246
246
  default:
247
247
  throw new Error("Invalid protocol");
package/dist/types.d.ts CHANGED
@@ -64,7 +64,7 @@ export interface DiscoverMessage {
64
64
  data?: KeyExchangeData;
65
65
  }
66
66
  export declare enum Protocols {
67
- NULL = "",
67
+ PING = "/freesignal/ping",
68
68
  MESSAGE = "/freesignal/message",
69
69
  RELAY = "/freesignal/relay",
70
70
  HANDSHAKE = "/freesignal/handshake",
package/dist/types.js CHANGED
@@ -210,7 +210,7 @@ var DiscoverType;
210
210
  })(DiscoverType || (exports.DiscoverType = DiscoverType = {}));
211
211
  var Protocols;
212
212
  (function (Protocols) {
213
- Protocols["NULL"] = "";
213
+ Protocols["PING"] = "/freesignal/ping";
214
214
  Protocols["MESSAGE"] = "/freesignal/message";
215
215
  Protocols["RELAY"] = "/freesignal/relay";
216
216
  Protocols["HANDSHAKE"] = "/freesignal/handshake";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freesignal/protocol",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Signal Protocol implementation in javascript",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "author": "Christian Braghette",