fix
This commit is contained in:
parent
915b3d5f5e
commit
d04f5ece8e
2
index.js
2
index.js
@ -119,7 +119,6 @@ var BeautylogBrowser;
|
||||
(function (BeautylogBrowser) {
|
||||
function init() {
|
||||
var beautylogBrowser = {};
|
||||
return beautylogBrowser;
|
||||
beautylogBrowser.log = function (message) {
|
||||
console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;");
|
||||
};
|
||||
@ -135,6 +134,7 @@ var BeautylogBrowser;
|
||||
beautylogBrowser.warn = function (message) {
|
||||
console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;");
|
||||
};
|
||||
return beautylogBrowser;
|
||||
}
|
||||
BeautylogBrowser.init = init;
|
||||
})(BeautylogBrowser || (BeautylogBrowser = {}));
|
||||
|
2
test.js
2
test.js
@ -22,3 +22,5 @@ beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"',
|
||||
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
|
||||
console.log('');
|
||||
console.log('*** end test ***');
|
||||
console.log("start test of beautylog browser module (Might look weird in is console...)");
|
||||
beautyLogBrowser.log("hello");
|
||||
|
@ -3,7 +3,6 @@ var BeautylogBrowser;
|
||||
(function (BeautylogBrowser) {
|
||||
function init() {
|
||||
var beautylogBrowser = {};
|
||||
return beautylogBrowser;
|
||||
beautylogBrowser.log = function (message) {
|
||||
console.log('%c Log: %c ' + message, "background:#42A5F5;color:#ffffff", "color:#42A5F5;");
|
||||
};
|
||||
@ -19,6 +18,7 @@ var BeautylogBrowser;
|
||||
beautylogBrowser.warn = function (message) {
|
||||
console.log('%c Warn: %c ' + message, "background:#000000;color:#FB8C00;", "color:#000000;");
|
||||
};
|
||||
return beautylogBrowser;
|
||||
}
|
||||
BeautylogBrowser.init = init;
|
||||
})(BeautylogBrowser || (BeautylogBrowser = {}));
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"console.browser.js","sourceRoot":"","sources":["console.browser.ts"],"names":["BeautylogBrowser","BeautylogBrowser.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,gBAAgB,CAoBtB;AApBD,WAAO,gBAAgB,EAAC,CAAC;IACrBA;QACIC,IAAIA,gBAAgBA,GAAOA,EAAEA,CAACA;QAC9BA,MAAMA,CAACA,gBAAgBA,CAACA;QACxBA,gBAAgBA,CAACA,GAAGA,GAAGA,UAASA,OAAOA;YACnC,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,OAAO,EAAC,kCAAkC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,EAAEA,GAAGA,UAASA,OAAOA;YAClC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,OAAOA,GAAGA,UAASA,OAAOA;YACvC,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAClG,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;IACNA,CAACA;IAlBeD,qBAAIA,OAkBnBA,CAAAA;AACLA,CAACA,EApBM,gBAAgB,KAAhB,gBAAgB,QAoBtB"}
|
||||
{"version":3,"file":"console.browser.js","sourceRoot":"","sources":["console.browser.ts"],"names":["BeautylogBrowser","BeautylogBrowser.init"],"mappings":"AAAA,mCAAmC;AACnC,IAAO,gBAAgB,CAoBtB;AApBD,WAAO,gBAAgB,EAAC,CAAC;IACrBA;QACIC,IAAIA,gBAAgBA,GAAOA,EAAEA,CAACA;QAC9BA,gBAAgBA,CAACA,GAAGA,GAAGA,UAASA,OAAOA;YACnC,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,OAAO,EAAC,kCAAkC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,EAAEA,GAAGA,UAASA,OAAOA;YAClC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC7F,CAAC,CAACA;QACFA,gBAAgBA,CAACA,OAAOA,GAAGA,UAASA,OAAOA;YACvC,OAAO,CAAC,GAAG,CAAC,iBAAiB,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAClG,CAAC,CAACA;QACFA,gBAAgBA,CAACA,IAAIA,GAAGA,UAASA,OAAOA;YACpC,OAAO,CAAC,GAAG,CAAC,cAAc,GAAG,OAAO,EAAC,mCAAmC,EAAC,gBAAgB,CAAC,CAAC;QAC/F,CAAC,CAACA;QACFA,MAAMA,CAACA,gBAAgBA,CAACA;IAC5BA,CAACA;IAlBeD,qBAAIA,OAkBnBA,CAAAA;AACLA,CAACA,EApBM,gBAAgB,KAAhB,gBAAgB,QAoBtB"}
|
@ -2,7 +2,6 @@
|
||||
module BeautylogBrowser {
|
||||
export function init() {
|
||||
var beautylogBrowser:any = {};
|
||||
return beautylogBrowser;
|
||||
beautylogBrowser.log = function(message){
|
||||
console.log('%c Log: %c ' + message,"background:#42A5F5;color:#ffffff","color:#42A5F5;");
|
||||
};
|
||||
@ -18,5 +17,6 @@ module BeautylogBrowser {
|
||||
beautylogBrowser.warn = function(message){
|
||||
console.log('%c Warn: %c ' + message,"background:#000000;color:#FB8C00;","color:#000000;");
|
||||
};
|
||||
return beautylogBrowser;
|
||||
}
|
||||
}
|
@ -22,4 +22,6 @@ beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"',
|
||||
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
|
||||
console.log('');
|
||||
console.log('*** end test ***');
|
||||
console.log("start test of beautylog browser module (Might look weird in is console...)");
|
||||
beautyLogBrowser.log("hello");
|
||||
//# sourceMappingURL=test.js.map
|
@ -1 +1 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":["test.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,IAAI,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC;AAC9C,IAAI,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC;AAExD,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAClC,OAAO,CAAC,GAAG,CAAE,EAAE,CAAC,CAAC;AAEjB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC3C,WAAW,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;AACzE,WAAW,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;AACzE,WAAW,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;AAC7E,WAAW,CAAC,IAAI,CAAC,uDAAuD,CAAC,CAAC;AAC1E,WAAW,CAAC,EAAE,CAAC,sDAAsD,CAAC,CAAC;AACvE,WAAW,CAAC,OAAO,CAAC,2DAA2D,CAAC,CAAC;AACjF,WAAW,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;AAE3E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAEhB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAC/B,WAAW,CAAC,GAAG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AAC;AAE3E,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAEhB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AAC/B,WAAW,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;AACzE,WAAW,CAAC,GAAG,CAAC,0DAA0D,EAAC,KAAK,CAAC,CAAC;AAClF,WAAW,CAAC,GAAG,CAAC,4DAA4D,EAAC,OAAO,CAAC,CAAC;AACtF,WAAW,CAAC,GAAG,CAAC,2DAA2D,EAAC,MAAM,CAAC,CAAC;AACpF,WAAW,CAAC,GAAG,CAAC,yDAAyD,EAAC,IAAI,CAAC,CAAC;AAChF,WAAW,CAAC,GAAG,CAAC,8DAA8D,EAAC,SAAS,CAAC,CAAC;AAC1F,WAAW,CAAC,GAAG,CAAC,2DAA2D,EAAC,MAAM,CAAC,CAAC;AAEpF,OAAO,CAAC,GAAG,CAAE,EAAE,CAAC,CAAC;AACjB,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;AAEhC,OAAO,CAAC,GAAG,CAAC,4EAA4E,CAAC,CAAC;AAC1F,gBAAgB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC"}
|
@ -26,4 +26,7 @@ beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"','
|
||||
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"','warn');
|
||||
|
||||
console.log ('');
|
||||
console.log('*** end test ***');
|
||||
console.log('*** end test ***');
|
||||
|
||||
console.log("start test of beautylog browser module (Might look weird in is console...)");
|
||||
beautyLogBrowser.log("hello");
|
Loading…
Reference in New Issue
Block a user