fix(core): update

This commit is contained in:
2020-09-29 10:23:07 +00:00
parent ffc07da665
commit 3ca1b425bf
7 changed files with 7562 additions and 1064 deletions

View File

@ -11,7 +11,7 @@ export interface IEnvObject {
* Smartenv class that makes it easy
*/
export class Smartenv {
public getSafeNodeModule(moduleNameArg: string) {
public getSafeNodeModule<T = any>(moduleNameArg: string): T {
// tslint:disable-next-line: function-constructor
return new Function(
'exports',
@ -20,7 +20,7 @@ export class Smartenv {
'__filename',
'__dirname',
`return require('${moduleNameArg}')`
)(exports,require,module,__filename,__dirname);
)(exports, require, module, __filename, __dirname);
}
public get runtimeEnv() {

View File

@ -2,4 +2,3 @@ import * as smartparam from '@pushrocks/smartparam';
import * as smartpromise from '@pushrocks/smartpromise';
export { smartparam, smartpromise };