fix(core): Corrected typos and added missing keywords.

This commit is contained in:
2024-10-01 13:49:18 +02:00
parent 3b28c8befa
commit 9f9c543365
35 changed files with 123 additions and 162 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2024-10-01 - 1.1.1 - fix(core)
Corrected typos and added missing keywords.
- Added missing newline at the end of package.json.
- Revised various typos and added missing keywords.
## 2024-09-29 - 1.1.0 - feat(web) ## 2024-09-29 - 1.1.0 - feat(web)
Implement view container and update elements Implement view container and update elements
+7 -2
View File
@@ -18,13 +18,18 @@
"JWT", "JWT",
"TypeScript", "TypeScript",
"user login", "user login",
"user registration",
"session handling", "session handling",
"email verification", "email verification",
"mobile verification", "mobile verification",
"user roles", "user roles",
"organization management", "organization management",
"billing management" "billing management",
"password reset",
"two-factor authentication",
"OAuth",
"API",
"user data",
"user sessions"
] ]
} }
}, },
+7 -2
View File
@@ -89,12 +89,17 @@
"JWT", "JWT",
"TypeScript", "TypeScript",
"user login", "user login",
"user registration",
"session handling", "session handling",
"email verification", "email verification",
"mobile verification", "mobile verification",
"user roles", "user roles",
"organization management", "organization management",
"billing management" "billing management",
"password reset",
"two-factor authentication",
"OAuth",
"API",
"user data",
"user sessions"
] ]
} }
+6 -6
View File
@@ -27,7 +27,7 @@ import * as domtools from '@design.estate/dees-domtools';
import { html, render } from '@design.estate/dees-element'; import { html, render } from '@design.estate/dees-element';
import { IdpWelcome } from './elements/idp-welcome.js'; import { IdpWelcome } from './elements/idp-welcome.js';
// Define asynchronous run function // Define an asynchronous run function
const run = async () => { const run = async () => {
// Set up DOM tools // Set up DOM tools
const domtoolsInstance = await domtools.DomTools.setupDomTools(); const domtoolsInstance = await domtools.DomTools.setupDomTools();
@@ -56,10 +56,10 @@ const run = async () => {
}, },
}); });
// Set up service worker // Set up the service worker
const serviceWorker = await serviceworker.getServiceworkerClient(); const serviceWorker = await serviceworker.getServiceworkerClient();
// Render main template // Render the main template
const mainTemplate = html` const mainTemplate = html`
<style> <style>
body { body {
@@ -79,7 +79,7 @@ run();
### Using the IDP Client ### Using the IDP Client
The IDP Client is essential to communicate with the IDP server. Below is a sample on how to set up and use the IDP client: The IDP Client is essential to communicate with the IDP server. Below is a sample of how to set up and use the IDP client:
```typescript ```typescript
import { IdpState } from './idp.state.js'; import { IdpState } from './idp.state.js';
@@ -176,7 +176,7 @@ export class IdpRegistrationStepper extends plugins.DeesElement {
last_name: formData.LastName, last_name: formData.LastName,
}, },
}); });
// Proceed to next steps as per the registration flow // Proceed to the next steps as per the registration flow
} }
private renderErrorMessage(message: string) { private renderErrorMessage(message: string) {
@@ -290,7 +290,7 @@ const idpClient = new IdpClient('https://reception.lossless.one/typedrequest');
getTransferToken(idpClient); getTransferToken(idpClient);
``` ```
This comprehensive guide should help you with a detailed understanding of setting up and using the `@idp.global/idp.global` module effectively. This comprehensive guide should help you understand the detailed setup and usage of the `@idp.global/idp.global` module effectively.
## License and Legal Information ## License and Legal Information
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@idp.global/idp.global', name: '@idp.global/idp.global',
version: '1.1.0', version: '1.1.1',
description: 'An identity provider software managing user authentications, registrations, and sessions.' description: 'An identity provider software managing user authentications, registrations, and sessions.'
} }
-14
View File
@@ -1,14 +0,0 @@
// native scope
import * as path from 'path';
export { path };
// @api.global scope
import * as typedserver from '@api.global/typedserver';
export { typedserver };
// @pushrocks scope
import * as qenv from '@push.rocks/qenv';
import * as smartpath from '@push.rocks/smartpath';
export { qenv, smartpath };
+17 -2
View File
@@ -1,5 +1,6 @@
import * as plugins from './ffb.plugins.js'; import * as plugins from './plugins.js';
import * as paths from './ffb.paths.js'; import * as paths from './paths.js';
import { Reception } from './reception/classes.reception.js';
export const runCli = async () => { export const runCli = async () => {
const serviceQenv = new plugins.qenv.Qenv('./', './.nogit', false); const serviceQenv = new plugins.qenv.Qenv('./', './.nogit', false);
@@ -8,5 +9,19 @@ export const runCli = async () => {
domain: 'idp.global', domain: 'idp.global',
serveDir: paths.distWebDir, serveDir: paths.distWebDir,
}); });
// lets add the reception routes
const reception = new Reception({
name: (await serviceQenv.getEnvVarOnDemand('INSTANCE_NAME')) || 'idp.global',
mongoDescriptor: {
mongoDbUser: await serviceQenv.getEnvVarOnDemand('MONGO_DB_USER'),
mongoDbName: await serviceQenv.getEnvVarOnDemand('MONGO_DB_NAME'),
mongoDbPass: await serviceQenv.getEnvVarOnDemand('MONGO_DB_PASS'),
mongoDbUrl: await serviceQenv.getEnvVarOnDemand('MONGO_DB_URL'),
},
websiteServer: websiteServer,
});
await reception.start();
await websiteServer.start(); await websiteServer.start();
}; };
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './ffb.plugins.js'; import * as plugins from './plugins.js';
export const packageDir = plugins.path.join( export const packageDir = plugins.path.join(
plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url),
+12 -14
View File
@@ -1,34 +1,32 @@
// node native // Native scope
import * as path from 'path'; import * as path from 'path';
export { path }; export { path };
// project scope // Project scope
import * as lointReception from '../../dist_ts_interfaces/index.js'; import * as lointReception from '../dist_ts_interfaces/index.js';
export { lointReception };
export { lointReception, }; // @api.global scope
import * as typedserver from '@api.global/typedserver';
// @apiglobal scope
import * as typedrequest from '@api.global/typedrequest'; import * as typedrequest from '@api.global/typedrequest';
import * as typedsocket from '@api.global/typedsocket'; import * as typedsocket from '@api.global/typedsocket';
export { typedrequest, typedsocket }; export { typedserver, typedrequest, typedsocket };
// @serve.zone scope // @serve.zone scope
import * as szPlatformClient from '@serve.zone/platformclient'; import * as szPlatformClient from '@serve.zone/platformclient';
export { szPlatformClient }; export { szPlatformClient };
// @push.rocks scope
// @pushrocks scope
import * as lik from '@push.rocks/lik'; import * as lik from '@push.rocks/lik';
import * as projectinfo from '@push.rocks/projectinfo'; import * as projectinfo from '@push.rocks/projectinfo';
import * as qenv from '@push.rocks/qenv'; import * as qenv from '@push.rocks/qenv';
import * as smartdata from '@push.rocks/smartdata'; import * as smartdata from '@push.rocks/smartdata';
import * as smartdelay from '@push.rocks/smartdelay'; import * as smartdelay from '@push.rocks/smartdelay';
import * as smartjwt from '@push.rocks/smartjwt';
import * as smartlog from '@push.rocks/smartlog';
import * as smartmail from '@push.rocks/smartmail'; import * as smartmail from '@push.rocks/smartmail';
import * as smarthash from '@push.rocks/smarthash'; import * as smarthash from '@push.rocks/smarthash';
import * as smartjwt from '@push.rocks/smartjwt';
import * as smartpath from '@push.rocks/smartpath'; import * as smartpath from '@push.rocks/smartpath';
import * as smartpromise from '@push.rocks/smartpromise'; import * as smartpromise from '@push.rocks/smartpromise';
import * as smarttime from '@push.rocks/smarttime'; import * as smarttime from '@push.rocks/smarttime';
@@ -41,9 +39,10 @@ export {
qenv, qenv,
smartdata, smartdata,
smartdelay, smartdelay,
smartmail,
smarthash, smarthash,
smartjwt, smartjwt,
smartlog,
smartmail,
smartpath, smartpath,
smartpromise, smartpromise,
smarttime, smarttime,
@@ -53,5 +52,4 @@ export {
// @tsclass scope // @tsclass scope
import * as tsclass from '@tsclass/tsclass'; import * as tsclass from '@tsclass/tsclass';
export { tsclass }; export { tsclass };
+1 -1
View File
@@ -1,5 +1,5 @@
import { ApiTokenManager } from './classes.apitokenmanager.js'; import { ApiTokenManager } from './classes.apitokenmanager.js';
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
@plugins.smartdata.Manager(() => { @plugins.smartdata.Manager(() => {
return (this as any).manager; return (this as any).manager;
+1 -1
View File
@@ -1,5 +1,5 @@
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
export class ApiTokenManager { export class ApiTokenManager {
public receptionRef: Reception; public receptionRef: Reception;
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { BillingPlanManager } from './classes.billingplanmanager.js'; import { BillingPlanManager } from './classes.billingplanmanager.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
+1 -1
View File
@@ -1,6 +1,6 @@
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { BillingPlan } from './classes.billingplan.js'; import { BillingPlan } from './classes.billingplan.js';
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
export class BillingPlanManager { export class BillingPlanManager {
public receptionRef: Reception; public receptionRef: Reception;
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { logger } from './logging.js'; import { logger } from './logging.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { JwtManager } from './classes.jwtmanager.js'; import { JwtManager } from './classes.jwtmanager.js';
/** /**
+5 -5
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { Jwt } from './classes.jwt.js'; import { Jwt } from './classes.jwt.js';
@@ -60,7 +60,7 @@ export class JwtManager {
public async pushPublicKeyToClients() { public async pushPublicKeyToClients() {
const targetConnections = const targetConnections =
await this.receptionRef.serviceServer.typedsocket.findAllTargetConnectionsByTag<plugins.lointReception.tags.ITag_LolePubapi>( await this.receptionRef.options.websiteServer.typedserver.typedsocket.findAllTargetConnectionsByTag<plugins.lointReception.tags.ITag_LolePubapi>(
'lole-reception', 'lole-reception',
{ {
backendToken: '', backendToken: '',
@@ -68,7 +68,7 @@ export class JwtManager {
); );
for (const targetConnection of targetConnections) { for (const targetConnection of targetConnections) {
const pushPublicKeyTr = const pushPublicKeyTr =
this.receptionRef.serviceServer.typedsocket.createTypedRequest<plugins.lointReception.request.IReq_PushPublicKeyForValidation>( this.receptionRef.options.websiteServer.typedserver.typedsocket.createTypedRequest<plugins.lointReception.request.IReq_PushPublicKeyForValidation>(
'pushPublicKeyForValidation', 'pushPublicKeyForValidation',
targetConnection targetConnection
); );
@@ -80,7 +80,7 @@ export class JwtManager {
public async pushBlockedJwtIdListToClients() { public async pushBlockedJwtIdListToClients() {
const targetConnections = const targetConnections =
await this.receptionRef.serviceServer.typedsocket.findAllTargetConnectionsByTag<plugins.lointReception.tags.ITag_LolePubapi>( await this.receptionRef.options.websiteServer.typedserver.typedsocket.findAllTargetConnectionsByTag<plugins.lointReception.tags.ITag_LolePubapi>(
'lole-reception', 'lole-reception',
{ {
backendToken: '', backendToken: '',
@@ -88,7 +88,7 @@ export class JwtManager {
); );
for (const targetConnection of targetConnections) { for (const targetConnection of targetConnections) {
const pushPublicKeyTr = const pushPublicKeyTr =
this.receptionRef.serviceServer.typedsocket.createTypedRequest<plugins.lointReception.request.IReq_PushOrGetJwtIdBlocklist>( this.receptionRef.options.websiteServer.typedserver.typedsocket.createTypedRequest<plugins.lointReception.request.IReq_PushOrGetJwtIdBlocklist>(
'pushOrGetJwtIdBlocklist', 'pushOrGetJwtIdBlocklist',
targetConnection targetConnection
); );
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { LoginSessionManager } from './classes.loginsessionmanager.js'; import { LoginSessionManager } from './classes.loginsessionmanager.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { LoginSession } from './classes.loginsession.js'; import { LoginSession } from './classes.loginsession.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { OrganizationManager } from './classes.organizationmanager.js'; import { OrganizationManager } from './classes.organizationmanager.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { Organization } from './classes.organization.js'; import { Organization } from './classes.organization.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
+23 -10
View File
@@ -1,11 +1,10 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import * as paths from './paths.js'; import * as paths from '../paths.js';
import { logger } from './logging.js'; import { logger } from './logging.js';
import { JwtManager } from './classes.jwtmanager.js'; import { JwtManager } from './classes.jwtmanager.js';
import { LoginSessionManager } from './classes.loginsessionmanager.js'; import { LoginSessionManager } from './classes.loginsessionmanager.js';
import { RegistrationSessionManager } from './classes.registrationsessionmanager.js'; import { RegistrationSessionManager } from './classes.registrationsessionmanager.js';
import { ReceptionServer } from './classes.receptionserver.js';
import { ReceptionDb } from './classes.receptiondb.js'; import { ReceptionDb } from './classes.receptiondb.js';
import { ReceptionMailer } from './classes.receptionmailer.js'; import { ReceptionMailer } from './classes.receptionmailer.js';
import { UserManager } from './classes.usermanager.js'; import { UserManager } from './classes.usermanager.js';
@@ -15,6 +14,15 @@ import { OrganizationManager } from './classes.organizationmanager.js';
import { RoleManager } from './classes.rolemanager.js'; import { RoleManager } from './classes.rolemanager.js';
import { BillingPlanManager } from './classes.billingplanmanager.js'; import { BillingPlanManager } from './classes.billingplanmanager.js';
export interface IReceptionOptions {
/**
* a name for the idp instance.
*/
name: string;
mongoDescriptor: plugins.smartdata.IMongoDescriptor;
websiteServer: plugins.typedserver.utilityservers.UtilityWebsiteServer;
}
export class Reception { export class Reception {
public projectinfoNpm = new plugins.projectinfo.ProjectinfoNpm(paths.packageDir); public projectinfoNpm = new plugins.projectinfo.ProjectinfoNpm(paths.packageDir);
public typedrouter = new plugins.typedrequest.TypedRouter(); public typedrouter = new plugins.typedrequest.TypedRouter();
@@ -22,9 +30,6 @@ export class Reception {
public szPlatformClient = new plugins.szPlatformClient.SzPlatformClient(); public szPlatformClient = new plugins.szPlatformClient.SzPlatformClient();
public db = new ReceptionDb(this); public db = new ReceptionDb(this);
// server
public serviceServer = new ReceptionServer(this);
// managers // managers
public jwtManager = new JwtManager(this); public jwtManager = new JwtManager(this);
public loginSessionManager = new LoginSessionManager(this); public loginSessionManager = new LoginSessionManager(this);
@@ -37,16 +42,25 @@ export class Reception {
public billingPlanManager = new BillingPlanManager(this); public billingPlanManager = new BillingPlanManager(this);
housekeeping = new ReceptionHousekeeping(this); housekeeping = new ReceptionHousekeeping(this);
constructor(public databaseName?: string) {} constructor(public options: IReceptionOptions) {
if (!options.mongoDescriptor) {
throw new Error('mongoDescriptor is required');
}
if (!options.websiteServer) {
throw new Error('websiteServer is required');
}
}
/** /**
* starts the reception instance * starts the reception instance
*/ */
public async start() { public async start() {
logger.log('info', 'starting reception'); logger.log('info', 'starting reception');
await this.db.start(this.databaseName); logger.log('info', 'adding typedrouter to website server');
this.options.websiteServer.typedrouter.addTypedRouter(this.typedrouter);
logger.log('info', 'starting database');
await this.db.start();
await this.jwtManager.start(); await this.jwtManager.start();
await this.serviceServer.start();
} }
/** /**
@@ -54,7 +68,6 @@ export class Reception {
*/ */
public async stop() { public async stop() {
await this.housekeeping.stop(); await this.housekeeping.stop();
await this.serviceServer.stop();
console.log('stopped serviceserver!'); console.log('stopped serviceserver!');
await this.db.stop(); await this.db.stop();
} }
+4 -8
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
export class ReceptionDb { export class ReceptionDb {
@@ -9,13 +9,9 @@ export class ReceptionDb {
this.receptionRef = receptionRefArg; this.receptionRef = receptionRefArg;
} }
public async start(databaseNameArg?: string) { public async start() {
this.smartdataDb = new plugins.smartdata.SmartdataDb({ console.log(this.receptionRef.options.mongoDescriptor);
mongoDbUser: await this.receptionRef.serviceQenv.getEnvVarOnDemand('MONGO_DB_USER'), this.smartdataDb = new plugins.smartdata.SmartdataDb(this.receptionRef.options.mongoDescriptor);
mongoDbName: databaseNameArg || await this.receptionRef.serviceQenv.getEnvVarOnDemand('MONGO_DB_NAME'),
mongoDbPass: await this.receptionRef.serviceQenv.getEnvVarOnDemand('MONGO_DB_PASS'),
mongoDbUrl: await this.receptionRef.serviceQenv.getEnvVarOnDemand('MONGO_DB_URL'),
});
await this.smartdataDb.init(); await this.smartdataDb.init();
} }
+1 -1
View File
@@ -1,7 +1,7 @@
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { RegistrationSession } from './classes.registrationsession.js'; import { RegistrationSession } from './classes.registrationsession.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
export class ReceptionMailer { export class ReceptionMailer {
public receptionRef: Reception; public receptionRef: Reception;
-35
View File
@@ -1,35 +0,0 @@
import * as plugins from './plugins.js';
import { Reception } from './classes.reception.js';
export class ReceptionServer {
public receptionRef: Reception;
public serviceServer: plugins.loleServiceServer.ServiceServer;
public typedsocket: plugins.typedsocket.TypedSocket;
constructor(receptionRef: Reception) {
this.receptionRef = receptionRef;
this.serviceServer = new plugins.loleServiceServer.ServiceServer({
serviceDomain: 'reception.lossless.one',
serviceName: 'reception',
serviceVersion: this.receptionRef.projectinfoNpm.version,
port: parseInt(this.receptionRef.serviceQenv.getEnvVarOnDemand('TEST_PORT')) || 3000,
addCustomRoutes: async (serverArg) => {
serverArg.addRoute(
'/typedrequest',
new plugins.loleServiceServer.HandlerTypedRouter(this.receptionRef.typedrouter)
);
},
});
}
async start() {
await this.serviceServer.start();
this.typedsocket = this.serviceServer.typedServer.typedsocket;
this.serviceServer.typedServer.typedrouter.addTypedRouter(this.receptionRef.typedrouter);
}
async stop() {
await this.typedsocket.stop();
await this.serviceServer.stop();
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
/** /**
* can be used to store binary data for users and organizations * can be used to store binary data for users and organizations
+3 -8
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { RegistrationSessionManager } from './classes.registrationsessionmanager.js'; import { RegistrationSessionManager } from './classes.registrationsessionmanager.js';
import { logger } from './logging.js'; import { logger } from './logging.js';
@@ -157,18 +157,13 @@ export class RegistrationSession {
* validate the mobile number of someone * validate the mobile number of someone
*/ */
public async sendValidationSms() { public async sendValidationSms() {
if (!process.env.TEST_MODE) {
this.smsCode = this.smsCode =
await this.registrationSessionManagerRef.receptionRef.loleSmsClientInstance.sendSmsVerifcation( await this.registrationSessionManagerRef.receptionRef.szPlatformClient.smsConnector.sendSmsVerifcation(
{ {
fromName: 'w...global', fromName: this.registrationSessionManagerRef.receptionRef.options.name,
toNumber: parseInt(this.collectedData.userData.mobileNumber), toNumber: parseInt(this.collectedData.userData.mobileNumber),
} }
); );
} else {
console.log('Not sending SMS in automated test mode');
this.smsCode = '123456';
}
} }
/** /**
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { RegistrationSession } from './classes.registrationsession.js'; import { RegistrationSession } from './classes.registrationsession.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { logger } from './logging.js'; import { logger } from './logging.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
@plugins.smartdata.Manager() @plugins.smartdata.Manager()
export class Role extends plugins.smartdata.SmartDataDbDoc< export class Role extends plugins.smartdata.SmartDataDbDoc<
+1 -1
View File
@@ -2,7 +2,7 @@ import { Organization } from './classes.organization.js';
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { Role } from './classes.role.js'; import { Role } from './classes.role.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
export class RoleManager { export class RoleManager {
// INSTANCE // INSTANCE
+1 -1
View File
@@ -1,4 +1,4 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import { UserManager } from './classes.usermanager.js'; import { UserManager } from './classes.usermanager.js';
/** /**
+1 -1
View File
@@ -1,6 +1,6 @@
import { Reception } from './classes.reception.js'; import { Reception } from './classes.reception.js';
import { User } from './classes.user.js'; import { User } from './classes.user.js';
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
/** /**
* a user manager * a user manager
-13
View File
@@ -1,15 +1,2 @@
// general exports for testing // general exports for testing
export * from './classes.reception.js'; export * from './classes.reception.js';
// running it in production
import { Reception } from './classes.reception.js';
let reception: Reception;
export const runCli = async () => {
reception = new Reception();
await reception.start();
};
export const stop = async () => {
await reception.stop();
};
+3 -10
View File
@@ -1,13 +1,6 @@
import * as plugins from './plugins.js'; import * as plugins from '../plugins.js';
import * as paths from './paths.js'; import * as paths from '../paths.js';
const projectinfoNpm = new plugins.projectinfo.ProjectinfoNpm(paths.packageDir); const projectinfoNpm = new plugins.projectinfo.ProjectinfoNpm(paths.packageDir);
export const logger = plugins.loleLog.createLoleLogger({ export const logger = new plugins.smartlog.ConsoleLog();
companyUnit: 'Lossless Cloud',
containerName: 'reception',
containerVersion: projectinfoNpm.version,
sentryAppName: 'reception',
sentryDsn: 'https://fd929bdcad0a41c0b7853cdea04f9c96@o169278.ingest.sentry.io/5272722',
zone: 'servezone',
});
-3
View File
@@ -1,3 +0,0 @@
import * as plugins from './plugins.js';
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@idp.global/idp.global', name: '@idp.global/idp.global',
version: '1.1.0', version: '1.1.1',
description: 'An identity provider software managing user authentications, registrations, and sessions.' description: 'An identity provider software managing user authentications, registrations, and sessions.'
} }