From 79361eefbc00e02343165903fd2edb6f6a850732 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 21 Jan 2017 01:05:28 +0100 Subject: [PATCH] lighten up beautylog --- .bithoundrc | 1 - code.css | 120 ---------------------------------- dist/beautylog.classes.ora.js | 2 +- dist/beautylog.console.js | 4 +- dist/beautylog.figlet.d.ts | 3 +- dist/beautylog.figlet.js | 2 +- dist/beautylog.log.helpers.js | 4 +- dist/beautylog.log.js | 4 +- dist/beautylog.plugins.d.ts | 2 +- dist/beautylog.plugins.js | 4 +- dist/beautylog.register.d.ts | 0 dist/beautylog.register.js | 1 + dist/beautylog.remote.js | 10 +-- dist/index.d.ts | 10 +-- dist/index.js | 2 +- package.json | 11 ++-- ts/beautylog.console.ts | 13 ++-- ts/beautylog.figlet.ts | 32 +++++---- ts/beautylog.log.helpers.ts | 4 +- ts/beautylog.log.ts | 2 +- ts/beautylog.plugins.ts | 2 +- ts/beautylog.remote.ts | 28 ++++---- 22 files changed, 71 insertions(+), 190 deletions(-) delete mode 100644 .bithoundrc delete mode 100644 code.css create mode 100644 dist/beautylog.register.d.ts create mode 100644 dist/beautylog.register.js diff --git a/.bithoundrc b/.bithoundrc deleted file mode 100644 index 9e26dfe..0000000 --- a/.bithoundrc +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/code.css b/code.css deleted file mode 100644 index b4c305f..0000000 --- a/code.css +++ /dev/null @@ -1,120 +0,0 @@ -.hljs { - display: block; - padding: 0.5em; - color: #333; - background: #f8f8f8; -} - -.hljs-comment, -.hljs-template_comment, -.diff .hljs-header, -.hljs-javadoc { - color: #998; - font-style: italic; -} - -.hljs-keyword, -.css .rule .hljs-keyword, -.hljs-winutils, -.javascript .hljs-title, -.nginx .hljs-title, -.hljs-subst, -.hljs-request, -.hljs-status { - color: #333; - font-weight: bold; -} - -.hljs-number, -.hljs-hexcolor, -.ruby .hljs-constant { - color: #099; -} - -.hljs-string, -.hljs-tag .hljs-value, -.hljs-phpdoc, -.tex .hljs-formula { - color: #d14; -} - -.hljs-title, -.hljs-id, -.coffeescript .hljs-params, -.scss .hljs-preprocessor { - color: #900; - font-weight: bold; -} - -.javascript .hljs-title, -.lisp .hljs-title, -.clojure .hljs-title, -.hljs-subst { - font-weight: normal; -} - -.hljs-class .hljs-title, -.haskell .hljs-type, -.vhdl .hljs-literal, -.tex .hljs-command { - color: #458; - font-weight: bold; -} - -.hljs-tag, -.hljs-tag .hljs-title, -.hljs-rules .hljs-property, -.django .hljs-tag .hljs-keyword { - color: #000080; - font-weight: normal; -} - -.hljs-attribute, -.hljs-variable, -.lisp .hljs-body { - color: #008080; -} - -.hljs-regexp { - color: #009926; -} - -.hljs-symbol, -.ruby .hljs-symbol .hljs-string, -.lisp .hljs-keyword, -.tex .hljs-special, -.hljs-prompt { - color: #990073; -} - -.hljs-built_in, -.lisp .hljs-title, -.clojure .hljs-built_in { - color: #0086b3; -} - -.hljs-preprocessor, -.hljs-pragma, -.hljs-pi, -.hljs-doctype, -.hljs-shebang, -.hljs-cdata { - color: #999; - font-weight: bold; -} - -.hljs-deletion { - background: #fdd; -} - -.hljs-addition { - background: #dfd; -} - -.diff .hljs-change { - background: #0086b3; -} - -.hljs-chunk { - color: #aaa; -} \ No newline at end of file diff --git a/dist/beautylog.classes.ora.js b/dist/beautylog.classes.ora.js index 558499b..f2272d3 100644 --- a/dist/beautylog.classes.ora.js +++ b/dist/beautylog.classes.ora.js @@ -48,4 +48,4 @@ class Ora { } } exports.Ora = Ora; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmNsYXNzZXMub3JhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLmNsYXNzZXMub3JhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwwQkFBdUI7QUFDdkIsK0NBQThDO0FBQzlDLG1FQUErQztBQUVwQyxRQUF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UM7SUFDRCxRQUFRLENBQUMsT0FBTztRQUNaLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQTtRQUNWLCtCQUFPLENBQUMsT0FBTyxFQUFDLE9BQU8sQ0FBQyxDQUFBO0lBQzVCLENBQUM7SUFDRCxLQUFLO1FBQ0QsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLEVBQUUsQ0FBQTtJQUMxQixDQUFDO0lBQ0QsSUFBSTtRQUNBLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQTtJQUNkLENBQUM7Q0FDSjtBQTNDRCxrQkEyQ0MifQ== \ No newline at end of file diff --git a/dist/beautylog.console.js b/dist/beautylog.console.js index edff403..43d7859 100644 --- a/dist/beautylog.console.js +++ b/dist/beautylog.console.js @@ -7,7 +7,7 @@ let nativeError = console.error; * routes the console to got through beautylog, so beautylog can take action before things are logged to console. */ let route = function (statusArg) { - if (statusArg == true) { + if (statusArg === true) { console.log = exports.beautyConsole.log; console.error = exports.beautyConsole.error; } @@ -38,4 +38,4 @@ exports.beautyConsole = { } }; route(true); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmNvbnNvbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cuY29uc29sZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXVCO0FBRXZCLG1FQUEyRDtBQUMzRCxJQUFJLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxDQUFBO0FBQzNCLElBQUksV0FBVyxHQUFHLE9BQU8sQ0FBQyxLQUFLLENBQUE7QUFFL0I7O0dBRUc7QUFDSCxJQUFJLEtBQUssR0FBRyxVQUFTLFNBQWlCO0lBQ2xDLEVBQUUsQ0FBQSxDQUFDLFNBQVMsSUFBSSxJQUFJLENBQUMsQ0FBQSxDQUFDO1FBQ2xCLE9BQU8sQ0FBQyxHQU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ENBQUMsS0FBSyxDQUFDLFNBQVMsRUFBRSxTQUFTLENBQUMsQ0FBQTtRQUN6QyxDQUFDO0lBQ0wsQ0FBQztJQUNELEtBQUssRUFBRTtRQUNILEVBQUUsQ0FBQyxDQUFDLGlDQUFTLENBQUMsQ0FBQyxDQUFDO1lBQ1osaUNBQVMsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtZQUNqQixTQUFTLENBQUMsS0FBSyxDQUFDLFdBQVcsRUFBRSxTQUFTLENBQUMsQ0FBQTtZQUN2QyxpQ0FBUyxDQUFDLEtBQUssRUFBRSxDQUFBO1FBQ3JCLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNKLFNBQVMsQ0FBQyxLQUFLLENBQUMsV0FBVyxFQUFFLFNBQVMsQ0FBQyxDQUFBO1FBQzNDLENBQUM7SUFDTCxDQUFDO0NBQ0osQ0FBQTtBQUVELEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/beautylog.figlet.d.ts b/dist/beautylog.figlet.d.ts index c45c01b..f61eecc 100644 --- a/dist/beautylog.figlet.d.ts +++ b/dist/beautylog.figlet.d.ts @@ -1,4 +1,3 @@ -/// import 'typings-global'; -export declare let figlet: (textArg: string, optionsArg?: any) => Q.Promise<{}>; +export declare let figlet: (textArg: string, optionsArg?: any) => Promise<{}>; export declare let figletSync: (textArg: string, optionsArg?: any) => boolean; diff --git a/dist/beautylog.figlet.js b/dist/beautylog.figlet.js index 78a15a7..abcc1c5 100644 --- a/dist/beautylog.figlet.js +++ b/dist/beautylog.figlet.js @@ -36,4 +36,4 @@ exports.figletSync = function (textArg, optionsArg) { })[options.color]); return true; }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmZpZ2xldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2JlYXV0eWxvZy5maWdsZXQudHMiXSwibmFtZ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ElBQUksWUFBWSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLGNBQWMsQ0FBQyxDQUFBO0lBQzNELElBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLFlBQVksRUFBQyxVQUFVLENBQUMsQ0FBQTtJQUM1RCxPQUFPLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBQztRQUN4QyxJQUFJLEVBQUUsT0FBTyxDQUFDLElBQUk7UUFDbEIsZ0JBQWdCLEVBQUUsU0FBUztRQUMzQixjQUFjLEVBQUUsU0FBUztLQUM1QixDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUE7SUFDbEIsTUFBTSxDQUFDLElBQUksQ0FBQTtBQUNmLENBQUMsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/beautylog.log.helpers.js b/dist/beautylog.log.helpers.js index f41b57c..5851d38 100644 --- a/dist/beautylog.log.helpers.js +++ b/dist/beautylog.log.helpers.js @@ -28,7 +28,7 @@ let xC = { cyan: 87, green: 112, red: 196, - white: 231, + white: 231 }; let localBl = { dirPrefix: plugins.clc.bgXterm(xC.blue).xterm(xC.white).bold(' DIR ') + ' ', @@ -111,4 +111,4 @@ let logBrowser = function (logText, logType) { break; } }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmxvZy5oZWxwZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLmxvZy5oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQ0FBOEM7QUFDOUMsMkRBQW1EO0FBQ25ELHlEQUE4QztBQUU5Qzs7Ozs7R0FLRztBQUNRLFFBQUEsV0FBVyxHQUFHLFVBQVUsT0FBTy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CxLQUFLLFNBQVM7WUFDVixPQUFPLENBQUMsR0FBRyxDQUFDLGlCQUFpQixHQUFHLE9BQU8sRUFBRSxtQ0FBbUMsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFBO1lBQy9GLEtBQUssQ0FBQTtRQUNULEtBQUssTUFBTTtZQUNQLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxHQUFHLE9BQU8sRUFBRSxtQ0FBbUMsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFBO1lBQzVGLEtBQUssQ0FBQTtRQUNULEtBQUssS0FBSztZQUNOLE9BQU8sQ0FBQyxHQUFHLENBQUMsYUFBYSxHQUFHLE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxnQkFBZ0IsQ0FBQyxDQUFBO1lBQzFGLEtBQUssQ0FBQTtRQUNUO1lBQ0ksT0FBTyxDQUFDLEdBQUcsQ0FBQyx1QkFBdUIsR0FBRyxPQUFPLEdBQUcsR0FBRyxDQUFDLENBQUE7WUFDcEQsS0FBSyxDQUFBO0lBQ2IsQ0FBQztBQUNMLENBQUMsQ0FBQSJ9 \ No newline at end of file diff --git a/dist/beautylog.log.js b/dist/beautylog.log.js index f0fb8cb..d5e7280 100644 --- a/dist/beautylog.log.js +++ b/dist/beautylog.log.js @@ -66,7 +66,7 @@ exports.newLine = (linesArg = 1) => { * logs a reduced log that only logs changes of consequential log messages */ exports.logReduced = (logTextArg, repeatEveryTimesArg = 0) => { - if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter != repeatEveryTimesArg)) { + if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter !== repeatEveryTimesArg)) { sameMessageCounter++; } else { @@ -77,4 +77,4 @@ exports.logReduced = (logTextArg, repeatEveryTimesArg = 0) => { }; let previousMessage = ''; let sameMessageCounter = 0; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLmxvZy5qcyIsInNvdXJjZ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ylog.plugins.d.ts @@ -1,7 +1,7 @@ import 'typings-global'; import * as lodash from 'lodash'; import * as smartenv from 'smartenv'; -import * as q from 'q'; +import * as q from 'smartq'; import * as clc from 'cli-color'; declare let figlet: any; import * as loggly from 'loggly'; diff --git a/dist/beautylog.plugins.js b/dist/beautylog.plugins.js index d754cd3..c09a195 100644 --- a/dist/beautylog.plugins.js +++ b/dist/beautylog.plugins.js @@ -4,7 +4,7 @@ const lodash = require("lodash"); exports.lodash = lodash; const smartenv = require("smartenv"); exports.smartenv = smartenv; -const q = require("q"); +const q = require("smartq"); exports.q = q; const clc = require("cli-color"); exports.clc = clc; @@ -14,4 +14,4 @@ const loggly = require("loggly"); exports.loggly = loggly; let ora = require('ora'); exports.ora = ora; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBRXhCLGlDQUFnQztBQVM1QixpQkFUUSxNQUFNLENBU1I7QUFSVixxQ0FBb0M7QUFTaEMsbUJBVFEsUUFBUSxDQVNSO0FBUlosdUJBQXNCO0FBU2xCLFlBVFEsQ0FBQyxDQVNSO0FBUkwsaUNBQWdDO0FBUzVCLGNBVFEsR0FBRyxDQVNSO0FBUlAsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLGlCQVRBLE1BQU0sQ0FTQTtBQVJWLGlDQUFnQztBQVM1QixpQkFUUSxNQUFNLENBU1I7QUFSVixJQUFJLEdBQUcsR0FBRyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUE7QUFTcEIsY0FUQSxHQUFHLENBU0EifQ== \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9iZWF1dHlsb2cucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBRXhCLGlDQUFnQztBQVM1Qix3QkFBTTtBQVJWLHFDQUFvQztBQVNoQyw0QkFBUTtBQVJaLDRCQUEyQjtBQVN2QixjQUFDO0FBUkwsaUNBQWdDO0FBUzVCLGtCQUFHO0FBUlAsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFBO0FBUzFCLHdCQUFNO0FBUlYsaUNBQWdDO0FBUzVCLHdCQUFNO0FBUlYsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFBO0FBU3BCLGtCQUFHIn0= \ No newline at end of file diff --git a/dist/beautylog.register.d.ts b/dist/beautylog.register.d.ts new file mode 100644 index 0000000..e69de29 diff --git a/dist/beautylog.register.js b/dist/beautylog.register.js new file mode 100644 index 0000000..14b6098 --- /dev/null +++ b/dist/beautylog.register.js @@ -0,0 +1 @@ +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnJlZ2lzdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvYmVhdXR5bG9nLnJlZ2lzdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ== \ No newline at end of file diff --git a/dist/beautylog.remote.js b/dist/beautylog.remote.js index 3c49cfc..94c6746 100644 --- a/dist/beautylog.remote.js +++ b/dist/beautylog.remote.js @@ -2,10 +2,10 @@ const plugins = require("./beautylog.plugins"); let client; let clientData = { - serverName: "myServer", - applicationName: "myApp", - message: "undefined", - messageType: "undefined" + serverName: 'myServer', + applicationName: 'myApp', + message: 'undefined', + messageType: 'undefined' }; exports.remoteLog = (logType, logMessage) => { clientData.messageType = logType; @@ -29,4 +29,4 @@ let loggly = (optionsArg) => { exports.remote = { loggly: loggly }; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmVhdXR5bG9nLnJlbW90ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2JlYXV0eWxvZy5yZW1vdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUUvQyxJQUFJLE1BQU0sQ0FBQztBQUNYLElBQUksVUFBVSxHQUFHO0lBQ2IsVUFBVSxFQUFFLFVBQVU7SUFDdEIsZUFBZSxFQUFFLE9BQU87SUFDeEIsT0FBTyxFQUFFLFdBQVc7SUFDcEIsV0FBVyxFQUFFLFdBQVc7Q0FDM0IsQ0FBQTtBQUNVLFFBQUEsU0FBUyxHQUFHLENBQUMsT0FBZSxFQUFFLFVBQWtCO0lBQ3ZELFVBQVUsQ0FBQyxXQUFXLEdBQUcsT0FBTyxDQUFDO0lBQ2pDLFVBQVUsQ0FBQyxPQUFPLEdBQUcsVUFBVSxDQUFDO0lBQ2hDLEVBQUUsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7UUFDVCxNQUFNLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDO0lBQzNCLENBQUM7SUFBQSxDQUFDO0FBQ04sQ0FBQyxDQUFBO0FBRUQsMEJBQTBCO0FBRTFCLElBQUksTUFBTSxHQUFHLENBQUMsVUFLYjtJQUNHLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLFlBQVksQ0FBQztRQUNqQyxLQUFLLEVBQUUsVUFBVSxDQUFDLEtBQUs7UUFDdkIsU0FBUyxFQUFFLFVBQVUsQ0FBQyxTQUFTO1FBQy9CLElBQUksRUFBRSxFQUFFO1FBQ1IsSUFBSSxFQUFFLElBQUk7S0FDYixDQUFDLEN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FBQztRQUNqQyxLQUFLLEVBQUUsVUFBVSxDQUFDLEtBQUs7UUFDdkIsU0FBUyxFQUFFLFVBQVUsQ0FBQyxTQUFTO1FBQy9CLElBQUksRUFBRSxFQUFFO1FBQ1IsSUFBSSxFQUFFLElBQUk7S0FDYixDQUFDLENBQUE7SUFDRixVQUFVLENBQUMsZUFBZSxHQUFHLFVBQVUsQ0FBQyxPQUFPLENBQUE7SUFDL0MsVUFBVSxDQUFDLFVBQVUsR0FBRyxVQUFVLENBQUMsVUFBVSxDQUFBO0FBQ2pELENBQUMsQ0FBQTtBQUVVLFFBQUEsTUFBTSxHQUFHO0lBQ2hCLE1BQU0sRUFBRSxNQUFNO0NBQ2pCLENBQUEifQ== \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts index ea03933..f82f062 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,5 +1,5 @@ -import "typings-global"; -export { Ora } from "./beautylog.classes.ora"; -export { dir, error, info, log, logReduced, ok, success, warn, newLine } from "./beautylog.log"; -export { figlet, figletSync } from "./beautylog.figlet"; -export { remote } from "./beautylog.remote"; +import 'typings-global'; +export { Ora } from './beautylog.classes.ora'; +export { dir, error, info, log, logReduced, ok, success, warn, newLine } from './beautylog.log'; +export { figlet, figletSync } from './beautylog.figlet'; +export { remote } from './beautylog.remote'; diff --git a/dist/index.js b/dist/index.js index b07899c..7c420c9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -19,4 +19,4 @@ exports.figlet = beautylog_figlet_1.figlet; exports.figletSync = beautylog_figlet_1.figletSync; var beautylog_remote_1 = require("./beautylog.remote"); exports.remote = beautylog_remote_1.remote; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMEJBQXdCO0FBSXhCLGlCQUFp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FBLFVBQVUsQ0FBQTtBQUN6Qix1REFBeUM7QUFBakMsb0NBQUEsTUFBTSxDQUFBIn0= \ No newline at end of file diff --git a/package.json b/package.json index 767ed4c..5f5f21f 100644 --- a/package.json +++ b/package.json @@ -33,18 +33,17 @@ "dependencies": { "@types/lodash": "4.x.x", "@types/loggly": "^1.1.30", - "@types/q": "0.x.x", "cli-color": "^1.1.0", "figlet": "^1.2.0", - "lodash": "^4.16.4", + "lodash": "^4.17.4", "loggly": "^1.1.1", - "ora": "^0.3.0", - "q": "^1.4.1", - "smartenv": "^1.2.5", + "ora": "^1.1.0", + "smartenv": "^2.0.0", + "smartq": "^1.0.4", "typings-global": "^1.0.14" }, "devDependencies": { - "npmts-g": "^5.2.8", + "npmts-g": "^6.0.0", "typings-test": "^1.0.3" } } diff --git a/ts/beautylog.console.ts b/ts/beautylog.console.ts index febebce..be405ca 100644 --- a/ts/beautylog.console.ts +++ b/ts/beautylog.console.ts @@ -7,19 +7,18 @@ let nativeError = console.error /** * routes the console to got through beautylog, so beautylog can take action before things are logged to console. */ -let route = function(statusArg:boolean){ - if(statusArg == true){ +let route = function(statusArg: boolean){ + if (statusArg === true) { console.log = beautyConsole.log console.error = beautyConsole.error } else { console.log = nativeLog } - } export let beautyConsole = { - log: function(logArg:any){ - if(oraActive){ + log: function(logArg: any){ + if (oraActive) { activeOra.pause() nativeLog.apply(nativeLog, arguments) activeOra.start() @@ -28,7 +27,7 @@ export let beautyConsole = { } }, error: function(){ - if(oraActive){ + if (oraActive) { activeOra.pause() nativeLog.apply(nativeError, arguments) activeOra.start() @@ -38,4 +37,4 @@ export let beautyConsole = { } } -route(true) \ No newline at end of file +route(true) diff --git a/ts/beautylog.figlet.ts b/ts/beautylog.figlet.ts index b28093e..5589c35 100644 --- a/ts/beautylog.figlet.ts +++ b/ts/beautylog.figlet.ts @@ -6,24 +6,28 @@ let defaultOptions = { cb: function() {} } -export let figlet = function(textArg:string,optionsArg?){ +export let figlet = function(textArg: string, optionsArg?){ let done = plugins.q.defer() let mergeOptions = plugins.lodash.cloneDeep(defaultOptions) let options = plugins.lodash.assign(mergeOptions,optionsArg) - plugins.figlet(textArg,{ - font: options.font, - horizontalLayout: 'default', - verticalLayout: 'default' - }, function(err, data) { - if (err) { - console.log('Something went wrong...') - console.dir(err) - return + plugins.figlet( + textArg, + { + font: options.font, + horizontalLayout: 'default', + verticalLayout: 'default' + }, + function(err, data) { + if (err) { + console.log('Something went wrong...') + console.dir(err) + return + } + console.log(data[options.color]) + options.cb() + done.resolve() } - console.log(data[options.color]) - options.cb() - done.resolve() - }) + ) return done.promise } diff --git a/ts/beautylog.log.helpers.ts b/ts/beautylog.log.helpers.ts index 47f51fe..ec055b1 100644 --- a/ts/beautylog.log.helpers.ts +++ b/ts/beautylog.log.helpers.ts @@ -29,7 +29,7 @@ let xC = { cyan: 87, green: 112, red: 196, - white: 231, + white: 231 } let localBl = { @@ -113,4 +113,4 @@ let logBrowser = function (logText, logType) { console.log('unknown logType for "' + logText + '"') break } -}; +} diff --git a/ts/beautylog.log.ts b/ts/beautylog.log.ts index f776da6..e5583a9 100644 --- a/ts/beautylog.log.ts +++ b/ts/beautylog.log.ts @@ -76,7 +76,7 @@ export let newLine = (linesArg: number = 1) => { * logs a reduced log that only logs changes of consequential log messages */ export let logReduced = (logTextArg: string,repeatEveryTimesArg: number = 0) => { - if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter != repeatEveryTimesArg)) { + if (logTextArg === previousMessage && (repeatEveryTimesArg === 0 || sameMessageCounter !== repeatEveryTimesArg)) { sameMessageCounter++ } else { sameMessageCounter = 0 diff --git a/ts/beautylog.plugins.ts b/ts/beautylog.plugins.ts index f2610dc..6336d69 100644 --- a/ts/beautylog.plugins.ts +++ b/ts/beautylog.plugins.ts @@ -2,7 +2,7 @@ import 'typings-global'; import * as lodash from 'lodash' import * as smartenv from 'smartenv' -import * as q from 'q' +import * as q from 'smartq' import * as clc from 'cli-color' let figlet = require('figlet') import * as loggly from 'loggly' diff --git a/ts/beautylog.remote.ts b/ts/beautylog.remote.ts index 7b8674a..3ae9308 100644 --- a/ts/beautylog.remote.ts +++ b/ts/beautylog.remote.ts @@ -1,17 +1,17 @@ -import * as plugins from "./beautylog.plugins"; +import * as plugins from './beautylog.plugins' -let client; +let client let clientData = { - serverName: "myServer", - applicationName: "myApp", - message: "undefined", - messageType: "undefined" + serverName: 'myServer', + applicationName: 'myApp', + message: 'undefined', + messageType: 'undefined' } export let remoteLog = (logType: string, logMessage: string) => { - clientData.messageType = logType; - clientData.message = logMessage; + clientData.messageType = logType + clientData.message = logMessage if (client) { - client.log(clientData); + client.log(clientData) }; } @@ -21,18 +21,18 @@ let loggly = (optionsArg: { token: string, subdomain: string, appName: string, - serverName:string + serverName: string }) => { client = plugins.loggly.createClient({ token: optionsArg.token, subdomain: optionsArg.subdomain, tags: [], json: true - }); - clientData.applicationName = optionsArg.appName; - clientData.serverName = optionsArg.serverName; + }) + clientData.applicationName = optionsArg.appName + clientData.serverName = optionsArg.serverName } export let remote = { loggly: loggly -}; \ No newline at end of file +}