From e4a6e9ea3e0def58f7544ed65308dbec2e9df1b7 Mon Sep 17 00:00:00 2001 From: Universal Web Date: Sat, 18 Mar 2023 07:48:05 -0400 Subject: [PATCH] Filesystem restructure Part of Client Merge Part 2 --- client/{connect/index.js => connect.js} | 2 +- client/{emit/index.js => emit.js} | 0 client/index.js | 12 ++++++------ client/{listening/index.js => listening.js} | 0 client/{onMessage/index.js => onMessage.js} | 0 .../{processMessage/index.js => processMessage.js} | 0 client/{request/index.js => request.js} | 0 client/{send/index.js => send.js} | 8 ++++---- 8 files changed, 11 insertions(+), 11 deletions(-) rename client/{connect/index.js => connect.js} (91%) rename client/{emit/index.js => emit.js} (100%) rename client/{listening/index.js => listening.js} (100%) rename client/{onMessage/index.js => onMessage.js} (100%) rename client/{processMessage/index.js => processMessage.js} (100%) rename client/{request/index.js => request.js} (100%) rename client/{send/index.js => send.js} (93%) diff --git a/client/connect/index.js b/client/connect.js similarity index 91% rename from client/connect/index.js rename to client/connect.js index 0caeced0..0d6b9677 100644 --- a/client/connect/index.js +++ b/client/connect.js @@ -1,4 +1,4 @@ -import { connected } from '../../utilities/logs.js'; +import { connected } from '../utilities/logs.js'; export async function connect(requestBody, requestHead) { console.log('-------CLIENT CONNECTING-------\n'); const thisClient = this; diff --git a/client/emit/index.js b/client/emit.js similarity index 100% rename from client/emit/index.js rename to client/emit.js diff --git a/client/index.js b/client/index.js index 72761824..da8eb173 100644 --- a/client/index.js +++ b/client/index.js @@ -33,12 +33,12 @@ import { watch } from '../utilities/watch.js'; // Client specific imports import { getClient } from './getClient.js'; // Client specific imports to extend class -import { send } from './send/index.js'; -import { request } from './request/index.js'; -import { processMessage } from './processMessage/index.js'; -import { onMessage } from './onMessage/index.js'; -import { connect } from './connect/index.js'; -import { listening } from './listening/index.js'; +import { send } from './send.js'; +import { request } from './request.js'; +import { processMessage } from './processMessage.js'; +import { onMessage } from './onMessage.js'; +import { connect } from './connect.js'; +import { listening } from './listening.js'; export class UDSP { type = 'client'; description = `The Universal Web's UDSP client module to initiate connections to a UDSP Server.`; diff --git a/client/listening/index.js b/client/listening.js similarity index 100% rename from client/listening/index.js rename to client/listening.js diff --git a/client/onMessage/index.js b/client/onMessage.js similarity index 100% rename from client/onMessage/index.js rename to client/onMessage.js diff --git a/client/processMessage/index.js b/client/processMessage.js similarity index 100% rename from client/processMessage/index.js rename to client/processMessage.js diff --git a/client/request/index.js b/client/request.js similarity index 100% rename from client/request/index.js rename to client/request.js diff --git a/client/send/index.js b/client/send.js similarity index 93% rename from client/send/index.js rename to client/send.js index 6bcdf1ab..3ce4e07e 100644 --- a/client/send/index.js +++ b/client/send.js @@ -1,8 +1,8 @@ import { success, failed, imported, msgSent, info -} from '../../utilities/logs.js'; -import { buildPacketSize } from '../../utilities/buildPacketSize.js'; -import { buildStringSize } from '../../utilities/buildStringSize.js'; +} from '../utilities/logs.js'; +import { buildPacketSize } from '../utilities/buildPacketSize.js'; +import { buildStringSize } from '../utilities/buildStringSize.js'; import { encode, decode @@ -13,7 +13,7 @@ import { nonceBox, toBase64, hashSign -} from '../../utilities/crypto.js'; +} from '../utilities/crypto.js'; imported('Client Send'); async function send(message, priority) { console.log(`Priority: ${priority}`);