New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@meteor-it/logger

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meteor-it/logger - npm Package Compare versions

Comparing version 2.3.3 to 2.3.4

6

package.json
{
"name": "@meteor-it/logger",
"version": "2.3.3",
"version": "2.3.4",
"description": "Most powerfull logger for node.js",

@@ -14,3 +14,3 @@ "main": "index.js",

"@meteor-it/terminal": "^0.5.7",
"@meteor-it/utils": "^1.3.3"
"@meteor-it/utils": "^1.3.4"
},

@@ -20,3 +20,3 @@ "publishConfig": {

},
"gitHead": "56ab0de7c3db60075719e4223e1f8fee31427a0a"
"gitHead": "4c42fd3e8ab0dbba17ca3090f20bf46a1f2dd9e8"
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require("../");
const __1 = require("../");
const utils_1 = require("@meteor-it/utils");

@@ -41,3 +41,3 @@ const colors = {

// }
class BrowserConsoleReceiver extends _1.BasicReceiver {
class BrowserConsoleReceiver extends __1.BasicReceiver {
constructor(nameLimit = 8) {

@@ -51,28 +51,28 @@ super();

switch (data.type) {
case _1.LOGGER_ACTIONS.IDENT:
case __1.LOGGER_ACTIONS.IDENT:
console.group('%cIDENT', data.name);
break;
case _1.LOGGER_ACTIONS.DEENT:
case __1.LOGGER_ACTIONS.DEENT:
console.groupEnd();
break;
case _1.LOGGER_ACTIONS.LOG:
case __1.LOGGER_ACTIONS.LOG:
console._log(...line);
break;
case _1.LOGGER_ACTIONS.ERROR:
case __1.LOGGER_ACTIONS.ERROR:
console._error(...line);
break;
case _1.LOGGER_ACTIONS.WARNING:
case __1.LOGGER_ACTIONS.WARNING:
console._error(...line);
break;
case _1.LOGGER_ACTIONS.DEBUG:
case __1.LOGGER_ACTIONS.DEBUG:
console._log(...line);
break;
case _1.LOGGER_ACTIONS.TIME_START:
case __1.LOGGER_ACTIONS.TIME_START:
console._log('TIME_START');
break;
case _1.LOGGER_ACTIONS.TIME_END:
case __1.LOGGER_ACTIONS.TIME_END:
console._log('TIME_END');
break;
default:
console._error('ERROR', data.type, _1.LOGGER_ACTIONS);
console._error('ERROR', data.type, __1.LOGGER_ACTIONS);
}

@@ -79,0 +79,0 @@ //console._log(data);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("util");
const _1 = require("../");
const __1 = require("../");
const terminal_1 = require("@meteor-it/terminal");

@@ -146,3 +146,3 @@ const ansiColors = {

}
class NodeConsoleReceiver extends _1.BasicReceiver {
class NodeConsoleReceiver extends __1.BasicReceiver {
constructor(nameLimit = 18) {

@@ -166,33 +166,33 @@ super();

switch (data.type) {
case _1.LOGGER_ACTIONS.IDENT:
case __1.LOGGER_ACTIONS.IDENT:
terminal_1.writeStdout('\n' + stringifyIdentData(nameLimit, this, data));
break;
case _1.LOGGER_ACTIONS.DEENT:
case __1.LOGGER_ACTIONS.DEENT:
terminal_1.writeStdout('\n' + stringifyDeentData(nameLimit, this, data));
break;
case _1.LOGGER_ACTIONS.LOG:
case __1.LOGGER_ACTIONS.LOG:
writeLogData(nameLimit, this, data);
break;
case _1.LOGGER_ACTIONS.ERROR:
case __1.LOGGER_ACTIONS.ERROR:
writeErrorData(nameLimit, this, data);
break;
case _1.LOGGER_ACTIONS.WARNING:
case __1.LOGGER_ACTIONS.WARNING:
writeWarningData(nameLimit, this, data);
break;
case _1.LOGGER_ACTIONS.DEBUG:
case __1.LOGGER_ACTIONS.DEBUG:
writeDebugData(nameLimit, this, data);
break;
case _1.LOGGER_ACTIONS.TIME_START:
case __1.LOGGER_ACTIONS.TIME_START:
terminal_1.writeStdout('\n' + stringifyTimeStartData(nameLimit, this, data));
break;
case _1.LOGGER_ACTIONS.TIME_END:
case __1.LOGGER_ACTIONS.TIME_END:
terminal_1.writeStdout('\n' + stringifyTimeEndData(nameLimit, this, data));
break;
case _1.LOGGER_ACTIONS.PROGRESS_START:
case __1.LOGGER_ACTIONS.PROGRESS_START:
progressStart(nameLimit, this, data);
break;
case _1.LOGGER_ACTIONS.PROGRESS_END:
case __1.LOGGER_ACTIONS.PROGRESS_END:
progressEnd(nameLimit, this, data);
break;
case _1.LOGGER_ACTIONS.PROGRESS:
case __1.LOGGER_ACTIONS.PROGRESS:
progress(nameLimit, this, data);

@@ -214,3 +214,3 @@ break;

exports.default = NodeConsoleReceiver;
let terminalLogger = new _1.default('terminal');
let terminalLogger = new __1.default('terminal');
process.on('uncaughtException', e => {

@@ -228,3 +228,3 @@ terminalLogger.err('UncaughtException:');

// terminalLogger.warn(e.stack);
// });
// });
//# sourceMappingURL=node.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc