UNPKG

ferngully-aurelia-tools

Version:

Ferngully Tools for Aurelia

25 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var EnvironmentService = (function () { function EnvironmentService() { this.environment = $("div#environment").attr("environment") || "development"; } Object.defineProperty(EnvironmentService.prototype, "isDevelopment", { get: function () { return ["development", "dev"].indexOf(this.environment.toLowerCase()) !== -1; }, enumerable: true, configurable: true }); Object.defineProperty(EnvironmentService.prototype, "isStaging", { get: function () { return ["staging", "prerelease", "preprod", "preproduction"].indexOf(this.environment.toLowerCase()) !== -1; }, enumerable: true, configurable: true }); Object.defineProperty(EnvironmentService.prototype, "isProduction", { get: function () { return ["production", "release"].indexOf(this.environment.toLowerCase()) !== -1; }, enumerable: true, configurable: true }); return EnvironmentService; }()); exports.EnvironmentService = EnvironmentService; //# sourceMappingURL=environment-service.js.map