From 1b21c9cb348e5c69d7cef6f4c0e75d648af05d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Thu, 7 Sep 2023 12:06:04 +0100 Subject: [PATCH 1/3] chore(npm): update dependencies --- .gitignore | 6 +- package-lock.json | 160 +++++++++--------- package.json | 18 +- src/constants/VanillaChannels.ts | 18 +- src/drivers/ConsoleDriver.ts | 2 +- src/drivers/DiscordDriver.ts | 4 +- src/drivers/Driver.ts | 2 +- src/drivers/FileDriver.ts | 2 +- src/drivers/SlackDriver.ts | 2 +- src/drivers/StackDriver.ts | 6 +- src/drivers/TelegramDriver.ts | 6 +- src/exceptions/DriverExistException.ts | 2 +- src/exceptions/FormatterExistException.ts | 2 +- src/exceptions/NotFoundDriverException.ts | 2 +- src/exceptions/NotFoundFormatterException.ts | 2 +- .../NotImplementedConfigException.ts | 2 +- src/factories/DriverFactory.ts | 2 +- src/factories/FormatterFactory.ts | 2 +- src/formatters/Formatter.ts | 6 +- src/formatters/JsonFormatter.ts | 2 +- src/formatters/MessageFormatter.ts | 4 +- src/formatters/RequestFormatter.ts | 10 +- src/helpers/FactoryHelper.ts | 2 +- src/logger/Logger.ts | 4 +- tests/{stubs => fixtures}/config/logging.ts | 30 ++-- .../transporters/console.ts | 2 +- .../transporters/vanillaLogger.ts | 0 tests/unit/drivers/ConsoleDriverTest.ts | 2 +- tests/unit/drivers/DiscordDriverTest.ts | 2 +- tests/unit/drivers/FileDriverTest.ts | 2 +- tests/unit/drivers/SlackDriverTest.ts | 2 +- tests/unit/drivers/StackDriverTest.ts | 2 +- tests/unit/drivers/TelegramDriverTest.ts | 2 +- tests/unit/factories/DriverFactoryTest.ts | 6 +- tests/unit/formatters/RequestFormatterTest.ts | 24 +-- tests/unit/logger/LoggerTest.ts | 2 +- 36 files changed, 172 insertions(+), 172 deletions(-) rename tests/{stubs => fixtures}/config/logging.ts (84%) rename tests/{stubs => fixtures}/transporters/console.ts (91%) rename tests/{stubs => fixtures}/transporters/vanillaLogger.ts (100%) diff --git a/.gitignore b/.gitignore index d0a5509..6b64c32 100644 --- a/.gitignore +++ b/.gitignore @@ -120,9 +120,9 @@ build *.js *.d.ts *.js.map -!tests/stubs/**/*.js -!tests/stubs/**/*.d.ts -!tests/stubs/**/*.js.map +!tests/fixtures/**/*.js +!tests/fixtures/**/*.d.ts +!tests/fixtures/**/*.js.map # IDE .idea diff --git a/package-lock.json b/package-lock.json index 241551d..cadb71a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,22 +1,22 @@ { "name": "@athenna/logger", - "version": "4.2.0", + "version": "4.3.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@athenna/logger", - "version": "4.2.0", + "version": "4.3.0", "license": "MIT", "dependencies": { "cls-rtracer": "^2.6.3", "telegraf": "^4.12.2" }, "devDependencies": { - "@athenna/common": "^4.4.0", - "@athenna/config": "^4.3.0", - "@athenna/ioc": "^4.1.0", - "@athenna/test": "^4.3.0", + "@athenna/common": "^4.10.1", + "@athenna/config": "^4.4.0", + "@athenna/ioc": "^4.2.0", + "@athenna/test": "^4.5.0", "@typescript-eslint/eslint-plugin": "^5.56.0", "@typescript-eslint/parser": "^5.56.0", "c8": "^7.12.0", @@ -67,9 +67,9 @@ "dev": true }, "node_modules/@athenna/common": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.5.0.tgz", - "integrity": "sha512-/Va3PtDRAR/FdfRuGYmuUXPGuOikqmXtGOENWVVbcHVu0PaXkZ8P9bqWngbyfBV+R2O0g2UVyzEXS7M6NP0JMg==", + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.10.1.tgz", + "integrity": "sha512-EVzdlfxP8dQVV5dSIQzUHXMYhby+TCxkGRtyz99nXovlkTOx//KOKE3NT6WXIZUPpAfARwQSQNfD1wEgUAmZMg==", "dev": true, "dependencies": { "@fastify/formbody": "^7.4.0", @@ -93,40 +93,40 @@ "uuid": "^8.3.2", "validator-brazil": "^1.2.2", "youch": "^3.2.3", - "youch-terminal": "^2.2.1" + "youch-terminal": "^2.2.2" } }, "node_modules/@athenna/config": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.3.0.tgz", - "integrity": "sha512-UHSze3yy1avM4cC9TEmzdZ6s/ZAscWR/koThTnk6MOlaDApGGNrlbLZ1umOl21zxxfNm4+DZHzAhJxeuMkpdwg==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.4.0.tgz", + "integrity": "sha512-Xu8jku7pWIqqq+eb/mk73rFmBCZ94mTT3mKhrj9zzgnqaWD9uDWJNqnUTKVfbHSxR6ojM7TMaVdfNDICgM+/qA==", "dev": true, "dependencies": { "dotenv": "^16.3.1", - "magicast": "^0.2.9", + "magicast": "^0.2.10", "syntax-error": "^1.4.0" } }, "node_modules/@athenna/ioc": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.1.0.tgz", - "integrity": "sha512-NSKi2QYSiQ2d+WxqdJf9reivIkCGQ0UQcsPZvaSi/kBOdqEXgxYbsx+9h7aJ8wWFVPbksQhRkIvW1rJYS4mfQw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.2.0.tgz", + "integrity": "sha512-GYNZB20kvxwFCJZY/RSfUPnDW5FLiFEwzWWkg+PUIg61kggfq3mMVM5VTYMvwuXhsGp6kvqFlIgZdySfeHcfUA==", "dev": true, "dependencies": { "awilix": "^7.0.3" } }, "node_modules/@athenna/test": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.4.0.tgz", - "integrity": "sha512-cMWz2ws9YbHD0EUGgeQpivaOnQOUQa2vglNPHNPkWNaBJimPm1dpX2tq/af2hYybD2FGmEqND5BP21YSRjBxdw==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.5.0.tgz", + "integrity": "sha512-L6QGWZsDSlY0bkuDHfCft3tNvn3KR5kUReKlkyGHphiZu+Nx4lKhzkSBhIYdTiUBt83ZTgerNRlU9iakABxy3w==", "dev": true, "dependencies": { "@japa/assert": "^1.4.1", "@japa/run-failed-tests": "^1.1.0", "@japa/runner": "^2.2.2", "@japa/spec-reporter": "^1.3.3", - "@types/sinon": "^10.0.15", + "@types/sinon": "^10.0.16", "sinon": "^15.1.0" } }, @@ -152,9 +152,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz", + "integrity": "sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -231,9 +231,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.22.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", - "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "version": "7.22.16", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", + "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -243,13 +243,13 @@ } }, "node_modules/@babel/types": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", - "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.15.tgz", + "integrity": "sha512-X+NLXr0N8XXmN5ZsaQdm9U2SSC3UbIYq/doL++sueHOTisgZHoKaQtZxGuV2cUPQHMfjKEfg/g6oy7Hm6SKFtA==", "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.15", "to-fast-properties": "^2.0.0" }, "engines": { @@ -1435,9 +1435,9 @@ "dev": true }, "node_modules/@types/sinon": { - "version": "10.0.15", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.15.tgz", - "integrity": "sha512-3lrFNQG0Kr2LDzvjyjB6AMJk4ge+8iYhQfdnSwIwlG88FUOV43kPcQqDZkDa/h3WSZy6i8Fr0BSjfQtB1B3xuQ==", + "version": "10.0.16", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.16.tgz", + "integrity": "sha512-j2Du5SYpXZjJVJtXBokASpPRj+e2z+VUhCPHmM6WMfe3dpHu6iVKJMU6AiBcMp/XTAYnEj6Wc1trJUWwZ0QaAQ==", "dev": true, "dependencies": { "@types/sinonjs__fake-timers": "*" @@ -6855,14 +6855,14 @@ "dev": true }, "node_modules/magicast": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.2.9.tgz", - "integrity": "sha512-S1WBXLSVKa34X+Bv7pfA8Umqc1BoglsqzWaQcyuexDc0cjgnERaFTSHbne2OfT27lXYxt/B/sV/2Kh0HaSQkfg==", + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.2.10.tgz", + "integrity": "sha512-Ah2qatigknxwmoYCd9hx/mmVyrRNhDKiaWZIuW4gL6dWrAGMoOpCVkQ3VpGWARtkaJVFhe8uIphcsxDzLPQUyg==", "dev": true, "dependencies": { - "@babel/parser": "^7.22.4", - "@babel/types": "^7.22.4", - "recast": "^0.23.2" + "@babel/parser": "^7.22.7", + "@babel/types": "^7.22.5", + "recast": "^0.23.3" } }, "node_modules/make-dir": { @@ -8043,9 +8043,9 @@ } }, "node_modules/recast": { - "version": "0.23.3", - "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.3.tgz", - "integrity": "sha512-HbCVFh2ANP6a09nzD4lx7XthsxMOJWKX5pIcUwtLrmeEIl3I0DwjCoVXDE0Aobk+7k/mS3H50FK4iuYArpcT6Q==", + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.4.tgz", + "integrity": "sha512-qtEDqIZGVcSZCHniWwZWbRy79Dc6Wp3kT/UmDA2RJKBPg7+7k51aQBZirHmUGn5uvHf2rg8DkjizrN26k61ATw==", "dev": true, "dependencies": { "assert": "^2.0.0", @@ -9733,9 +9733,9 @@ "dev": true }, "@athenna/common": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.5.0.tgz", - "integrity": "sha512-/Va3PtDRAR/FdfRuGYmuUXPGuOikqmXtGOENWVVbcHVu0PaXkZ8P9bqWngbyfBV+R2O0g2UVyzEXS7M6NP0JMg==", + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.10.1.tgz", + "integrity": "sha512-EVzdlfxP8dQVV5dSIQzUHXMYhby+TCxkGRtyz99nXovlkTOx//KOKE3NT6WXIZUPpAfARwQSQNfD1wEgUAmZMg==", "dev": true, "requires": { "@fastify/formbody": "^7.4.0", @@ -9759,40 +9759,40 @@ "uuid": "^8.3.2", "validator-brazil": "^1.2.2", "youch": "^3.2.3", - "youch-terminal": "^2.2.1" + "youch-terminal": "^2.2.2" } }, "@athenna/config": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.3.0.tgz", - "integrity": "sha512-UHSze3yy1avM4cC9TEmzdZ6s/ZAscWR/koThTnk6MOlaDApGGNrlbLZ1umOl21zxxfNm4+DZHzAhJxeuMkpdwg==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.4.0.tgz", + "integrity": "sha512-Xu8jku7pWIqqq+eb/mk73rFmBCZ94mTT3mKhrj9zzgnqaWD9uDWJNqnUTKVfbHSxR6ojM7TMaVdfNDICgM+/qA==", "dev": true, "requires": { "dotenv": "^16.3.1", - "magicast": "^0.2.9", + "magicast": "^0.2.10", "syntax-error": "^1.4.0" } }, "@athenna/ioc": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.1.0.tgz", - "integrity": "sha512-NSKi2QYSiQ2d+WxqdJf9reivIkCGQ0UQcsPZvaSi/kBOdqEXgxYbsx+9h7aJ8wWFVPbksQhRkIvW1rJYS4mfQw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.2.0.tgz", + "integrity": "sha512-GYNZB20kvxwFCJZY/RSfUPnDW5FLiFEwzWWkg+PUIg61kggfq3mMVM5VTYMvwuXhsGp6kvqFlIgZdySfeHcfUA==", "dev": true, "requires": { "awilix": "^7.0.3" } }, "@athenna/test": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.4.0.tgz", - "integrity": "sha512-cMWz2ws9YbHD0EUGgeQpivaOnQOUQa2vglNPHNPkWNaBJimPm1dpX2tq/af2hYybD2FGmEqND5BP21YSRjBxdw==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.5.0.tgz", + "integrity": "sha512-L6QGWZsDSlY0bkuDHfCft3tNvn3KR5kUReKlkyGHphiZu+Nx4lKhzkSBhIYdTiUBt83ZTgerNRlU9iakABxy3w==", "dev": true, "requires": { "@japa/assert": "^1.4.1", "@japa/run-failed-tests": "^1.1.0", "@japa/runner": "^2.2.2", "@japa/spec-reporter": "^1.3.3", - "@types/sinon": "^10.0.15", + "@types/sinon": "^10.0.16", "sinon": "^15.1.0" } }, @@ -9812,9 +9812,9 @@ "dev": true }, "@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz", + "integrity": "sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==", "dev": true }, "@babel/highlight": { @@ -9872,19 +9872,19 @@ } }, "@babel/parser": { - "version": "7.22.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.7.tgz", - "integrity": "sha512-7NF8pOkHP5o2vpmGgNGcfAeCvOYhGLyA3Z4eBQkT1RJlWu47n63bCs93QfJ2hIAFCil7L5P2IWhs1oToVgrL0Q==", + "version": "7.22.16", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.16.tgz", + "integrity": "sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==", "dev": true }, "@babel/types": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.5.tgz", - "integrity": "sha512-zo3MIHGOkPOfoRXitsgHLjEXmlDaD/5KU1Uzuc9GNiZPhSqVxVRtxuPaSBZDsYZ9qV88AjtMtWW7ww98loJ9KA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.15.tgz", + "integrity": "sha512-X+NLXr0N8XXmN5ZsaQdm9U2SSC3UbIYq/doL++sueHOTisgZHoKaQtZxGuV2cUPQHMfjKEfg/g6oy7Hm6SKFtA==", "dev": true, "requires": { "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.15", "to-fast-properties": "^2.0.0" } }, @@ -10804,9 +10804,9 @@ "dev": true }, "@types/sinon": { - "version": "10.0.15", - "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.15.tgz", - "integrity": "sha512-3lrFNQG0Kr2LDzvjyjB6AMJk4ge+8iYhQfdnSwIwlG88FUOV43kPcQqDZkDa/h3WSZy6i8Fr0BSjfQtB1B3xuQ==", + "version": "10.0.16", + "resolved": "https://registry.npmjs.org/@types/sinon/-/sinon-10.0.16.tgz", + "integrity": "sha512-j2Du5SYpXZjJVJtXBokASpPRj+e2z+VUhCPHmM6WMfe3dpHu6iVKJMU6AiBcMp/XTAYnEj6Wc1trJUWwZ0QaAQ==", "dev": true, "requires": { "@types/sinonjs__fake-timers": "*" @@ -14848,14 +14848,14 @@ "dev": true }, "magicast": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.2.9.tgz", - "integrity": "sha512-S1WBXLSVKa34X+Bv7pfA8Umqc1BoglsqzWaQcyuexDc0cjgnERaFTSHbne2OfT27lXYxt/B/sV/2Kh0HaSQkfg==", + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.2.10.tgz", + "integrity": "sha512-Ah2qatigknxwmoYCd9hx/mmVyrRNhDKiaWZIuW4gL6dWrAGMoOpCVkQ3VpGWARtkaJVFhe8uIphcsxDzLPQUyg==", "dev": true, "requires": { - "@babel/parser": "^7.22.4", - "@babel/types": "^7.22.4", - "recast": "^0.23.2" + "@babel/parser": "^7.22.7", + "@babel/types": "^7.22.5", + "recast": "^0.23.3" } }, "make-dir": { @@ -15730,9 +15730,9 @@ "dev": true }, "recast": { - "version": "0.23.3", - "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.3.tgz", - "integrity": "sha512-HbCVFh2ANP6a09nzD4lx7XthsxMOJWKX5pIcUwtLrmeEIl3I0DwjCoVXDE0Aobk+7k/mS3H50FK4iuYArpcT6Q==", + "version": "0.23.4", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.4.tgz", + "integrity": "sha512-qtEDqIZGVcSZCHniWwZWbRy79Dc6Wp3kT/UmDA2RJKBPg7+7k51aQBZirHmUGn5uvHf2rg8DkjizrN26k61ATw==", "dev": true, "requires": { "assert": "^2.0.0", diff --git a/package.json b/package.json index eb96f62..f11e4a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/logger", - "version": "4.2.0", + "version": "4.3.0", "description": "The Athenna logging solution. Log in stdout, files and buckets.", "license": "MIT", "author": "João Lenon ", @@ -40,9 +40,9 @@ "types": "./src/index.d.ts", "exports": { ".": "./src/index.js", - "./providers/LoggerProvider": "./src/providers/LoggerProvider.js", "./types": "./src/types/index.js", - "./package.json": "./package.json" + "./package.json": "./package.json", + "./providers/LoggerProvider": "./src/providers/LoggerProvider.js" }, "imports": { "#bin/*": "./bin/*.js", @@ -59,10 +59,10 @@ "cls-rtracer": "^2.6.3" }, "devDependencies": { - "@athenna/common": "^4.4.0", - "@athenna/config": "^4.3.0", - "@athenna/ioc": "^4.1.0", - "@athenna/test": "^4.3.0", + "@athenna/common": "^4.10.1", + "@athenna/config": "^4.4.0", + "@athenna/ioc": "^4.2.0", + "@athenna/test": "^4.5.0", "@typescript-eslint/eslint-plugin": "^5.56.0", "@typescript-eslint/parser": "^5.56.0", "c8": "^7.12.0", @@ -119,7 +119,7 @@ }, "prettier": { "singleQuote": true, - "trailingComma": "all", + "trailingComma": "none", "arrowParens": "avoid", "endOfLine": "lf", "semi": false, @@ -175,4 +175,4 @@ ] } } -} +} \ No newline at end of file diff --git a/src/constants/VanillaChannels.ts b/src/constants/VanillaChannels.ts index 0ea7285..5f44c1c 100644 --- a/src/constants/VanillaChannels.ts +++ b/src/constants/VanillaChannels.ts @@ -15,14 +15,14 @@ export const VANILLA_CHANNELS = { default: { driver: 'stack', - channels: ['application'], + channels: ['application'] }, stack: { driver: 'stack', - channels: ['application'], + channels: ['application'] }, discard: { - driver: 'null', + driver: 'null' }, file: { driver: 'file', @@ -30,27 +30,27 @@ export const VANILLA_CHANNELS = { filePath: Path.logs('athenna.log'), formatter: 'simple', - formatterConfig: {}, + formatterConfig: {} }, console: { level: 'trace', formatter: 'cli', - driver: 'console', + driver: 'console' }, request: { level: 'trace', formatter: 'request', - driver: 'console', + driver: 'console' }, exception: { level: 'trace', formatter: 'none', driver: 'console', - streamType: 'stderr', + streamType: 'stderr' }, application: { level: 'trace', driver: 'console', - formatter: 'simple', - }, + formatter: 'simple' + } } diff --git a/src/drivers/ConsoleDriver.ts b/src/drivers/ConsoleDriver.ts index a1fbe9b..eba772c 100644 --- a/src/drivers/ConsoleDriver.ts +++ b/src/drivers/ConsoleDriver.ts @@ -22,7 +22,7 @@ export class ConsoleDriver extends Driver { debug( '[%s] Transporting logs in %s stream.', ConsoleDriver.name, - streamType, + streamType ) return process[streamType].write(`${formatted}\n`) diff --git a/src/drivers/DiscordDriver.ts b/src/drivers/DiscordDriver.ts index 1de2613..0394515 100644 --- a/src/drivers/DiscordDriver.ts +++ b/src/drivers/DiscordDriver.ts @@ -23,12 +23,12 @@ export class DiscordDriver extends Driver { '[%s] Transporting logs with username %s and in url %s.', DiscordDriver.name, this.configs.username, - this.configs.url, + this.configs.url ) return HttpClient.builder(true).post(this.configs.url, { username: this.configs.username, - content: formatted, + content: formatted }) } } diff --git a/src/drivers/Driver.ts b/src/drivers/Driver.ts index 6a5c173..8bc73b9 100644 --- a/src/drivers/Driver.ts +++ b/src/drivers/Driver.ts @@ -47,7 +47,7 @@ export abstract class Driver { 'success', 'warn', 'error', - 'fatal', + 'fatal' ] public constructor(configs: any = {}) { diff --git a/src/drivers/FileDriver.ts b/src/drivers/FileDriver.ts index 1dd2e45..f81590a 100644 --- a/src/drivers/FileDriver.ts +++ b/src/drivers/FileDriver.ts @@ -26,7 +26,7 @@ export class FileDriver extends Driver { if (await File.exists(filePath)) { debug( '[%s] File already exist, appending the data to it.', - FileDriver.name, + FileDriver.name ) return new File(filePath).append(buffer) diff --git a/src/drivers/SlackDriver.ts b/src/drivers/SlackDriver.ts index fa5a0de..43ed41b 100644 --- a/src/drivers/SlackDriver.ts +++ b/src/drivers/SlackDriver.ts @@ -22,7 +22,7 @@ export class SlackDriver extends Driver { debug( '[%s] Transporting logs in url %s.', SlackDriver.name, - this.configs.url, + this.configs.url ) return HttpClient.builder(true).post(this.configs.url, { text: formatted }) diff --git a/src/drivers/StackDriver.ts b/src/drivers/StackDriver.ts index 2cb3b9c..fa382b0 100644 --- a/src/drivers/StackDriver.ts +++ b/src/drivers/StackDriver.ts @@ -22,13 +22,13 @@ export class StackDriver extends Driver { debug( '[%s] Transporting logs in channels: %s.', StackDriver.name, - this.driverConfig.channels.join(', '), + this.driverConfig.channels.join(', ') ) return Promise.all( this.driverConfig.channels.map(c => - DriverFactory.fabricate(c, configs).transport(level, message), - ), + DriverFactory.fabricate(c, configs).transport(level, message) + ) ) } } diff --git a/src/drivers/TelegramDriver.ts b/src/drivers/TelegramDriver.ts index a0b7759..fc7fbb6 100644 --- a/src/drivers/TelegramDriver.ts +++ b/src/drivers/TelegramDriver.ts @@ -24,15 +24,15 @@ export class TelegramDriver extends Driver { TelegramDriver.name, this.driverConfig.parseMode, this.driverConfig.token, - this.driverConfig.chatId, + this.driverConfig.chatId ) return new Telegraf(this.driverConfig.token).telegram.sendMessage( this.driverConfig.chatId, formatted, { - parse_mode: this.driverConfig.parseMode, - }, + parse_mode: this.driverConfig.parseMode + } ) } } diff --git a/src/exceptions/DriverExistException.ts b/src/exceptions/DriverExistException.ts index aea8587..baebd7f 100644 --- a/src/exceptions/DriverExistException.ts +++ b/src/exceptions/DriverExistException.ts @@ -18,7 +18,7 @@ export class DriverExistException extends Exception { status: 500, code: 'E_EXIST_DRIVER', message: `The driver ${driverName} already exists in DriverFactory.`, - help: `Available drivers are: ${availableDrivers}. The name ${driverName} is already in use inside DriverFactory. Try using a different name for your driver implementation.`, + help: `Available drivers are: ${availableDrivers}. The name ${driverName} is already in use inside DriverFactory. Try using a different name for your driver implementation.` }) } } diff --git a/src/exceptions/FormatterExistException.ts b/src/exceptions/FormatterExistException.ts index 3107b17..83ac5b4 100644 --- a/src/exceptions/FormatterExistException.ts +++ b/src/exceptions/FormatterExistException.ts @@ -19,7 +19,7 @@ export class FormatterExistException extends Exception { status: 500, code: 'E_EXIST_FORMATTER', message: `The formatter ${formatterName} already exists in FormatterFactory.`, - help: `Available formatters are: ${availableFormatters}. The name ${formatterName} is already in use inside FormatterFactory. Try using a different name for your formatter implementation.`, + help: `Available formatters are: ${availableFormatters}. The name ${formatterName} is already in use inside FormatterFactory. Try using a different name for your formatter implementation.` }) } } diff --git a/src/exceptions/NotFoundDriverException.ts b/src/exceptions/NotFoundDriverException.ts index 101db29..e23fcdc 100644 --- a/src/exceptions/NotFoundDriverException.ts +++ b/src/exceptions/NotFoundDriverException.ts @@ -18,7 +18,7 @@ export class NotFoundDriverException extends Exception { status: 500, code: 'E_NOT_FOUND', message: `The driver ${driverName} has not been found.`, - help: `Available drivers are: ${availableDrivers}. Look into your config/logger.${Path.ext()} file if ${driverName} driver is implemented by logger. Or create ${driverName} driver implementation using DriverFactory.createDriver("${driverName}", ...) method.`, + help: `Available drivers are: ${availableDrivers}. Look into your config/logger.${Path.ext()} file if ${driverName} driver is implemented by logger. Or create ${driverName} driver implementation using DriverFactory.createDriver("${driverName}", ...) method.` }) } } diff --git a/src/exceptions/NotFoundFormatterException.ts b/src/exceptions/NotFoundFormatterException.ts index 0de6219..3eef5cb 100644 --- a/src/exceptions/NotFoundFormatterException.ts +++ b/src/exceptions/NotFoundFormatterException.ts @@ -18,7 +18,7 @@ export class NotFoundFormatterException extends Exception { status: 500, code: 'E_NOT_FOUND', message: `The formatter ${formatterName} has not been found.`, - help: `Available formatters are: ${availableDrivers}. Look into your config/logger file if ${formatterName} formatter is implemented by logger. Or create ${formatterName} formatter implementation using FormatterFactory.createFormatter("${formatterName}", ...) method.`, + help: `Available formatters are: ${availableDrivers}. Look into your config/logger file if ${formatterName} formatter is implemented by logger. Or create ${formatterName} formatter implementation using FormatterFactory.createFormatter("${formatterName}", ...) method.` }) } } diff --git a/src/exceptions/NotImplementedConfigException.ts b/src/exceptions/NotImplementedConfigException.ts index 8039244..0f6ee65 100644 --- a/src/exceptions/NotImplementedConfigException.ts +++ b/src/exceptions/NotImplementedConfigException.ts @@ -29,7 +29,7 @@ export class NotImplementedConfigException extends Exception { status: 500, code: 'E_NOT_IMPLEMENTED_CONFIG_ERROR', message: `Channel ${channelName} is not configured inside logging.channels object from config/logging.${Path.ext()} file.`, - help, + help }) } } diff --git a/src/factories/DriverFactory.ts b/src/factories/DriverFactory.ts index 942e678..f272d7e 100644 --- a/src/factories/DriverFactory.ts +++ b/src/factories/DriverFactory.ts @@ -67,7 +67,7 @@ export class DriverFactory { public static fabricateVanilla(configs: any = {}): Driver { configs = Options.create(configs, { driver: 'console', - formatter: 'none', + formatter: 'none' }) if (!this.drivers.has(configs.driver)) { diff --git a/src/factories/FormatterFactory.ts b/src/factories/FormatterFactory.ts index 1668569..e31e680 100644 --- a/src/factories/FormatterFactory.ts +++ b/src/factories/FormatterFactory.ts @@ -60,7 +60,7 @@ export class FormatterFactory { */ public static createFormatter( name: string, - formatter: typeof Formatter, + formatter: typeof Formatter ): void { if (this.formatters.has(name)) { throw new FormatterExistException(name) diff --git a/src/formatters/Formatter.ts b/src/formatters/Formatter.ts index e7757a4..8b60220 100644 --- a/src/formatters/Formatter.ts +++ b/src/formatters/Formatter.ts @@ -70,7 +70,7 @@ export abstract class Formatter { minute: 'numeric', second: 'numeric', day: '2-digit', - month: '2-digit', + month: '2-digit' } return new Date(Date.now()).toLocaleString(undefined, localeStringOptions) @@ -184,7 +184,7 @@ export abstract class Formatter { success: '\u{2705}', warn: '\u{26A0}', error: '\u{274C}', - fatal: '\u{1F6D1}', + fatal: '\u{1F6D1}' } if (!levelEmojis[level.toLowerCase()]) { @@ -207,7 +207,7 @@ export abstract class Formatter { success: Color.success, warn: Color.warn, error: Color.error, - fatal: Color.fatal, + fatal: Color.fatal } if (!levelColors[levelLower]) { diff --git a/src/formatters/JsonFormatter.ts b/src/formatters/JsonFormatter.ts index 532307b..60a66eb 100644 --- a/src/formatters/JsonFormatter.ts +++ b/src/formatters/JsonFormatter.ts @@ -17,7 +17,7 @@ export class JsonFormatter extends Formatter { time: Date.now(), pid: this.pid(), hostname: this.hostname(), - traceId: this.traceId(), + traceId: this.traceId() } if (Is.String(message)) { diff --git a/src/formatters/MessageFormatter.ts b/src/formatters/MessageFormatter.ts index 73ae12a..de98512 100644 --- a/src/formatters/MessageFormatter.ts +++ b/src/formatters/MessageFormatter.ts @@ -13,8 +13,8 @@ export class MessageFormatter extends Formatter { public format(message: string): string { return this.clean( `${this.messageLevel()} - (${this.pid()}) - (${this.hostname()}): ${this.toString( - message, - )}`, + message + )}` ) } } diff --git a/src/formatters/RequestFormatter.ts b/src/formatters/RequestFormatter.ts index 4a17f8b..ebba3a9 100644 --- a/src/formatters/RequestFormatter.ts +++ b/src/formatters/RequestFormatter.ts @@ -20,14 +20,14 @@ export class RequestFormatter extends Formatter { const status = ctx.status const responseTimeMs = `${Math.round(ctx.responseTime)}ms` const methodAndStatus = Color[ctx.request.method]( - `[${ctx.request.method}::${ctx.status}]`, + `[${ctx.request.method}::${ctx.status}]` ) if (!this.configs.asJson) { return this.clean( `${methodAndStatus} - [${ip}] - ${new Date().toISOString()} - ${ ctx.request.baseUrl - } ${responseTimeMs}`, + } ${responseTimeMs}` ) } @@ -40,7 +40,7 @@ export class RequestFormatter extends Formatter { path: ctx.request.baseUrl, createdAt: Date.now(), traceId: this.traceId(), - data: ctx.data, + data: ctx.data } const request = { @@ -49,12 +49,12 @@ export class RequestFormatter extends Formatter { body: ctx.request.body, params: ctx.request.params, queries: ctx.request.queries, - headers: ctx.request.headers, + headers: ctx.request.headers } const response = { body: ctx.body, - headers: ctx.headers, + headers: ctx.headers } return JSON.stringify({ request, response, metadata }) diff --git a/src/helpers/FactoryHelper.ts b/src/helpers/FactoryHelper.ts index d5a830c..e78929e 100644 --- a/src/helpers/FactoryHelper.ts +++ b/src/helpers/FactoryHelper.ts @@ -17,7 +17,7 @@ export class FactoryHelper { const formatter = object.formatter || defaultValue.formatter const formatterConfig = Options.create( object.formatterConfig, - defaultValue.formatterConfig, + defaultValue.formatterConfig ) const driverConfig = Options.create(object, defaultValue) diff --git a/src/logger/Logger.ts b/src/logger/Logger.ts index 1e2cc70..8631c4c 100644 --- a/src/logger/Logger.ts +++ b/src/logger/Logger.ts @@ -96,7 +96,7 @@ export class Logger { return this.vanilla({ ...VANILLA_CHANNELS[channel], - ...configs, + ...configs }) } @@ -165,7 +165,7 @@ export class Logger { const message = Color.apply(...args) const promises = this.drivers.map((driver: Driver) => - driver.transport(level, message), + driver.transport(level, message) ) return Promise.all(promises) diff --git a/tests/stubs/config/logging.ts b/tests/fixtures/config/logging.ts similarity index 84% rename from tests/stubs/config/logging.ts rename to tests/fixtures/config/logging.ts index 0ad1fdf..162c718 100644 --- a/tests/stubs/config/logging.ts +++ b/tests/fixtures/config/logging.ts @@ -32,52 +32,52 @@ export default { channels: { stack: { driver: 'stack', - channels: ['slack', 'discord'], + channels: ['slack', 'discord'] }, application: { driver: 'console', formatter: 'simple', - level: 'debug', + level: 'debug' }, request: { driver: 'console', formatter: 'request', formatterConfig: { - asJson: false, + asJson: false }, - streamType: 'stdout', + streamType: 'stdout' }, discard: { - driver: 'null', + driver: 'null' }, chalk: { driver: 'console', formatter: 'none', formatterConfig: { clean: false, - chalk: Color.dim, - }, + chalk: Color.dim + } }, custom: { - driver: 'custom', + driver: 'custom' }, notFound: { - driver: 'notFound', + driver: 'notFound' }, file: { driver: 'file', formatter: 'simple', formatterConfig: {}, - filePath: Path.logs('athenna.log'), + filePath: Path.logs('athenna.log') }, slack: { driver: 'slack', formatter: 'message', formatterConfig: {}, - url: Env('SLACK_URL'), + url: Env('SLACK_URL') }, discord: { driver: 'discord', @@ -85,7 +85,7 @@ export default { formatterConfig: {}, username: 'Athenna', - url: Env('DISCORD_URL'), + url: Env('DISCORD_URL') }, telegram: { driver: 'telegram', @@ -94,7 +94,7 @@ export default { token: Env('TELEGRAM_TOKEN'), chatId: Env('TELEGRAM_CHAT_ID'), - parseMode: 'HTML', - }, - }, + parseMode: 'HTML' + } + } } diff --git a/tests/stubs/transporters/console.ts b/tests/fixtures/transporters/console.ts similarity index 91% rename from tests/stubs/transporters/console.ts rename to tests/fixtures/transporters/console.ts index c7bca21..b758806 100644 --- a/tests/stubs/transporters/console.ts +++ b/tests/fixtures/transporters/console.ts @@ -2,7 +2,7 @@ import { Config } from '@athenna/config' import { Log, LoggerProvider } from '#src' import { Folder, Path } from '@athenna/common' -await new Folder(Path.stubs('config')).copy(Path.config()) +await new Folder(Path.fixtures('config')).copy(Path.config()) await Config.safeLoad(Path.config('logging.ts')) new LoggerProvider().register() diff --git a/tests/stubs/transporters/vanillaLogger.ts b/tests/fixtures/transporters/vanillaLogger.ts similarity index 100% rename from tests/stubs/transporters/vanillaLogger.ts rename to tests/fixtures/transporters/vanillaLogger.ts diff --git a/tests/unit/drivers/ConsoleDriverTest.ts b/tests/unit/drivers/ConsoleDriverTest.ts index 2085f9b..300446c 100644 --- a/tests/unit/drivers/ConsoleDriverTest.ts +++ b/tests/unit/drivers/ConsoleDriverTest.ts @@ -13,7 +13,7 @@ import { Test, type Context } from '@athenna/test' export default class ConsoleDriverTest { @Test() public async shouldBeAbleToLogInConsole({ assert }: Context) { - const { stdout, stderr } = await Exec.command(`ts-node --esm ${Path.stubs('transporters/console.ts')}`) + const { stdout, stderr } = await Exec.command(`ts-node --esm ${Path.fixtures('transporters/console.ts')}`) const logs = [...stdout.split('\n').filter(l => l !== ''), ...stderr.split('\n').filter(l => l !== '')] diff --git a/tests/unit/drivers/DiscordDriverTest.ts b/tests/unit/drivers/DiscordDriverTest.ts index d224fe6..940898c 100644 --- a/tests/unit/drivers/DiscordDriverTest.ts +++ b/tests/unit/drivers/DiscordDriverTest.ts @@ -15,7 +15,7 @@ import { Test, AfterEach, BeforeEach, type Context } from '@athenna/test' export default class DiscordDriverTest { @BeforeEach() public async beforeEach() { - await Config.loadAll(Path.stubs('config')) + await Config.loadAll(Path.fixtures('config')) new LoggerProvider().register() } diff --git a/tests/unit/drivers/FileDriverTest.ts b/tests/unit/drivers/FileDriverTest.ts index 496ab53..733dc44 100644 --- a/tests/unit/drivers/FileDriverTest.ts +++ b/tests/unit/drivers/FileDriverTest.ts @@ -15,7 +15,7 @@ import { Test, AfterEach, BeforeEach, type Context } from '@athenna/test' export default class FileDriverTest { @BeforeEach() public async beforeEach() { - await Config.loadAll(Path.stubs('config')) + await Config.loadAll(Path.fixtures('config')) new LoggerProvider().register() } diff --git a/tests/unit/drivers/SlackDriverTest.ts b/tests/unit/drivers/SlackDriverTest.ts index 84fe101..5f4f61e 100644 --- a/tests/unit/drivers/SlackDriverTest.ts +++ b/tests/unit/drivers/SlackDriverTest.ts @@ -15,7 +15,7 @@ import { Test, Timeout, AfterEach, BeforeEach, type Context } from '@athenna/tes export default class SlackDriverTest { @BeforeEach() public async beforeEach() { - await Config.loadAll(Path.stubs('config')) + await Config.loadAll(Path.fixtures('config')) new LoggerProvider().register() } diff --git a/tests/unit/drivers/StackDriverTest.ts b/tests/unit/drivers/StackDriverTest.ts index ba0b726..cbc7312 100644 --- a/tests/unit/drivers/StackDriverTest.ts +++ b/tests/unit/drivers/StackDriverTest.ts @@ -15,7 +15,7 @@ import { Test, Timeout, AfterEach, BeforeEach, type Context } from '@athenna/tes export default class StackDriverTest { @BeforeEach() public async beforeEach() { - await Config.loadAll(Path.stubs('config')) + await Config.loadAll(Path.fixtures('config')) new LoggerProvider().register() } diff --git a/tests/unit/drivers/TelegramDriverTest.ts b/tests/unit/drivers/TelegramDriverTest.ts index cbc32db..4a90d6a 100644 --- a/tests/unit/drivers/TelegramDriverTest.ts +++ b/tests/unit/drivers/TelegramDriverTest.ts @@ -15,7 +15,7 @@ import { Test, Timeout, AfterEach, BeforeEach, type Context } from '@athenna/tes export default class TelegramDriverTest { @BeforeEach() public async beforeEach() { - await Config.loadAll(Path.stubs('config')) + await Config.loadAll(Path.fixtures('config')) new LoggerProvider().register() } diff --git a/tests/unit/factories/DriverFactoryTest.ts b/tests/unit/factories/DriverFactoryTest.ts index 263b1d4..01eb3cd 100644 --- a/tests/unit/factories/DriverFactoryTest.ts +++ b/tests/unit/factories/DriverFactoryTest.ts @@ -26,7 +26,7 @@ class CustomDriver extends Driver { export default class DriverFactoryTest { @BeforeEach() public async beforeEach() { - await Config.loadAll(Path.stubs('config')) + await Config.loadAll(Path.fixtures('config')) } @AfterEach() @@ -43,7 +43,7 @@ export default class DriverFactoryTest { @Test() public async shouldThrowNotImplementedConfigExceptionWhenTryingToFabricateDriverWithoutLoadingConfigFile({ - assert, + assert }: Context) { Config.configs = new ObjectBuilder() assert.throws(() => DriverFactory.fabricate('not-found'), NotImplementedConfigException) @@ -51,7 +51,7 @@ export default class DriverFactoryTest { @Test() public async shouldThrowNotImplementedConfigExceptionWhenTryingToFabricateDriverWhenTryingToLoadChannelThatDoesNotExist({ - assert, + assert }: Context) { assert.throws(() => DriverFactory.fabricate('not-found'), NotImplementedConfigException) } diff --git a/tests/unit/formatters/RequestFormatterTest.ts b/tests/unit/formatters/RequestFormatterTest.ts index 58ca7e2..03db586 100644 --- a/tests/unit/formatters/RequestFormatterTest.ts +++ b/tests/unit/formatters/RequestFormatterTest.ts @@ -19,10 +19,10 @@ export default class RequestFormatterTest { status: 200, responseTime: 1, body: { - hello: 'world', + hello: 'world' }, headers: { - 'Content-Type': 'application/json', + 'Content-Type': 'application/json' }, request: { ip: '127.0.0.1', @@ -30,13 +30,13 @@ export default class RequestFormatterTest { hostUrl: 'http://localhost:1335', baseUrl: 'http://localhost:1335/:id', params: { - id: 1, + id: 1 }, queries: {}, headers: { - 'Content-Type': 'application/json', - }, - }, + 'Content-Type': 'application/json' + } + } } const message = formatter.format(ctx) @@ -55,10 +55,10 @@ export default class RequestFormatterTest { status: 200, responseTime: 1, body: { - hello: 'world', + hello: 'world' }, headers: { - 'Content-Type': 'application/json', + 'Content-Type': 'application/json' }, request: { ip: '127.0.0.1', @@ -66,13 +66,13 @@ export default class RequestFormatterTest { hostUrl: 'http://localhost:1335', baseUrl: 'http://localhost:1335/:id', params: { - id: 1, + id: 1 }, queries: {}, headers: { - 'Content-Type': 'application/json', - }, - }, + 'Content-Type': 'application/json' + } + } } const message = JSON.parse(formatter.format(ctx)) diff --git a/tests/unit/logger/LoggerTest.ts b/tests/unit/logger/LoggerTest.ts index 32576a0..e68638a 100644 --- a/tests/unit/logger/LoggerTest.ts +++ b/tests/unit/logger/LoggerTest.ts @@ -13,7 +13,7 @@ import { Test, type Context } from '@athenna/test' export default class LoggerTest { @Test() public async shouldBeAbleToLogInConsoleUsingVanillaLogger({ assert }: Context) { - const { stdout, stderr } = await Exec.command(`ts-node --esm ${Path.stubs('transporters/vanillaLogger.ts')}`) + const { stdout, stderr } = await Exec.command(`ts-node --esm ${Path.fixtures('transporters/vanillaLogger.ts')}`) const logs = [...stdout.split('\n').filter(l => l !== ''), ...stderr.split('\n').filter(l => l !== '')] From 210550efd7dcbbf6be7b091121dd77502f80909a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Thu, 7 Sep 2023 12:06:10 +0100 Subject: [PATCH 2/3] chore(npm): update dependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f11e4a4..68a639d 100644 --- a/package.json +++ b/package.json @@ -175,4 +175,4 @@ ] } } -} \ No newline at end of file +} From f4c6e39dca4fdefa1f18bd549cf7ac91a58c7efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Thu, 7 Sep 2023 12:06:38 +0100 Subject: [PATCH 3/3] chore(npm): update dependencies --- package-lock.json | 108 +++++++++++++++++++++++----------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/package-lock.json b/package-lock.json index cadb71a..e8ffbca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1499,9 +1499,9 @@ } }, "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -1625,9 +1625,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -1688,9 +1688,9 @@ } }, "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -2373,9 +2373,9 @@ } }, "node_modules/builtins/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -3853,9 +3853,9 @@ } }, "node_modules/eslint-plugin-n/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" @@ -4153,9 +4153,9 @@ } }, "node_modules/execa/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -7120,9 +7120,9 @@ } }, "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -8435,9 +8435,9 @@ "dev": true }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -9498,9 +9498,9 @@ } }, "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true, "engines": { "node": ">=0.10.0" @@ -10852,9 +10852,9 @@ }, "dependencies": { "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -10918,9 +10918,9 @@ }, "dependencies": { "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -10961,9 +10961,9 @@ "dev": true }, "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -11476,9 +11476,9 @@ }, "dependencies": { "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -12657,9 +12657,9 @@ } }, "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -12809,9 +12809,9 @@ "dev": true }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true }, "shebang-command": { @@ -15062,9 +15062,9 @@ }, "dependencies": { "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true } } @@ -16001,9 +16001,9 @@ "dev": true }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true }, "semver-compare": { @@ -16835,9 +16835,9 @@ } }, "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", "dev": true }, "wordwrap": {