refactor: name from SelfhostedModule to SelfHostedModule 🔨

This commit is contained in:
Didi Keke 2024-05-05 07:53:55 +00:00
parent 038c5e9a6e
commit 551121524c
3 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ const CoreModule = require("./src/CoreModule.js");
const { Kernel } = require("./src/Kernel.js"); const { Kernel } = require("./src/Kernel.js");
const DatabaseModule = require("./src/DatabaseModule.js"); const DatabaseModule = require("./src/DatabaseModule.js");
const LocalDiskStorageModule = require("./src/LocalDiskStorageModule.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 PuterDriversModule = require("./src/PuterDriversModule.js");
const { testlaunch } = require("./src/index.js"); const { testlaunch } = require("./src/index.js");
const BaseService = require("./src/services/BaseService.js"); const BaseService = require("./src/services/BaseService.js");
@ -45,5 +45,5 @@ module.exports = {
DatabaseModule, DatabaseModule,
PuterDriversModule, PuterDriversModule,
LocalDiskStorageModule, LocalDiskStorageModule,
SelfhostedModule, SelfHostedModule,
}; };

View File

@ -1,7 +1,7 @@
const { AdvancedBase } = require("@heyputer/puter-js-common"); const { AdvancedBase } = require("@heyputer/puter-js-common");
const config = require("./config"); const config = require("./config");
class SelfhostedModule extends AdvancedBase { class SelfHostedModule extends AdvancedBase {
async install (context) { async install (context) {
const services = context.get('services'); const services = context.get('services');
@ -63,4 +63,4 @@ class SelfhostedModule extends AdvancedBase {
} }
} }
module.exports = SelfhostedModule; module.exports = SelfHostedModule;

View File

@ -59,7 +59,7 @@ const main = async () => {
DatabaseModule, DatabaseModule,
PuterDriversModule, PuterDriversModule,
LocalDiskStorageModule, LocalDiskStorageModule,
SelfhostedModule SelfHostedModule
} = (await import('@heyputer/backend')).default; } = (await import('@heyputer/backend')).default;
console.log('kerne', Kernel); console.log('kerne', Kernel);
@ -68,7 +68,7 @@ const main = async () => {
k.add_module(new DatabaseModule()); k.add_module(new DatabaseModule());
k.add_module(new PuterDriversModule()); k.add_module(new PuterDriversModule());
k.add_module(new LocalDiskStorageModule()); k.add_module(new LocalDiskStorageModule());
k.add_module(new SelfhostedModule()); k.add_module(new SelfHostedModule());
k.boot(); k.boot();
}; };