smartlog-destination-local/dist/index.js

21 lines
2.1 KiB
JavaScript

/// <reference path="./typings/main.d.ts" />
"use strict";
var plugins = require("./beautylog.plugins");
var BeautylogNode = require("./beautylog.node");
var BeautylogBrowser = require("./beautylog.browser");
var beautylog;
switch (plugins.smartenv.getEnv().runtimeEnv) {
case "node":
beautylog = BeautylogNode;
break;
case "browser":
beautylog = BeautylogBrowser;
break;
default:
console.log("something is strange about the platform in which you try to use beautylog");
break;
}
module.exports = beautylog;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0Qzs7QUFFNUMsSUFBTyxPQUFPLFdBQVcscUJBQXFCLENBQUMsQ0FBQztBQUNoRCxJQUFPLGFBQWEsV0FBVyxrQkFBa0IsQ0FBQyxDQUFDO0FBQ25ELElBQU8sZ0JBQWdCLFdBQVcscUJBQXFCLENBQUMsQ0FBQztBQUN6RCxJQUFJLFNBQVMsQ0FBQztBQUNkLE1BQU0sQ0FBQSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsTUFBTSxFQUFFLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztJQUMxQyxLQUFLLE1BQU07UUFDUCxTQUFTLEdBQUcsYUFBYSxDQUFDO1FBQzFCLEtBQUssQ0FBQztJQUNWLEtBQUssU0FBUztRQUNWLFNBQVMsR0FBRyxnQkFBZ0IsQ0FBQztRQUM3QixLQUFLLENBQUM7SUFDVjtRQUNJLE9BQU8sQ0FBQyxHQUFHLENBQUMsMkVBQTJFLENBQUMsQ0FBQztRQUN6RixLQUFLLENBQUM7QUFDZCxDQUFDO0FBRUQsaUJBQVMsU0FBUyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8vIDxyZWZlcmVuY2UgcGF0aD1cIi4vdHlwaW5ncy9tYWluLmQudHNcIiAvPlxuXG5p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