smartlog-destination-local/dist/index.js
2016-02-23 14:34:40 +01:00

20 lines
2.1 KiB
JavaScript

/// <reference path="./typings/main.d.ts" />
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0QztBQUU1QyxJQUFPLE9BQU8sV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBQ2hELElBQU8sYUFBYSxXQUFXLGtCQUFrQixDQUFDLENBQUM7QUFDbkQsSUFBTyxnQkFBZ0IsV0FBVyxxQkFBcUIsQ0FBQyxDQUFDO0FBQ3pELElBQUksU0FBUyxDQUFDO0FBQ2QsTUFBTSxDQUFBLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO0lBQzFDLEtBQUssTUFBTTtRQUNQLFNBQVMsR0FBRyxhQUFhLENBQUM7UUFDMUIsS0FBSyxDQUFDO0lBQ1YsS0FBSyxTQUFTO1FBQ1YsU0FBUyxHQUFHLGdCQUFnQixDQUFDO1FBQzdCLEtBQUssQ0FBQztJQUNWO1FBQ0ksT0FBTyxDQUFDLEdBQUcsQ0FBQywyRUFBMkUsQ0FBQyxDQUFDO1FBQ3pGLEtBQUssQ0FBQztBQUNkLENBQUM7QUFFRCxpQkFBUyxTQUFTLENBQUMiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLy8gPHJlZmVyZW5jZSBwYXRoPVwiLi90eXBpbmdzL21haW4uZ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