fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-15 20:59:02 +01:00
parent 17ebd58951
commit d24b11f737
4 changed files with 304 additions and 447 deletions

720
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,16 +24,17 @@
"homepage": "https://gitlab.com/pushrocks/smartenv", "homepage": "https://gitlab.com/pushrocks/smartenv",
"dependencies": { "dependencies": {
"@pushrocks/smartparam": "^1.0.4", "@pushrocks/smartparam": "^1.0.4",
"@pushrocks/smartpromise": "^3.0.2", "@pushrocks/smartpromise": "^3.0.6",
"@types/node": "^12.7.2" "@types/node": "^12.12.7",
"is-wsl": "^2.1.1"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.11", "@gitzone/tsbuild": "^2.1.17",
"@gitzone/tsrun": "^1.2.8", "@gitzone/tsrun": "^1.2.8",
"@gitzone/tstest": "^1.0.24", "@gitzone/tstest": "^1.0.28",
"@pushrocks/tapbundle": "^3.0.11", "@pushrocks/tapbundle": "^3.0.13",
"@types/npm": "^2.0.29", "@types/npm": "^2.0.31",
"tslint": "^5.19.0", "tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0" "tslint-config-prettier": "^1.18.0"
}, },
"private": false, "private": false,

View File

@ -36,6 +36,10 @@ export class Smartenv {
return this.runtimeEnv === 'node'; return this.runtimeEnv === 'node';
} }
public get isWsl(): boolean {
return plugins.isWsl;
}
public get nodeVersion(): string { public get nodeVersion(): string {
return process.version; return process.version;
} }

View File

@ -1,4 +1,12 @@
import * as smartparam from '@pushrocks/smartparam'; import * as smartparam from '@pushrocks/smartparam';
import * as smartq from '@pushrocks/smartpromise'; import * as smartpromise from '@pushrocks/smartpromise';
export { smartparam, smartq }; export { smartparam, smartpromise };
// third party scope
import isWsl from 'is-wsl';
export {
isWsl
};