diff --git a/.idea/dictionaries/marley.xml b/.idea/dictionaries/marley.xml
new file mode 100644
index 0000000..709fb63
--- /dev/null
+++ b/.idea/dictionaries/marley.xml
@@ -0,0 +1,7 @@
+
+
+
+ edsm
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
index 4ed2ac0..d40e675 100644
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -1,6 +1,12 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/models/EDSM.ts b/src/models/EDSM.ts
index ada8a86..c32fd7b 100755
--- a/src/models/EDSM.ts
+++ b/src/models/EDSM.ts
@@ -1,51 +1,56 @@
-import type { systemEstimatedValue } from '../@types/edsmResponses';
+import type {systemEstimatedValue} from '../@types/edsmResponses';
const EventEmitter = require('node:events');
-import { Log } from './Log';
-import { System } from './System';
+import {Log} from './Log';
+import {System} from './System';
export class EDSM extends EventEmitter {
- static #instance: EDSM;
+ static #instance: EDSM;
- private constructor() {
- super();
+ private constructor() {
+ super();
+ }
+
+ static connect(): EDSM {
+ if (!EDSM.#instance) {
+ EDSM.#instance = new EDSM();
}
- static connect(): EDSM {
- if (!EDSM.#instance) {
- EDSM.#instance = new EDSM();
- }
+ return EDSM.#instance;
+ }
- return EDSM.#instance;
+ /* ---------------------------------------------------------------------------- #request ---- */
+
+ // Submit a request to EDSM and return the response as an object
+ static async #request(
+ url: string,
+ options: { [x: string]: string },
+ ): Promise