From b929b2c60483178d27722102b53903d8fec69e47 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 4 Oct 2024 01:37:41 +0100 Subject: [PATCH] Fix tests --- src/nethernet/client.js | 2 +- src/nethernet/discovery/packets/MessagePacket.js | 2 +- src/nethernet/discovery/packets/RequestPacket.js | 2 +- src/nethernet/discovery/packets/ResponsePacket.js | 2 +- src/nethernet/server.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nethernet/client.js b/src/nethernet/client.js index 32329b7..67aeb81 100644 --- a/src/nethernet/client.js +++ b/src/nethernet/client.js @@ -8,7 +8,7 @@ const { getRandomUint64 } = require('../datatypes/util') const { SignalType, SignalStructure } = require('./signalling') const { getBroadcastAddress } = require('./net') -const { PACKET_TYPE } = require('./discovery/packets/packet') +const { PACKET_TYPE } = require('./discovery/packets/Packet') const { RequestPacket } = require('./discovery/packets/RequestPacket') const { MessagePacket } = require('./discovery/packets/MessagePacket') const { ResponsePacket } = require('./discovery/packets/ResponsePacket') diff --git a/src/nethernet/discovery/packets/MessagePacket.js b/src/nethernet/discovery/packets/MessagePacket.js index fa8b8ab..4625da6 100644 --- a/src/nethernet/discovery/packets/MessagePacket.js +++ b/src/nethernet/discovery/packets/MessagePacket.js @@ -1,4 +1,4 @@ -const { PACKET_TYPE, Packet } = require('./packet') +const { PACKET_TYPE, Packet } = require('./Packet') class MessagePacket extends Packet { constructor (data) { diff --git a/src/nethernet/discovery/packets/RequestPacket.js b/src/nethernet/discovery/packets/RequestPacket.js index 47d9419..3d2f589 100644 --- a/src/nethernet/discovery/packets/RequestPacket.js +++ b/src/nethernet/discovery/packets/RequestPacket.js @@ -1,4 +1,4 @@ -const { PACKET_TYPE, Packet } = require('./packet') +const { PACKET_TYPE, Packet } = require('./Packet') class RequestPacket extends Packet { constructor (data) { diff --git a/src/nethernet/discovery/packets/ResponsePacket.js b/src/nethernet/discovery/packets/ResponsePacket.js index 2d02a90..c692582 100644 --- a/src/nethernet/discovery/packets/ResponsePacket.js +++ b/src/nethernet/discovery/packets/ResponsePacket.js @@ -1,4 +1,4 @@ -const { PACKET_TYPE, Packet } = require('./packet') +const { PACKET_TYPE, Packet } = require('./Packet') class ResponsePacket extends Packet { constructor (data) { diff --git a/src/nethernet/server.js b/src/nethernet/server.js index b70ce85..c9d218d 100644 --- a/src/nethernet/server.js +++ b/src/nethernet/server.js @@ -5,7 +5,7 @@ const { RTCIceCandidate, RTCPeerConnection } = require('werift') const { Connection } = require('./connection') const { SignalStructure, SignalType } = require('./signalling') -const { PACKET_TYPE } = require('./discovery/packets/packet') +const { PACKET_TYPE } = require('./discovery/packets/Packet') const { MessagePacket } = require('./discovery/packets/MessagePacket') const { ResponsePacket } = require('./discovery/packets/ResponsePacket') const { decrypt, encrypt, calculateChecksum } = require('./discovery/crypto')