From c177dadb51c607c54137a6420621101a85bef1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lenon?= Date: Mon, 4 Apr 2022 18:27:27 -0300 Subject: [PATCH] feat: update ioc, http and logger --- package-lock.json | 54 ++++++++++++++++----------------- package.json | 8 ++--- src/Factories/AthennaFactory.ts | 4 +-- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index 612b7c2..7e6a5f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "@athenna/core", - "version": "1.1.0", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@athenna/core", - "version": "1.1.0", + "version": "1.1.2", "license": "MIT", "dependencies": { "@athenna/config": "1.0.5", - "@athenna/http": "1.1.0", - "@athenna/ioc": "1.0.8", - "@athenna/logger": "1.0.6", + "@athenna/http": "1.1.1", + "@athenna/ioc": "1.0.9", + "@athenna/logger": "1.0.7", "@secjs/utils": "1.8.0", "reflect-metadata": "0.1.13", "tscpaths": "0.0.9" @@ -71,12 +71,12 @@ } }, "node_modules/@athenna/http": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@athenna/http/-/http-1.1.0.tgz", - "integrity": "sha512-ZerMfQF3qgnmmByAXZXuhgyn6hKkU1/nxCHBWZn/HAIO/SRVwPgcrKprpU6eLNoykSotJYGnz2ZRRT+UAI/gVg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@athenna/http/-/http-1.1.1.tgz", + "integrity": "sha512-5+aOvBLvKGJexVJK7saGYZIWRVH5S4wyyeB+6G4Mf067TxIhbU49YIHrqcUqxYrYgkD6oxEN0JOAFBizhJbi0w==", "dependencies": { "@athenna/config": "1.0.5", - "@athenna/ioc": "1.0.8", + "@athenna/ioc": "1.0.9", "@secjs/utils": "1.8.0", "fastify": "3.27.4", "reflect-metadata": "0.1.13", @@ -84,9 +84,9 @@ } }, "node_modules/@athenna/ioc": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-1.0.8.tgz", - "integrity": "sha512-XN23c6AU1emeUjqn6S4fHSRR9Lg6VjhBx3BTcUnZGkYEo3iVaznVXIKoPnHFswjbDHXrGgdheyIq31R2MZ0R8g==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-1.0.9.tgz", + "integrity": "sha512-IqU04R7oZFGeHQRjI6d1hK1P0VYF6FYaKLQP0BAQL407q+Wh5AkDEqIxQDyInIOoqIyWjpRet0WpRWjUyrQ1tw==", "dependencies": { "@secjs/utils": "1.7.8", "awilix": "7.0.0", @@ -201,11 +201,11 @@ } }, "node_modules/@athenna/logger": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-1.0.6.tgz", - "integrity": "sha512-gCZYnr+7oPq4Iq9p10SmdR2X4CorGPPra9gWlp+Zq7ej8jVfl94U9k03Fq+DxJSDRtDc9bHs/bqUvmrKbu+2oA==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-1.0.7.tgz", + "integrity": "sha512-x0U4cLVDDdZSfr5daPWgf/Riv2XiZQhD7CMpSEMdKd4Jex5X3YROqCgwt61bvG98GFQtD0bwSZEjpwUYThPCfw==", "dependencies": { - "@athenna/ioc": "1.0.8", + "@athenna/ioc": "1.0.9", "@secjs/utils": "1.8.0", "reflect-metadata": "0.1.13", "tscpaths": "0.0.9" @@ -13505,12 +13505,12 @@ } }, "@athenna/http": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@athenna/http/-/http-1.1.0.tgz", - "integrity": "sha512-ZerMfQF3qgnmmByAXZXuhgyn6hKkU1/nxCHBWZn/HAIO/SRVwPgcrKprpU6eLNoykSotJYGnz2ZRRT+UAI/gVg==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@athenna/http/-/http-1.1.1.tgz", + "integrity": "sha512-5+aOvBLvKGJexVJK7saGYZIWRVH5S4wyyeB+6G4Mf067TxIhbU49YIHrqcUqxYrYgkD6oxEN0JOAFBizhJbi0w==", "requires": { "@athenna/config": "1.0.5", - "@athenna/ioc": "1.0.8", + "@athenna/ioc": "1.0.9", "@secjs/utils": "1.8.0", "fastify": "3.27.4", "reflect-metadata": "0.1.13", @@ -13518,9 +13518,9 @@ } }, "@athenna/ioc": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-1.0.8.tgz", - "integrity": "sha512-XN23c6AU1emeUjqn6S4fHSRR9Lg6VjhBx3BTcUnZGkYEo3iVaznVXIKoPnHFswjbDHXrGgdheyIq31R2MZ0R8g==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-1.0.9.tgz", + "integrity": "sha512-IqU04R7oZFGeHQRjI6d1hK1P0VYF6FYaKLQP0BAQL407q+Wh5AkDEqIxQDyInIOoqIyWjpRet0WpRWjUyrQ1tw==", "requires": { "@secjs/utils": "1.7.8", "awilix": "7.0.0", @@ -13610,11 +13610,11 @@ } }, "@athenna/logger": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-1.0.6.tgz", - "integrity": "sha512-gCZYnr+7oPq4Iq9p10SmdR2X4CorGPPra9gWlp+Zq7ej8jVfl94U9k03Fq+DxJSDRtDc9bHs/bqUvmrKbu+2oA==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-1.0.7.tgz", + "integrity": "sha512-x0U4cLVDDdZSfr5daPWgf/Riv2XiZQhD7CMpSEMdKd4Jex5X3YROqCgwt61bvG98GFQtD0bwSZEjpwUYThPCfw==", "requires": { - "@athenna/ioc": "1.0.8", + "@athenna/ioc": "1.0.9", "@secjs/utils": "1.8.0", "reflect-metadata": "0.1.13", "tscpaths": "0.0.9" diff --git a/package.json b/package.json index 7823fd3..202cd15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/core", - "version": "1.1.1", + "version": "1.1.2", "description": "", "license": "MIT", "author": "João Lenon ", @@ -163,9 +163,9 @@ }, "dependencies": { "@athenna/config": "1.0.5", - "@athenna/ioc": "1.0.8", - "@athenna/logger": "1.0.6", - "@athenna/http": "1.1.0", + "@athenna/ioc": "1.0.9", + "@athenna/logger": "1.0.7", + "@athenna/http": "1.1.1", "@secjs/utils": "1.8.0", "reflect-metadata": "0.1.13", "tscpaths": "0.0.9" diff --git a/src/Factories/AthennaFactory.ts b/src/Factories/AthennaFactory.ts index 9442080..b026e49 100644 --- a/src/Factories/AthennaFactory.ts +++ b/src/Factories/AthennaFactory.ts @@ -21,8 +21,6 @@ export class AthennaFactory { private static extension: '.js' | '.ts' constructor(fileName: string) { - console.clear() - AthennaFactory.resolveNodeTs(fileName) process.env.NODE_ENV = getAppEnvironment( @@ -46,6 +44,8 @@ export class AthennaFactory { log: () => {}, error: () => {}, } + } else { + console.clear() } const providers = AthennaFactory.getProviders()