Compare commits

..

2 Commits

Author SHA1 Message Date
2f11d1ba0f 5.0.2 2022-05-28 23:22:31 +02:00
33692ff417 fix(core): update 2022-05-28 23:22:31 +02:00
4 changed files with 14 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/smartenv",
"version": "5.0.1",
"version": "5.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/smartenv",
"version": "5.0.1",
"version": "5.0.2",
"license": "MIT",
"dependencies": {
"@pushrocks/smartpromise": "^3.1.7"

View File

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

8
ts/00_commitinfo_data.ts Normal file
View File

@ -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'
}

View File

@ -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';
}
}