Compare commits

...

2 Commits

Author SHA1 Message Date
27fbe00cb0 5.0.12 2023-11-09 16:37:53 +01:00
f3cc468eda fix(core): update 2023-11-09 16:37:52 +01:00
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@push.rocks/smartenv", "name": "@push.rocks/smartenv",
"version": "5.0.11", "version": "5.0.12",
"description": "store things about your environment and let them travel across modules", "description": "store things about your environment and let them travel across modules",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartenv', name: '@push.rocks/smartenv',
version: '5.0.11', version: '5.0.12',
description: 'store things about your environment and let them travel across modules' description: 'store things about your environment and let them travel across modules'
} }

View File

@ -30,7 +30,7 @@ export class Smartenv {
} }
} }
public async getSafeNodeModule<T = any>(moduleNameArg: string, runAfterFunc: (moduleArg: T) => Promise<any>): Promise<T> { public async getSafeNodeModule<T = any>(moduleNameArg: string, runAfterFunc?: (moduleArg: T) => Promise<any>): Promise<T> {
if (!this.isNode) { if (!this.isNode) {
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`); console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
return; return;