From 0f5588ef8194157e8c284e971f77b8587a5f2bff Mon Sep 17 00:00:00 2001 From: TheSparta <8343238+TheSpartaPT@users.noreply.github.com> Date: Sun, 19 May 2024 16:23:02 +0100 Subject: [PATCH] Replaced module.exports for export const --- TypeScript/10ScopesAndTypes/src/mod.ts | 2 +- TypeScript/11BundleLoadingSample/src/mod.ts | 2 +- TypeScript/12ClassExtensionOverride/src/mod.ts | 2 +- TypeScript/13AddTrader/src/mod.ts | 2 +- TypeScript/14AfterDBLoadHook/src/mod.ts | 2 +- TypeScript/15HttpListenerExample/src/mod.ts | 2 +- TypeScript/16ImporterUtil/src/mod.ts | 2 +- TypeScript/17AsyncImporterWithDependency1/src/mod.ts | 2 +- TypeScript/17AsyncImporterWithDependency2/src/mod.ts | 2 +- TypeScript/18CustomItemService/src/mod.ts | 2 +- TypeScript/19UseExternalLibraries/src/mod.ts | 2 +- TypeScript/1LogToConsole/src/mod.ts | 2 +- TypeScript/20CustomChatBot/src/mod.ts | 2 +- TypeScript/21CustomCommandoCommand/src/mod.ts | 2 +- TypeScript/22CustomAkiCommand/src/mod.ts | 2 +- TypeScript/23CustomAbstractChatBot/src/mod.ts | 2 +- TypeScript/24WebSocket/src/mod.ts | 2 +- TypeScript/3GetSptConfigFile/src/mod.ts | 2 +- TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts | 2 +- TypeScript/4UseACustomConfigFile/src/mod.ts | 2 +- TypeScript/5ReplaceMethod/src/mod.ts | 2 +- TypeScript/6ReferenceAnotherClass/src/mod.ts | 2 +- TypeScript/7OnLoadHook/src/mod.ts | 2 +- TypeScript/8OnUpdateHook/src/mod.ts | 2 +- TypeScript/9RouterHooks/src/mod.ts | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/TypeScript/10ScopesAndTypes/src/mod.ts b/TypeScript/10ScopesAndTypes/src/mod.ts index 768c68e..bfa258d 100644 --- a/TypeScript/10ScopesAndTypes/src/mod.ts +++ b/TypeScript/10ScopesAndTypes/src/mod.ts @@ -29,4 +29,4 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/11BundleLoadingSample/src/mod.ts b/TypeScript/11BundleLoadingSample/src/mod.ts index aaca26b..af50b01 100644 --- a/TypeScript/11BundleLoadingSample/src/mod.ts +++ b/TypeScript/11BundleLoadingSample/src/mod.ts @@ -13,4 +13,4 @@ class Mod implements IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/12ClassExtensionOverride/src/mod.ts b/TypeScript/12ClassExtensionOverride/src/mod.ts index 139dae7..7899533 100644 --- a/TypeScript/12ClassExtensionOverride/src/mod.ts +++ b/TypeScript/12ClassExtensionOverride/src/mod.ts @@ -29,4 +29,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/13AddTrader/src/mod.ts b/TypeScript/13AddTrader/src/mod.ts index cf04d75..a98a505 100644 --- a/TypeScript/13AddTrader/src/mod.ts +++ b/TypeScript/13AddTrader/src/mod.ts @@ -128,4 +128,4 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod } } -module.exports = { mod: new SampleTrader() } +export const mod = new SampleTrader(); diff --git a/TypeScript/14AfterDBLoadHook/src/mod.ts b/TypeScript/14AfterDBLoadHook/src/mod.ts index e894eae..41afa58 100644 --- a/TypeScript/14AfterDBLoadHook/src/mod.ts +++ b/TypeScript/14AfterDBLoadHook/src/mod.ts @@ -47,4 +47,4 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod, IPostDBLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/15HttpListenerExample/src/mod.ts b/TypeScript/15HttpListenerExample/src/mod.ts index dc93042..3418da2 100644 --- a/TypeScript/15HttpListenerExample/src/mod.ts +++ b/TypeScript/15HttpListenerExample/src/mod.ts @@ -28,4 +28,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/16ImporterUtil/src/mod.ts b/TypeScript/16ImporterUtil/src/mod.ts index 31c1796..7f7e148 100644 --- a/TypeScript/16ImporterUtil/src/mod.ts +++ b/TypeScript/16ImporterUtil/src/mod.ts @@ -22,4 +22,4 @@ class Mod implements IPreAkiLoadMod { } } -module.exports = { mod: new Mod() }; +export const mod = new Mod(); diff --git a/TypeScript/17AsyncImporterWithDependency1/src/mod.ts b/TypeScript/17AsyncImporterWithDependency1/src/mod.ts index 13b2fc7..8f15c03 100644 --- a/TypeScript/17AsyncImporterWithDependency1/src/mod.ts +++ b/TypeScript/17AsyncImporterWithDependency1/src/mod.ts @@ -27,4 +27,4 @@ class Mod implements IPreAkiLoadModAsync { } } -module.exports = { mod: new Mod() }; +export const mod = new Mod(); diff --git a/TypeScript/17AsyncImporterWithDependency2/src/mod.ts b/TypeScript/17AsyncImporterWithDependency2/src/mod.ts index 4fa385d..5d822ed 100644 --- a/TypeScript/17AsyncImporterWithDependency2/src/mod.ts +++ b/TypeScript/17AsyncImporterWithDependency2/src/mod.ts @@ -27,4 +27,4 @@ class Mod implements IPreAkiLoadModAsync { } } -module.exports = { mod: new Mod() }; +export const mod = new Mod(); diff --git a/TypeScript/18CustomItemService/src/mod.ts b/TypeScript/18CustomItemService/src/mod.ts index e4f77dc..7335a4f 100644 --- a/TypeScript/18CustomItemService/src/mod.ts +++ b/TypeScript/18CustomItemService/src/mod.ts @@ -77,4 +77,4 @@ class Mod implements IPostDBLoadMod, IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/19UseExternalLibraries/src/mod.ts b/TypeScript/19UseExternalLibraries/src/mod.ts index c6a4699..ce45c99 100644 --- a/TypeScript/19UseExternalLibraries/src/mod.ts +++ b/TypeScript/19UseExternalLibraries/src/mod.ts @@ -38,4 +38,4 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod { } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/1LogToConsole/src/mod.ts b/TypeScript/1LogToConsole/src/mod.ts index 608e7d7..e1e2fee 100644 --- a/TypeScript/1LogToConsole/src/mod.ts +++ b/TypeScript/1LogToConsole/src/mod.ts @@ -19,4 +19,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/20CustomChatBot/src/mod.ts b/TypeScript/20CustomChatBot/src/mod.ts index 40bda45..267082e 100644 --- a/TypeScript/20CustomChatBot/src/mod.ts +++ b/TypeScript/20CustomChatBot/src/mod.ts @@ -12,4 +12,4 @@ class Mod implements IPostDBLoadMod { } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/21CustomCommandoCommand/src/mod.ts b/TypeScript/21CustomCommandoCommand/src/mod.ts index 60c1719..faee472 100644 --- a/TypeScript/21CustomCommandoCommand/src/mod.ts +++ b/TypeScript/21CustomCommandoCommand/src/mod.ts @@ -12,4 +12,4 @@ class Mod implements IPostDBLoadMod { } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/22CustomAkiCommand/src/mod.ts b/TypeScript/22CustomAkiCommand/src/mod.ts index f7bdcd9..3fe2462 100644 --- a/TypeScript/22CustomAkiCommand/src/mod.ts +++ b/TypeScript/22CustomAkiCommand/src/mod.ts @@ -13,4 +13,4 @@ class Mod implements IPostDBLoadMod { } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/23CustomAbstractChatBot/src/mod.ts b/TypeScript/23CustomAbstractChatBot/src/mod.ts index e71055e..585a1eb 100644 --- a/TypeScript/23CustomAbstractChatBot/src/mod.ts +++ b/TypeScript/23CustomAbstractChatBot/src/mod.ts @@ -21,4 +21,4 @@ class Mod implements IPostDBLoadMod { } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/24WebSocket/src/mod.ts b/TypeScript/24WebSocket/src/mod.ts index 76d7748..3a34cf1 100644 --- a/TypeScript/24WebSocket/src/mod.ts +++ b/TypeScript/24WebSocket/src/mod.ts @@ -18,4 +18,4 @@ class Mod implements IPreAkiLoadMod { } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/3GetSptConfigFile/src/mod.ts b/TypeScript/3GetSptConfigFile/src/mod.ts index d3d796d..b3398ff 100644 --- a/TypeScript/3GetSptConfigFile/src/mod.ts +++ b/TypeScript/3GetSptConfigFile/src/mod.ts @@ -31,4 +31,4 @@ class Mod implements IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts index e97221b..5394348 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts @@ -30,4 +30,4 @@ class Mod implements IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/4UseACustomConfigFile/src/mod.ts b/TypeScript/4UseACustomConfigFile/src/mod.ts index 7604ea2..afc8db5 100644 --- a/TypeScript/4UseACustomConfigFile/src/mod.ts +++ b/TypeScript/4UseACustomConfigFile/src/mod.ts @@ -16,4 +16,4 @@ class Mod implements IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/5ReplaceMethod/src/mod.ts b/TypeScript/5ReplaceMethod/src/mod.ts index e9b60f1..cfc0d8f 100644 --- a/TypeScript/5ReplaceMethod/src/mod.ts +++ b/TypeScript/5ReplaceMethod/src/mod.ts @@ -67,4 +67,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/6ReferenceAnotherClass/src/mod.ts b/TypeScript/6ReferenceAnotherClass/src/mod.ts index 651fbf0..f65efc6 100644 --- a/TypeScript/6ReferenceAnotherClass/src/mod.ts +++ b/TypeScript/6ReferenceAnotherClass/src/mod.ts @@ -22,4 +22,4 @@ class Mod implements IPostAkiLoadMod } } -module.exports = { mod: new Mod() } +export const mod = new Mod(); diff --git a/TypeScript/7OnLoadHook/src/mod.ts b/TypeScript/7OnLoadHook/src/mod.ts index eb657c1..a4b55ec 100644 --- a/TypeScript/7OnLoadHook/src/mod.ts +++ b/TypeScript/7OnLoadHook/src/mod.ts @@ -22,4 +22,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = {mod: new Mod()} +export const mod = new Mod(); diff --git a/TypeScript/8OnUpdateHook/src/mod.ts b/TypeScript/8OnUpdateHook/src/mod.ts index 90e100a..6463c21 100644 --- a/TypeScript/8OnUpdateHook/src/mod.ts +++ b/TypeScript/8OnUpdateHook/src/mod.ts @@ -28,4 +28,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = {mod: new Mod()} +export const mod = new Mod(); diff --git a/TypeScript/9RouterHooks/src/mod.ts b/TypeScript/9RouterHooks/src/mod.ts index c1c239b..c1c6db3 100644 --- a/TypeScript/9RouterHooks/src/mod.ts +++ b/TypeScript/9RouterHooks/src/mod.ts @@ -78,4 +78,4 @@ class Mod implements IPreAkiLoadMod } } -module.exports = {mod: new Mod()} +export const mod = new Mod();