@trilo/hippopotamus
Version:
Make requests to the Trilo ecosystem
16 lines (15 loc) • 492 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var constants_1 = require("./constants");
var getStagePrefix = function (stage, logger) {
var stagePrefix = "";
if (stage === constants_1.PRODUCTION) {
stagePrefix = "";
}
else {
stagePrefix = stage + "-";
}
logger("Instantiated with stage " + stage + "; adding prefix: \"" + stagePrefix + "\"");
return { stagePrefix: stagePrefix };
};
exports.default = getStagePrefix;