fix(core): update
This commit is contained in:
parent
2f11d1ba0f
commit
165cd3737e
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartenv',
|
name: '@pushrocks/smartenv',
|
||||||
version: '5.0.2',
|
version: '5.0.3',
|
||||||
description: 'store things about your environment and let them travel across modules'
|
description: 'store things about your environment and let them travel across modules'
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ export class Smartenv {
|
|||||||
|
|
||||||
public async getSafeNodeModule<T = any>(moduleNameArg: string): Promise<T> {
|
public async getSafeNodeModule<T = any>(moduleNameArg: string): Promise<T> {
|
||||||
if (!this.isNode) {
|
if (!this.isNode) {
|
||||||
console.error('You tried to load a node module in a wrong context');
|
console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// tslint:disable-next-line: function-constructor
|
// tslint:disable-next-line: function-constructor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user