From 33692ff417a94856d6a08776911c04c2a072978a Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 28 May 2022 23:22:31 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 8 ++++++++ ts/smartenv.classes.smartenv.ts | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 ts/00_commitinfo_data.ts diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts new file mode 100644 index 0000000..7c4d0bd --- /dev/null +++ b/ts/00_commitinfo_data.ts @@ -0,0 +1,8 @@ +/** + * autocreated commitinfo by @pushrocks/commitinfo + */ +export const commitinfo = { + name: '@pushrocks/smartenv', + version: '5.0.2', + 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 80173b4..6d6d878 100644 --- a/ts/smartenv.classes.smartenv.ts +++ b/ts/smartenv.classes.smartenv.ts @@ -65,10 +65,10 @@ export class Smartenv { } public get runtimeEnv() { - if (typeof window !== 'undefined') { - return 'browser'; - } else if (typeof process !== 'undefined') { + if (typeof process !== 'undefined') { return 'node'; + } else { + return 'browser'; } }