From f3cc468eda39bf37719145e9fccb27b789a8d7b6 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Thu, 9 Nov 2023 16:37:52 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/smartenv.classes.smartenv.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;