@testring/logger
Advanced tools
+30
-5
| "use strict"; | ||
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| var desc = Object.getOwnPropertyDescriptor(m, k); | ||
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
| desc = { enumerable: true, get: function() { return m[k]; } }; | ||
| } | ||
| Object.defineProperty(o, k2, desc); | ||
| }) : (function(o, m, k, k2) { | ||
| if (k2 === undefined) k2 = k; | ||
| o[k2] = m[k]; | ||
| })); | ||
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
| Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
| }) : function(o, v) { | ||
| o["default"] = v; | ||
| }); | ||
| var __importStar = (this && this.__importStar) || function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
| return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| }; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.formatLog = void 0; | ||
| const process = require("process"); | ||
| const util = require("util"); | ||
| const chalk_1 = require("chalk"); | ||
| exports.formatLog = formatLog; | ||
| const process = __importStar(require("process")); | ||
| const util = __importStar(require("util")); | ||
| const chalk_1 = __importDefault(require("chalk")); | ||
| const HAS_EMOJI_SUPPORT = !!(process.stdout.isTTY && process.platform === 'darwin'); | ||
@@ -65,2 +91,1 @@ const textTemplate = (logLevel) => logLevel.padEnd(9); | ||
| } | ||
| exports.formatLog = formatLog; |
@@ -24,3 +24,3 @@ "use strict"; | ||
| LogLevelNumeric[LogLevelNumeric["silent"] = 5] = "silent"; | ||
| })(LogLevelNumeric = exports.LogLevelNumeric || (exports.LogLevelNumeric = {})); | ||
| })(LogLevelNumeric || (exports.LogLevelNumeric = LogLevelNumeric = {})); | ||
| class LoggerServer extends pluggable_module_1.PluggableModule { | ||
@@ -47,4 +47,4 @@ constructor(config, transportInstance, stdout, numberOfRetries = 0, shouldSkip = false) { | ||
| } | ||
| runQueue(retry = this.numberOfRetries) { | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
| runQueue() { | ||
| return __awaiter(this, arguments, void 0, function* (retry = this.numberOfRetries) { | ||
| const queueItem = this.queue.shift(); | ||
@@ -51,0 +51,0 @@ if (queueItem === undefined) { |
+9
-9
| { | ||
| "name": "@testring/logger", | ||
| "version": "0.6.13", | ||
| "version": "0.6.14-alpha.1", | ||
| "main": "./dist/index.js", | ||
@@ -13,14 +13,14 @@ "types": "./src/index.ts", | ||
| "dependencies": { | ||
| "@testring/pluggable-module": "0.6.13", | ||
| "@testring/transport": "0.6.13", | ||
| "@testring/types": "0.6.13", | ||
| "@testring/utils": "0.6.13", | ||
| "@types/bytes": "3.1.1", | ||
| "@types/node": "18.11.18", | ||
| "@testring/pluggable-module": "0.6.14-alpha.1", | ||
| "@testring/transport": "0.6.14-alpha.1", | ||
| "@testring/types": "0.6.14-alpha.1", | ||
| "@testring/utils": "0.6.14-alpha.1", | ||
| "@types/bytes": "3.1.4", | ||
| "@types/node": "22.8.5", | ||
| "bytes": "3.1.2", | ||
| "chalk": "2.4.2" | ||
| "chalk": "4.1.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@testring/test-utils": "0.6.13" | ||
| "@testring/test-utils": "0.6.14-alpha.1" | ||
| } | ||
| } |
32258
3.94%854
3.02%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated