2016-02-17 20:44:40 +00:00
|
|
|
/// <reference path="typings/main.d.ts" />
|
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-02-17 20:44:40 +00:00
|
|
|
}
|
|
|
|
;
|
|
|
|
return Environment;
|
|
|
|
})();
|
|
|
|
exports.Environment = Environment;
|
|
|
|
|
2016-02-20 09:11:25 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNtYXJ0ZW52LmNsYXNzZXMudHMiXSwibmFtZXMiOlsiRW52aXJvbm1lbnQiLCJFbnZpcm9ubWVudC5jb25zdHJ1Y3RvciJdLCJtYXBwaW5ncyI6IkFBQUEsMENBQTBDO0FBRTFDLElBQU8sT0FBTyxXQUFXLDRCQUE0QixDQUFDLENBQUM7QUFDdkQ7SUFRSUE7UUFDSUMsSUFBSUEsQ0FBQ0EsVUFBVUEsR0FBR0EsT0FBT0EsQ0FBQ0EsWUFBWUEsRUFBRUEsQ0FBQ0E7UUFDekNBLElBQUlBLENBQUNBLFNBQVNBLEdBQUdBLE9BQU9BLENBQUNBLFNBQVNBLEVBQUVBLENBQUNBO1FBQ3JDQSxJQUFJQSxDQUFDQSxTQUFTQSxHQUFHQSxPQUFPQSxDQUFDQSxrQkFBa0JBLEVBQUVBLENBQUNBO1FBQzlDQSxJQUFJQSxDQUFDQSxNQUFNQSxHQUFHQSxPQUFPQSxDQUFDQSxNQUFNQSxFQUFFQSxD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