From 551121524c40114caf51d30cf8cbaa77f03f9202 Mon Sep 17 00:00:00 2001 From: Didi Keke Date: Sun, 5 May 2024 07:53:55 +0000 Subject: [PATCH] refactor: name from `SelfhostedModule` to `SelfHostedModule` :hammer: --- packages/backend/exports.js | 4 ++-- packages/backend/src/SelfhostedModule.js | 4 ++-- run-selfhosted.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/backend/exports.js b/packages/backend/exports.js index fec5b824..8ffa9869 100644 --- a/packages/backend/exports.js +++ b/packages/backend/exports.js @@ -20,7 +20,7 @@ const CoreModule = require("./src/CoreModule.js"); const { Kernel } = require("./src/Kernel.js"); const DatabaseModule = require("./src/DatabaseModule.js"); const LocalDiskStorageModule = require("./src/LocalDiskStorageModule.js"); -const SelfhostedModule = require("./src/SelfhostedModule.js"); +const SelfHostedModule = require("./src/SelfHostedModule.js"); const PuterDriversModule = require("./src/PuterDriversModule.js"); const { testlaunch } = require("./src/index.js"); const BaseService = require("./src/services/BaseService.js"); @@ -45,5 +45,5 @@ module.exports = { DatabaseModule, PuterDriversModule, LocalDiskStorageModule, - SelfhostedModule, + SelfHostedModule, }; diff --git a/packages/backend/src/SelfhostedModule.js b/packages/backend/src/SelfhostedModule.js index 74a8f215..adc375d0 100644 --- a/packages/backend/src/SelfhostedModule.js +++ b/packages/backend/src/SelfhostedModule.js @@ -1,7 +1,7 @@ const { AdvancedBase } = require("@heyputer/puter-js-common"); const config = require("./config"); -class SelfhostedModule extends AdvancedBase { +class SelfHostedModule extends AdvancedBase { async install (context) { const services = context.get('services'); @@ -63,4 +63,4 @@ class SelfhostedModule extends AdvancedBase { } } -module.exports = SelfhostedModule; +module.exports = SelfHostedModule; diff --git a/run-selfhosted.js b/run-selfhosted.js index 5b2ef423..7fe97586 100644 --- a/run-selfhosted.js +++ b/run-selfhosted.js @@ -59,7 +59,7 @@ const main = async () => { DatabaseModule, PuterDriversModule, LocalDiskStorageModule, - SelfhostedModule + SelfHostedModule } = (await import('@heyputer/backend')).default; console.log('kerne', Kernel); @@ -68,7 +68,7 @@ const main = async () => { k.add_module(new DatabaseModule()); k.add_module(new PuterDriversModule()); k.add_module(new LocalDiskStorageModule()); - k.add_module(new SelfhostedModule()); + k.add_module(new SelfHostedModule()); k.boot(); };