diff --git a/app/Console/Commands/Install/DatabaseCommand.js b/app/Console/Commands/Install/DatabaseCommand.js index 2eee214..02fe9d3 100644 --- a/app/Console/Commands/Install/DatabaseCommand.js +++ b/app/Console/Commands/Install/DatabaseCommand.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { File, Path } from '@athenna/common' import { Command, FilePropertiesHelper } from '@athenna/artisan' import { NotFoundDatabaseException } from '#app/Exceptions/NotFoundDatabaseException' diff --git a/app/Console/Commands/Install/MailCommand.js b/app/Console/Commands/Install/MailCommand.js index 9dbc746..76da22d 100644 --- a/app/Console/Commands/Install/MailCommand.js +++ b/app/Console/Commands/Install/MailCommand.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { File, Path } from '@athenna/common' import { Command, FilePropertiesHelper } from '@athenna/artisan' diff --git a/app/Console/Commands/NewCommand.js b/app/Console/Commands/NewCommand.js index e47b13d..0f09900 100644 --- a/app/Console/Commands/NewCommand.js +++ b/app/Console/Commands/NewCommand.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import chalk from 'chalk' import { basename, isAbsolute, sep } from 'node:path' diff --git a/app/Console/Exceptions/Handler.js b/app/Console/Exceptions/Handler.js index 62d625d..388752d 100644 --- a/app/Console/Exceptions/Handler.js +++ b/app/Console/Exceptions/Handler.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { ConsoleExceptionHandler } from '@athenna/artisan' /* diff --git a/app/Console/Kernel.js b/app/Console/Kernel.js index 11a75b9..6f8671e 100644 --- a/app/Console/Kernel.js +++ b/app/Console/Kernel.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { CoreLoader } from '@athenna/core' import { Folder, Path } from '@athenna/common' import { ArtisanLoader, ConsoleKernel } from '@athenna/artisan' diff --git a/app/Exceptions/NotEmptyFolderException.js b/app/Exceptions/NotEmptyFolderException.js index 0520f59..6b7e874 100644 --- a/app/Exceptions/NotEmptyFolderException.js +++ b/app/Exceptions/NotEmptyFolderException.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Exception } from '@athenna/common' /* diff --git a/app/Exceptions/NotFoundDatabaseException.js b/app/Exceptions/NotFoundDatabaseException.js index ff99b3b..022cc8a 100644 --- a/app/Exceptions/NotFoundDatabaseException.js +++ b/app/Exceptions/NotFoundDatabaseException.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Exception } from '@athenna/common' /* diff --git a/app/Exceptions/NotFoundProjectTypeException.js b/app/Exceptions/NotFoundProjectTypeException.js index e475550..864bebd 100644 --- a/app/Exceptions/NotFoundProjectTypeException.js +++ b/app/Exceptions/NotFoundProjectTypeException.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Exception } from '@athenna/common' /* diff --git a/artisan.js b/artisan.js index a90e60c..d5f4469 100644 --- a/artisan.js +++ b/artisan.js @@ -1,19 +1,29 @@ #!/usr/bin/env node +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Ignite } from '@athenna/core' -import { install } from 'source-map-support' async function main() { - install() - - process.env.BOOT_LOGS = 'false' - process.env.IS_ARTISAN = 'true' process.env.CALL_PATH = process.cwd() - const application = await new Ignite().fire() + const application = await new Ignite().fire(import.meta.url, { + bootLogs: false, + }) const artisan = await application.bootArtisan() await artisan.main('Artisan') + + if (!Config.get('app.protectedCommands').includes(process.argv[2])) { + process.exit() + } } main().catch() diff --git a/bootstrap/main.js b/bootstrap/main.js index 243e96a..5edd2f6 100755 --- a/bootstrap/main.js +++ b/bootstrap/main.js @@ -1,17 +1,23 @@ #!/usr/bin/env node +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Ignite } from '@athenna/core' -import { install } from 'source-map-support' async function main() { - install() - - process.env.BOOT_LOGS = 'false' - process.env.IS_ARTISAN = 'false' process.env.NODE_ENV = 'production' process.env.CALL_PATH = process.cwd() - const application = await new Ignite().fire() + const application = await new Ignite().fire(import.meta.url, { + bootLogs: false, + }) const artisan = await application.bootArtisan() await artisan.main('Athenna') diff --git a/config/app.js b/config/app.js index 7d7fd18..0e7f11a 100644 --- a/config/app.js +++ b/config/app.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { File } from '@athenna/common' import { ProviderHelper } from '@athenna/core' @@ -129,8 +138,6 @@ export default { gracefulShutdown: { SIGINT: async () => { - await ProviderHelper.shutdownAll(false) - process.exit() }, SIGTERM: async signal => { @@ -139,6 +146,38 @@ export default { process.kill(process.pid, signal) }, }, + + /* + |-------------------------------------------------------------------------- + | Trace Artisan commands + |-------------------------------------------------------------------------- + | + | Trace artisan commands. If this value is true, Athenna will use the + | rTracer library to generate a unique uuid v1 for each command executed + | by Artisan. + | + */ + + traceArtisan: false, + + /* + |-------------------------------------------------------------------------- + | Protected Artisan commands + |-------------------------------------------------------------------------- + | + | Protected commands are usually commands that will let the Node.js process + | running for some reason. + | + | For example: "node artisan repl" + | + | This command will bootstrap a REPL session. The Node.js process needs to + | stay running, so we cannot force shutdown the application after this command + | is executed. + | + */ + + protectedCommands: ['repl', 'test', 'serve'], + /* |-------------------------------------------------------------------------- | Application providers @@ -156,7 +195,6 @@ export default { import('@athenna/core/providers/RepositoryProvider'), import('@athenna/artisan/providers/ArtisanProvider'), import('@athenna/artisan/providers/TemplateProvider'), - import('#providers/AppServiceProvider'), ], /* diff --git a/config/logging.js b/config/logging.js index c0d2e2a..5e6e90d 100644 --- a/config/logging.js +++ b/config/logging.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Path } from '@athenna/common' export default { @@ -40,12 +49,14 @@ export default { formatter: 'simple', }, + console: { driver: 'console', level: 'trace', formatter: 'cli', }, + exception: { driver: 'console', level: 'trace', @@ -53,6 +64,7 @@ export default { formatter: 'none', }, + request: { driver: 'console', level: 'trace', @@ -62,9 +74,11 @@ export default { asJson: false, }, }, + discard: { driver: 'null', }, + file: { driver: 'file', level: 'trace', @@ -73,6 +87,7 @@ export default { formatter: 'simple', formatterConfig: {}, }, + slack: { driver: 'slack', level: 'fatal', @@ -81,6 +96,7 @@ export default { formatter: 'message', formatterConfig: {}, }, + discord: { driver: 'discord', level: 'fatal', @@ -90,6 +106,7 @@ export default { formatter: 'message', formatterConfig: {}, }, + telegram: { driver: 'telegram', level: 'fatal', diff --git a/package-lock.json b/package-lock.json index fe8dca0..61986ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,27 +1,27 @@ { "name": "@athenna/cli", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@athenna/cli", - "version": "3.0.0", + "version": "3.0.1", "license": "MIT", "dependencies": { - "@athenna/artisan": "3.0.0", - "@athenna/common": "3.0.0", - "@athenna/config": "3.0.0", - "@athenna/core": "3.0.0", - "@athenna/ioc": "3.0.0", - "@athenna/logger": "3.0.0", - "source-map-support": "0.5.21" + "@athenna/artisan": "3.0.9", + "@athenna/common": "3.0.2", + "@athenna/config": "3.0.4", + "@athenna/core": "3.0.12", + "@athenna/ioc": "3.0.2", + "@athenna/logger": "3.0.9", + "cls-rtracer": "2.6.2" }, "bin": { "athenna": "bootstrap/main.js" }, "devDependencies": { - "@athenna/test": "3.0.1", + "@athenna/test": "3.0.13", "@japa/assert": "1.3.4", "@japa/run-failed-tests": "1.0.7", "@japa/runner": "2.0.7", @@ -73,9 +73,9 @@ "dev": true }, "node_modules/@athenna/artisan": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-3.0.0.tgz", - "integrity": "sha512-fA7J9MiRZ2yqnyhPmt4alIRxHA8SwgdiCejjfEGNJa/CD2zL6Al/zAwHIjQ/klj1hDz3DXgL6tddIeWE2yhxVQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-3.0.9.tgz", + "integrity": "sha512-9ETMILutgabqJMIAMQinSBlotCnGlPMJ9M4lyuJCwm8CTb1qCn6rqqp/UOUmwzP+zSr3Z4qNIgadla4xeZKRiA==", "dependencies": { "chalk-rainbow": "1.0.0", "cli-table": "0.3.11", @@ -95,9 +95,9 @@ } }, "node_modules/@athenna/common": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-3.0.0.tgz", - "integrity": "sha512-vLD75jqrniATfjfXOggWMkvuGlEJE6X0MZNkQ17aLfGqDcFWlUY8JT6bFPoKcqKpUEf/kduUqzfORid/m8EHdQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-3.0.2.tgz", + "integrity": "sha512-v2+XUDOtyJLYDb+VO4F4CUfRAUvnToFmEmOvNIyb5b+8KZUAd7w3kAJ1JHYr6gcaKiC8p23TId1dbsEX3+GvaQ==", "dependencies": { "@fastify/formbody": "7.4.0", "bytes": "3.1.2", @@ -124,39 +124,43 @@ } }, "node_modules/@athenna/config": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-3.0.0.tgz", - "integrity": "sha512-DLTBQwlD75zwSXrv2aTHmNd3KLt126B7HbYu5kdnqibDS54GLliqi6BxvYo9CEyyK5Ly9nfYV4qGtRMDc+Xweg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-3.0.4.tgz", + "integrity": "sha512-loWyyni54xmvSVcLcy1mk/HsG7CP8h3wsYHm5v5QRBq2bZPQQKinI6BFj/wjEmnNdVIZ9/Vfzu8jsOuKHXgF3g==", "dependencies": { - "dotenv": "16.0.0" + "dotenv": "16.0.0", + "syntax-error": "1.4.0" } }, "node_modules/@athenna/core": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/core/-/core-3.0.0.tgz", - "integrity": "sha512-tDdGjnnCe4QDRCUB6usVQgn68/Ar8lLdV2/LckVBWwv3Ww8Eu/3qhF13ckgBI00AEKD0r7pkgWGIN6A8I8kLaw==" + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@athenna/core/-/core-3.0.12.tgz", + "integrity": "sha512-YPXuFaasjNQZ92vwbt1CA7Puo7PeI1BKdkD1jPw8+XSu3c1MY2X+GTIuFlTNZBkG3mbfFM6xx9r5IsiaZpe9fg==", + "dependencies": { + "pretty-repl": "3.1.1" + } }, "node_modules/@athenna/ioc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-3.0.0.tgz", - "integrity": "sha512-QEKlRd4StFb2yqh539U/8NLMxGFcyGAiNKKRN44H2lDyvRxoVoiB80KGUHX55TK0z70LpI+Ggd1m9rD0fZCqwg==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-3.0.2.tgz", + "integrity": "sha512-1xrULzRyqCyLMSRfm6Cjzp5O93YzHWsdyoKy3p4Gu1kLaWM0PsTZFYs53k2+hzVnwivWmEKLWv+YBg2kSiMy/A==", "dependencies": { "awilix": "7.0.2" } }, "node_modules/@athenna/logger": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-3.0.0.tgz", - "integrity": "sha512-IyjP6Dv66cLzufBTeohCSnv8elHhrTtBjKTPrNKjryu+vjHdGMLNleXdzObaq3+/pzthGJOO+Qj7/GvFta+qKQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-3.0.9.tgz", + "integrity": "sha512-6UfnaHdO9vIffVRp4wKTqLniE5OT55HacNgPyqfXerX0rgw+gvnLUl0eE03fi08BRg29Vqto2IFJtfd2LSWcCQ==", "dependencies": { "chalk": "5.0.1", "telegraf": "4.7.0" } }, "node_modules/@athenna/test": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-3.0.1.tgz", - "integrity": "sha512-zqfGQWUB2/Z9ew2hgLwoBan8tW6CbQRG1oqKBiP5aUapJCvewImjF7yivaRVLUuXRLT5a0HsisGLAl4MeyZUuA==", + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-3.0.13.tgz", + "integrity": "sha512-XfDtfCRIqfpqBIWzIWGoJ3hm69y1J+/juNeTwYPoP4Dyubj+M3kzYP5Pdcqqs1+pj/Q8JYJyaYgKPh6HLuihSA==", "dev": true }, "node_modules/@babel/code-frame": { @@ -1079,6 +1083,35 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "dependencies": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + } + }, + "node_modules/acorn-node/node_modules/acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -1584,11 +1617,6 @@ "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, "node_modules/builtins": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/builtins/-/builtins-4.1.0.tgz", @@ -2192,6 +2220,17 @@ "node": ">=6" } }, + "node_modules/cls-rtracer": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/cls-rtracer/-/cls-rtracer-2.6.2.tgz", + "integrity": "sha512-9TYlTXQkjaytD2oe+WCEAXArgqlrHzvVW5WnwpUgenuY8D3rMfJVgsCogY77YHM9R3dUOMv3XpKRRn+LQnrUEQ==", + "dependencies": { + "uuid": "^8.3.2" + }, + "engines": { + "node": ">=12.17.0 <13.0.0 || >=13.14.0 <14.0.0 || >=14.0.0" + } + }, "node_modules/collect.js": { "version": "4.34.3", "resolved": "https://registry.npmjs.org/collect.js/-/collect.js-4.34.3.tgz", @@ -2763,6 +2802,62 @@ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, + "node_modules/emphasize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emphasize/-/emphasize-3.0.0.tgz", + "integrity": "sha512-xhtAWvxdkxsQbcCLGVjlfB7cQ4bWSPYXeaGDwK5Bl7n2y/9R+MVK5UNBTmZ9N8m/YShsiyGgQBgFGcjOWCWXHQ==", + "dependencies": { + "chalk": "^3.0.0", + "highlight.js": "~9.12.0", + "lowlight": "~1.9.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/emphasize/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/emphasize/node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/emphasize/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/emphasize/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -3664,6 +3759,18 @@ "reusify": "^1.0.4" } }, + "node_modules/fault": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", + "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", + "dependencies": { + "format": "^0.2.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/figlet": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.5.2.tgz", @@ -3840,6 +3947,14 @@ "node": ">= 14.17" } }, + "node_modules/format": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", + "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", + "engines": { + "node": ">=0.4.x" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -4238,6 +4353,15 @@ "tslib": "^2.0.3" } }, + "node_modules/highlight.js": { + "version": "9.12.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.12.0.tgz", + "integrity": "sha512-qNnYpBDO/FQwYVur1+sQBQw7v0cxso1nOYLklqWh6af8ROwwTVoII5+kf/BVa8354WL4ad6rURHYGUXCbD9mMg==", + "deprecated": "Version no longer supported. Upgrade to @latest", + "engines": { + "node": "*" + } + }, "node_modules/homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", @@ -5841,6 +5965,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lowlight": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-1.9.2.tgz", + "integrity": "sha512-Ek18ElVCf/wF/jEm1b92gTnigh94CtBNWiZ2ad+vTgW7cTmQxUY3I98BjHK68gZAJEWmybGBZgx9qv3QxLQB/Q==", + "dependencies": { + "fault": "^1.0.2", + "highlight.js": "~9.12.0" + } + }, "node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -6776,6 +6909,65 @@ "node": ">= 0.8" } }, + "node_modules/pretty-repl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/pretty-repl/-/pretty-repl-3.1.1.tgz", + "integrity": "sha512-JHhsuel0+/j4nKIdRnCcdE5qx4FVpeJEXTCpmGdhv5ivKlXWoQw0x9AqocsGQ+HABJ63lJ6pYF1OCoWAF0rEhA==", + "dependencies": { + "ansi-regex": "^5.0.0", + "chalk": "^4.1.1", + "emphasize": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=11" + } + }, + "node_modules/pretty-repl/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/pretty-repl/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/pretty-repl/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/pretty-repl/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, "node_modules/printable-characters": { "version": "1.0.42", "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz", @@ -7327,15 +7519,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "node_modules/spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -7616,6 +7799,14 @@ "integrity": "sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA==", "dev": true }, + "node_modules/syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "dependencies": { + "acorn-node": "^1.2.0" + } + }, "node_modules/telegraf": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/telegraf/-/telegraf-4.7.0.tgz", @@ -8181,6 +8372,14 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -8301,9 +8500,9 @@ "dev": true }, "@athenna/artisan": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-3.0.0.tgz", - "integrity": "sha512-fA7J9MiRZ2yqnyhPmt4alIRxHA8SwgdiCejjfEGNJa/CD2zL6Al/zAwHIjQ/klj1hDz3DXgL6tddIeWE2yhxVQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-3.0.9.tgz", + "integrity": "sha512-9ETMILutgabqJMIAMQinSBlotCnGlPMJ9M4lyuJCwm8CTb1qCn6rqqp/UOUmwzP+zSr3Z4qNIgadla4xeZKRiA==", "requires": { "chalk-rainbow": "1.0.0", "cli-table": "0.3.11", @@ -8322,9 +8521,9 @@ } }, "@athenna/common": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-3.0.0.tgz", - "integrity": "sha512-vLD75jqrniATfjfXOggWMkvuGlEJE6X0MZNkQ17aLfGqDcFWlUY8JT6bFPoKcqKpUEf/kduUqzfORid/m8EHdQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-3.0.2.tgz", + "integrity": "sha512-v2+XUDOtyJLYDb+VO4F4CUfRAUvnToFmEmOvNIyb5b+8KZUAd7w3kAJ1JHYr6gcaKiC8p23TId1dbsEX3+GvaQ==", "requires": { "@fastify/formbody": "7.4.0", "bytes": "3.1.2", @@ -8351,39 +8550,43 @@ } }, "@athenna/config": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-3.0.0.tgz", - "integrity": "sha512-DLTBQwlD75zwSXrv2aTHmNd3KLt126B7HbYu5kdnqibDS54GLliqi6BxvYo9CEyyK5Ly9nfYV4qGtRMDc+Xweg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-3.0.4.tgz", + "integrity": "sha512-loWyyni54xmvSVcLcy1mk/HsG7CP8h3wsYHm5v5QRBq2bZPQQKinI6BFj/wjEmnNdVIZ9/Vfzu8jsOuKHXgF3g==", "requires": { - "dotenv": "16.0.0" + "dotenv": "16.0.0", + "syntax-error": "1.4.0" } }, "@athenna/core": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/core/-/core-3.0.0.tgz", - "integrity": "sha512-tDdGjnnCe4QDRCUB6usVQgn68/Ar8lLdV2/LckVBWwv3Ww8Eu/3qhF13ckgBI00AEKD0r7pkgWGIN6A8I8kLaw==" + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@athenna/core/-/core-3.0.12.tgz", + "integrity": "sha512-YPXuFaasjNQZ92vwbt1CA7Puo7PeI1BKdkD1jPw8+XSu3c1MY2X+GTIuFlTNZBkG3mbfFM6xx9r5IsiaZpe9fg==", + "requires": { + "pretty-repl": "3.1.1" + } }, "@athenna/ioc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-3.0.0.tgz", - "integrity": "sha512-QEKlRd4StFb2yqh539U/8NLMxGFcyGAiNKKRN44H2lDyvRxoVoiB80KGUHX55TK0z70LpI+Ggd1m9rD0fZCqwg==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-3.0.2.tgz", + "integrity": "sha512-1xrULzRyqCyLMSRfm6Cjzp5O93YzHWsdyoKy3p4Gu1kLaWM0PsTZFYs53k2+hzVnwivWmEKLWv+YBg2kSiMy/A==", "requires": { "awilix": "7.0.2" } }, "@athenna/logger": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-3.0.0.tgz", - "integrity": "sha512-IyjP6Dv66cLzufBTeohCSnv8elHhrTtBjKTPrNKjryu+vjHdGMLNleXdzObaq3+/pzthGJOO+Qj7/GvFta+qKQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-3.0.9.tgz", + "integrity": "sha512-6UfnaHdO9vIffVRp4wKTqLniE5OT55HacNgPyqfXerX0rgw+gvnLUl0eE03fi08BRg29Vqto2IFJtfd2LSWcCQ==", "requires": { "chalk": "5.0.1", "telegraf": "4.7.0" } }, "@athenna/test": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-3.0.1.tgz", - "integrity": "sha512-zqfGQWUB2/Z9ew2hgLwoBan8tW6CbQRG1oqKBiP5aUapJCvewImjF7yivaRVLUuXRLT5a0HsisGLAl4MeyZUuA==", + "version": "3.0.13", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-3.0.13.tgz", + "integrity": "sha512-XfDtfCRIqfpqBIWzIWGoJ3hm69y1J+/juNeTwYPoP4Dyubj+M3kzYP5Pdcqqs1+pj/Q8JYJyaYgKPh6HLuihSA==", "dev": true }, "@babel/code-frame": { @@ -9172,6 +9375,28 @@ "dev": true, "requires": {} }, + "acorn-node": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", + "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", + "requires": { + "acorn": "^7.0.0", + "acorn-walk": "^7.0.0", + "xtend": "^4.0.2" + }, + "dependencies": { + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==" + } + } + }, + "acorn-walk": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", + "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==" + }, "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -9551,11 +9776,6 @@ "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" - }, "builtins": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/builtins/-/builtins-4.1.0.tgz", @@ -9998,6 +10218,14 @@ "shallow-clone": "^3.0.0" } }, + "cls-rtracer": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/cls-rtracer/-/cls-rtracer-2.6.2.tgz", + "integrity": "sha512-9TYlTXQkjaytD2oe+WCEAXArgqlrHzvVW5WnwpUgenuY8D3rMfJVgsCogY77YHM9R3dUOMv3XpKRRn+LQnrUEQ==", + "requires": { + "uuid": "^8.3.2" + } + }, "collect.js": { "version": "4.34.3", "resolved": "https://registry.npmjs.org/collect.js/-/collect.js-4.34.3.tgz", @@ -10445,6 +10673,48 @@ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, + "emphasize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emphasize/-/emphasize-3.0.0.tgz", + "integrity": "sha512-xhtAWvxdkxsQbcCLGVjlfB7cQ4bWSPYXeaGDwK5Bl7n2y/9R+MVK5UNBTmZ9N8m/YShsiyGgQBgFGcjOWCWXHQ==", + "requires": { + "chalk": "^3.0.0", + "highlight.js": "~9.12.0", + "lowlight": "~1.9.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, "end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", @@ -11142,6 +11412,14 @@ "reusify": "^1.0.4" } }, + "fault": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", + "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", + "requires": { + "format": "^0.2.0" + } + }, "figlet": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.5.2.tgz", @@ -11275,6 +11553,11 @@ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.2.tgz", "integrity": "sha512-FCaIOVTRA9E0siY6FeXid7D5yrCqpsErplUkE2a1BEiKj1BE9z6FbKB4ntDTwC4NVLie9p+4E9nX4mWwEOT05A==" }, + "format": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", + "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==" + }, "forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -11579,6 +11862,11 @@ "tslib": "^2.0.3" } }, + "highlight.js": { + "version": "9.12.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.12.0.tgz", + "integrity": "sha512-qNnYpBDO/FQwYVur1+sQBQw7v0cxso1nOYLklqWh6af8ROwwTVoII5+kf/BVa8354WL4ad6rURHYGUXCbD9mMg==" + }, "homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", @@ -12775,6 +13063,15 @@ "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==" }, + "lowlight": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-1.9.2.tgz", + "integrity": "sha512-Ek18ElVCf/wF/jEm1b92gTnigh94CtBNWiZ2ad+vTgW7cTmQxUY3I98BjHK68gZAJEWmybGBZgx9qv3QxLQB/Q==", + "requires": { + "fault": "^1.0.2", + "highlight.js": "~9.12.0" + } + }, "lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -13460,6 +13757,49 @@ "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", "dev": true }, + "pretty-repl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/pretty-repl/-/pretty-repl-3.1.1.tgz", + "integrity": "sha512-JHhsuel0+/j4nKIdRnCcdE5qx4FVpeJEXTCpmGdhv5ivKlXWoQw0x9AqocsGQ+HABJ63lJ6pYF1OCoWAF0rEhA==", + "requires": { + "ansi-regex": "^5.0.0", + "chalk": "^4.1.1", + "emphasize": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, "printable-characters": { "version": "1.0.42", "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz", @@ -13854,15 +14194,6 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, "spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -14080,6 +14411,14 @@ "integrity": "sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA==", "dev": true }, + "syntax-error": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", + "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", + "requires": { + "acorn-node": "^1.2.0" + } + }, "telegraf": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/telegraf/-/telegraf-4.7.0.tgz", @@ -14517,6 +14856,11 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index 37db7a3..5dfaf75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/cli", - "version": "3.0.0", + "version": "3.0.1", "description": "Athenna CLI to create new projects and install components.", "license": "MIT", "author": "João Lenon ", @@ -19,7 +19,7 @@ "test": "npm run --silent lint:fix && node artisan test", "test:debug": "cross-env DEBUG=api:* && npm run --silent test", "test:coverage": "c8 npm run --silent test", - "lint:fix": "eslint \"{app,bootstrap,config,database,providers,routes,storage,tests}/**/*.js\" --fix" + "lint:fix": "eslint \"{app,bootstrap,config,database,providers,resources,routes,storage,tests}/**/*.js\" --fix" }, "type": "module", "main": "./bootstrap/main.js", @@ -35,21 +35,22 @@ "#lang/*": "./lang/*.js", "#providers/*": "./providers/*.js", "#facades/*": "./providers/facades/*.js", + "#resources/*": "./resources/*.js", "#routes/*": "./routes/*.js", "#storage/*": "./storage/*.js", "#tests/*": "./tests/*.js" }, "dependencies": { - "@athenna/artisan": "3.0.0", - "@athenna/common": "3.0.0", - "@athenna/config": "3.0.0", - "@athenna/core": "3.0.0", - "@athenna/ioc": "3.0.0", - "@athenna/logger": "3.0.0", - "source-map-support": "0.5.21" + "@athenna/artisan": "3.0.9", + "@athenna/common": "3.0.2", + "@athenna/config": "3.0.4", + "@athenna/core": "3.0.12", + "@athenna/ioc": "3.0.2", + "@athenna/logger": "3.0.9", + "cls-rtracer": "2.6.2" }, "devDependencies": { - "@athenna/test": "3.0.1", + "@athenna/test": "3.0.13", "@japa/assert": "1.3.4", "@japa/run-failed-tests": "1.0.7", "@japa/runner": "2.0.7", diff --git a/providers/AppServiceProvider.js b/providers/AppServiceProvider.js deleted file mode 100644 index a401440..0000000 --- a/providers/AppServiceProvider.js +++ /dev/null @@ -1,17 +0,0 @@ -import { ServiceProvider } from '@athenna/ioc' - -export class AppServiceProvider extends ServiceProvider { - /** - * Register any application services. - * - * @return {void|Promise} - */ - async register() {} - - /** - * Bootstrap any application services. - * - * @return {void|Promise} - */ - async boot() {} -} diff --git a/routes/console.js b/routes/console.js deleted file mode 100644 index f0351ba..0000000 --- a/routes/console.js +++ /dev/null @@ -1,17 +0,0 @@ -// import { Artisan } from '@athenna/artisan' - -/* -|-------------------------------------------------------------------------- -| Console Commands -|-------------------------------------------------------------------------- -| -| Here is where you can register console commands for your application. -| These commands are loaded by the ArtisanProvider. -| -*/ - -// Artisan.command('hello', function () { -// this.success('Hello from Athenna!') -// }) -// .description('Athenna just says hello.') -// .createHelp() diff --git a/tests/E2E/Install/InstallDatabaseCommandTest.js b/tests/E2E/Install/InstallDatabaseCommandTest.js index 3d6a5a1..8f0f7dd 100644 --- a/tests/E2E/Install/InstallDatabaseCommandTest.js +++ b/tests/E2E/Install/InstallDatabaseCommandTest.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Test } from '@athenna/test' import { Artisan } from '@athenna/artisan' import { File, Folder, Path } from '@athenna/common' diff --git a/tests/E2E/Install/InstallMailCommandTest.js b/tests/E2E/Install/InstallMailCommandTest.js index c1d7e93..1661162 100644 --- a/tests/E2E/Install/InstallMailCommandTest.js +++ b/tests/E2E/Install/InstallMailCommandTest.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Test } from '@athenna/test' import { Artisan } from '@athenna/artisan' import { File, Folder, Path } from '@athenna/common' diff --git a/tests/E2E/NewCommandTest.js b/tests/E2E/NewCommandTest.js index 4818f8b..9841b5b 100644 --- a/tests/E2E/NewCommandTest.js +++ b/tests/E2E/NewCommandTest.js @@ -1,3 +1,12 @@ +/** + * @athenna/cli + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Test } from '@athenna/test' import { Artisan } from '@athenna/artisan' import { Folder, Path } from '@athenna/common' diff --git a/tests/Stubs/.gitkeep b/tests/Stubs/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tests/main.js b/tests/main.js index 2f6645f..8bf67d3 100644 --- a/tests/main.js +++ b/tests/main.js @@ -34,7 +34,7 @@ configure({ { name: 'E2E', files: ['tests/E2E/**/*Test.js', 'tests/E2E/**/*TestFn.js'], - configure: suite => TestSuite.cliEnd2EndSuite(suite), + configure: suite => TestSuite.cliEnd2EndSuite(import.meta.url, suite), }, { name: 'Unit',