logger4node
Advanced tools
Comparing version
{ | ||
"name": "logger4node", | ||
"version": "1.0.48", | ||
"version": "1.0.49", | ||
"description": "", | ||
@@ -42,30 +42,28 @@ "main": "index.js", | ||
"util": "0.12.5", | ||
"uuid": "10.0.0" | ||
"uuid": "11.0.4" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "4.3.14", | ||
"@types/chai": "5.0.1", | ||
"@types/debug": "4.1.12", | ||
"@types/mocha": "10.0.7", | ||
"@types/node": "20.14.10", | ||
"@types/mocha": "10.0.10", | ||
"@types/node": "22.10.5", | ||
"@types/sinon": "17.0.3", | ||
"@typescript-eslint/eslint-plugin": "7.16.1", | ||
"@typescript-eslint/parser": "7.16.1", | ||
"@typescript-eslint/eslint-plugin": "8.19.1", | ||
"@typescript-eslint/parser": "8.19.1", | ||
"chai": "4.4.1", | ||
"eslint": "8.57.0", | ||
"eslint-config-airbnb": "19.0.4", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-plugin-import": "2.29.1", | ||
"eslint-plugin-promise": "6.4.0", | ||
"eslint": "9.17.0", | ||
"eslint-plugin-import": "2.31.0", | ||
"eslint-plugin-promise": "7.2.1", | ||
"eslint-plugin-typescript": "0.14.0", | ||
"flush-write-stream": "^2.0.0", | ||
"mocha": "10.6.0", | ||
"flush-write-stream": "2.0.0", | ||
"mocha": "11.0.1", | ||
"node-tslint-rules": "1.20.3", | ||
"nyc": "17.0.0", | ||
"sinon": "18.0.0", | ||
"sinon-chai": "^3.7.0", | ||
"split2": "^4.2.0", | ||
"tail": "^2.2.6", | ||
"nyc": "17.1.0", | ||
"sinon": "19.0.2", | ||
"sinon-chai": "3.7.0", | ||
"split2": "4.2.0", | ||
"tail": "2.2.6", | ||
"ts-node": "10.9.2", | ||
"tslint": "6.1.3", | ||
"typescript": "5.5.3" | ||
"typescript": "5.7.3" | ||
}, | ||
@@ -72,0 +70,0 @@ "nyc": { |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const chai_1 = require("chai"); | ||
const sinon_1 = __importDefault(require("sinon")); | ||
const sinon_1 = require("sinon"); | ||
const logger_1 = require("../src/logger/logger"); | ||
@@ -26,3 +23,3 @@ const logger4_node_1 = require("../src/logger/logger4-node"); | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger.setLogSeverityPattern(logSeverity)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -44,3 +41,3 @@ it('should log object with string in proper json format', async () => { | ||
path: currentFolder, | ||
line: '29', | ||
line: '31', | ||
column: '22', | ||
@@ -47,0 +44,0 @@ }, |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const chai_1 = require("chai"); | ||
const sinon_1 = __importDefault(require("sinon")); | ||
const sinon_1 = require("sinon"); | ||
const logger_1 = require("../src/logger/logger"); | ||
@@ -36,3 +33,3 @@ const logger4_node_1 = require("../src/logger/logger4-node"); | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger2.setLogSeverityPattern(logSeverity, undefined)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -53,3 +50,3 @@ it('should print all logs', async () => { | ||
path: currentFolder, | ||
line: '13', | ||
line: '15', | ||
column: '10', | ||
@@ -69,3 +66,3 @@ }, | ||
path: currentFolder, | ||
line: '14', | ||
line: '16', | ||
column: '10', | ||
@@ -85,3 +82,3 @@ }, | ||
path: currentFolder, | ||
line: '15', | ||
line: '17', | ||
column: '10', | ||
@@ -101,3 +98,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -117,3 +114,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -145,3 +142,3 @@ }, | ||
path: currentFolder, | ||
line: '13', | ||
line: '15', | ||
column: '10', | ||
@@ -161,3 +158,3 @@ }, | ||
path: currentFolder, | ||
line: '14', | ||
line: '16', | ||
column: '10', | ||
@@ -177,3 +174,3 @@ }, | ||
path: currentFolder, | ||
line: '15', | ||
line: '17', | ||
column: '10', | ||
@@ -193,3 +190,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -209,3 +206,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -234,3 +231,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -250,3 +247,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -277,3 +274,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -293,3 +290,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -309,3 +306,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -332,3 +329,3 @@ }, | ||
path: currentFolder, | ||
line: '13', | ||
line: '15', | ||
column: '10', | ||
@@ -348,3 +345,3 @@ }, | ||
path: currentFolder, | ||
line: '14', | ||
line: '16', | ||
column: '10', | ||
@@ -364,3 +361,3 @@ }, | ||
path: currentFolder, | ||
line: '15', | ||
line: '17', | ||
column: '10', | ||
@@ -380,3 +377,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -396,3 +393,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -412,3 +409,3 @@ }, | ||
path: currentFolder, | ||
line: '13', | ||
line: '15', | ||
column: '10', | ||
@@ -428,3 +425,3 @@ }, | ||
path: currentFolder, | ||
line: '14', | ||
line: '16', | ||
column: '10', | ||
@@ -444,3 +441,3 @@ }, | ||
path: currentFolder, | ||
line: '15', | ||
line: '17', | ||
column: '10', | ||
@@ -460,3 +457,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -476,3 +473,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -501,3 +498,3 @@ }, | ||
path: currentFolder, | ||
line: '13', | ||
line: '15', | ||
column: '10', | ||
@@ -517,3 +514,3 @@ }, | ||
path: currentFolder, | ||
line: '14', | ||
line: '16', | ||
column: '10', | ||
@@ -533,3 +530,3 @@ }, | ||
path: currentFolder, | ||
line: '15', | ||
line: '17', | ||
column: '10', | ||
@@ -549,3 +546,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -565,3 +562,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -599,3 +596,3 @@ }, | ||
path: currentFolder, | ||
line: '13', | ||
line: '15', | ||
column: '10', | ||
@@ -615,3 +612,3 @@ }, | ||
path: currentFolder, | ||
line: '14', | ||
line: '16', | ||
column: '10', | ||
@@ -631,3 +628,3 @@ }, | ||
path: currentFolder, | ||
line: '15', | ||
line: '17', | ||
column: '10', | ||
@@ -648,3 +645,3 @@ }, | ||
path: currentFolder, | ||
line: '16', | ||
line: '18', | ||
column: '10', | ||
@@ -665,3 +662,3 @@ }, | ||
path: currentFolder, | ||
line: '17', | ||
line: '19', | ||
column: '10', | ||
@@ -682,3 +679,3 @@ }, | ||
path: currentFolder, | ||
line: '22', | ||
line: '24', | ||
column: '10', | ||
@@ -716,3 +713,3 @@ }, | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger2.setLogSeverityPattern(logSeverity, undefined)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -733,3 +730,3 @@ it('should print logs not only in string', async () => { | ||
path: currentFolder, | ||
line: '27', | ||
line: '29', | ||
column: '10', | ||
@@ -755,3 +752,3 @@ }, | ||
path: currentFolder, | ||
line: '27', | ||
line: '29', | ||
column: '10', | ||
@@ -777,3 +774,3 @@ }, | ||
path: currentFolder, | ||
line: '32', | ||
line: '34', | ||
column: '10', | ||
@@ -803,3 +800,3 @@ }, | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger.setLogSeverityPattern(logSeverity, undefined)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -820,3 +817,3 @@ it('should log multi line string in one line', async () => { | ||
path: currentFolder, | ||
line: '37', | ||
line: '39', | ||
column: '10', | ||
@@ -842,3 +839,3 @@ }, | ||
path: currentFolder, | ||
line: '42', | ||
line: '44', | ||
column: '10', | ||
@@ -864,3 +861,3 @@ }, | ||
path: currentFolder, | ||
line: '47', | ||
line: '49', | ||
column: '10', | ||
@@ -903,3 +900,3 @@ }, | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger.setLogSeverityPattern(logSeverity, undefined)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -920,5 +917,5 @@ it('should log github detail', async () => { | ||
path: currentFolder, | ||
line: '52', | ||
line: '54', | ||
column: '10', | ||
github: 'https://github.com/yog27ray/logger4node/blob/fd4a2de07ed9e31d890370e05fb4b8a416f27224/spec/test-logs.ts#L52', | ||
github: 'https://github.com/yog27ray/logger4node/blob/fd4a2de07ed9e31d890370e05fb4b8a416f27224/spec/test-logs.ts#L54', | ||
}, | ||
@@ -925,0 +922,0 @@ message: 'this is string', |
@@ -1,3 +0,4 @@ | ||
import { SinonSpy } from 'sinon'; | ||
import sinon from 'sinon'; | ||
import { Logger } from '../src/logger/logger'; | ||
type SinonSpy = sinon.SinonSpy; | ||
export declare function wait(time?: number): Promise<void>; | ||
@@ -4,0 +5,0 @@ export declare function printLogsInDifferentLevel(logger: Logger): Promise<void>; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const chai_1 = require("chai"); | ||
const sinon_1 = __importDefault(require("sinon")); | ||
const sinon_1 = require("sinon"); | ||
const logger_1 = require("../src/logger/logger"); | ||
@@ -42,3 +39,3 @@ const logger4_node_1 = require("../src/logger/logger4-node"); | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger2.setLogSeverityPattern(logSeverity, undefined)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -141,3 +138,3 @@ it('should print all logs', () => { | ||
Object.keys(logger_1.LogLevel).forEach((logSeverity) => logger2.setLogSeverityPattern(logSeverity, undefined)); | ||
callbackSpy = sinon_1.default.spy(console, 'log'); | ||
callbackSpy = (0, sinon_1.spy)(console, 'log'); | ||
}); | ||
@@ -144,0 +141,0 @@ it('should print logs only in string', () => { |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
23
-8%125298
-1.59%30
-3.23%1604
-0.5%+ Added
- Removed
Updated