@actuallab/rpc 13.0.20 → 13.0.25
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/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2428,12 +2428,18 @@ var RpcPeer = class {
|
|
|
2428
2428
|
if (method === RpcSystemCalls.handshake) {
|
|
2429
2429
|
const raw = args[0];
|
|
2430
2430
|
if (raw !== void 0) {
|
|
2431
|
+
const obj = raw ?? {};
|
|
2431
2432
|
const handshake = Array.isArray(raw) ? {
|
|
2432
2433
|
RemotePeerId: raw[0],
|
|
2433
2434
|
RemoteHubId: raw[2],
|
|
2434
2435
|
ProtocolVersion: raw[3],
|
|
2435
2436
|
Index: raw[4]
|
|
2436
|
-
} :
|
|
2437
|
+
} : {
|
|
2438
|
+
RemotePeerId: obj.RemotePeerId ?? obj.remotePeerId,
|
|
2439
|
+
RemoteHubId: obj.RemoteHubId ?? obj.remoteHubId,
|
|
2440
|
+
ProtocolVersion: obj.ProtocolVersion ?? obj.protocolVersion,
|
|
2441
|
+
Index: obj.Index ?? obj.index
|
|
2442
|
+
};
|
|
2437
2443
|
this._onHandshakeReceived(handshake);
|
|
2438
2444
|
}
|
|
2439
2445
|
return;
|