diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b6ac504..2ec9a8e 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartenv', - version: '5.0.11', + version: '5.0.12', description: 'store things about your environment and let them travel across modules' } diff --git a/ts/smartenv.classes.smartenv.ts b/ts/smartenv.classes.smartenv.ts index ed6e06f..e312fc9 100644 --- a/ts/smartenv.classes.smartenv.ts +++ b/ts/smartenv.classes.smartenv.ts @@ -30,7 +30,7 @@ export class Smartenv { } } - public async getSafeNodeModule(moduleNameArg: string, runAfterFunc: (moduleArg: T) => Promise): Promise { + public async getSafeNodeModule(moduleNameArg: string, runAfterFunc?: (moduleArg: T) => Promise): Promise { if (!this.isNode) { console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`); return;