2016-02-17 20:44:40 +00:00
|
|
|
/// <reference path="typings/main.d.ts" />
|
2016-04-04 16:24:22 +00:00
|
|
|
"use strict";
|
2016-02-20 09:11:25 +00:00
|
|
|
var helpers = require("./smartenv.classes.helpers");
|
2016-02-17 20:44:40 +00:00
|
|
|
var Environment = (function () {
|
2016-02-20 09:11:25 +00:00
|
|
|
function Environment() {
|
|
|
|
this.runtimeEnv = helpers.getEnvString();
|
|
|
|
this.isBrowser = helpers.isBrowser();
|
|
|
|
this.userAgent = helpers.getUserAgentString();
|
|
|
|
this.isNode = helpers.isNode();
|
|
|
|
this.nodeVersion = helpers.getNodeVersion();
|
|
|
|
this.isCI = helpers.isCI();
|
|
|
|
this.isTravis = helpers.isTravis();
|
2016-03-03 00:50:13 +00:00
|
|
|
this.isC9 = helpers.isC9();
|
2016-02-17 20:44:40 +00:00
|
|
|
}
|
|
|
|
;
|
|
|
|
return Environment;
|
2016-04-04 16:24:22 +00:00
|
|
|
}());
|
2016-02-17 20:44:40 +00:00
|
|
|
exports.Environment = Environment;
|
|
|
|
|
2016-05-01 23:29:42 +00:00
|
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZW52LmNsYXNzZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDOztBQUUxQyxJQUFPLE9BQU8sV0FBVyw0QkFBNEIsQ0FBQyxDQUFDO0FBQ3ZEO0lBU0k7UUFDSSxJQUFJLENBQUMsVUFBVSxHQUFHLE9BQU8sQ0FBQyxZQUFZLEVBQUUsQ0FBQztRQUN6QyxJQUFJLENBQUMsU0FBUyxHQUFHLE9BQU8sQ0FBQyxTQUFTLEVBQUUsQ0FBQztRQUNyQyxJQUFJLENBQUMsU0FBUyxHQUFHLE9BQU8sQ0FBQyxrQkFBa0IsRUFBRSxDQUFDO1FBQzlDLElBQUksQ0FBQyxNQUFNLEdBQUcsT0FBTyxDQUFD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