diff --git a/package-lock.json b/package-lock.json index d353b03..9cf73b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,26 +1,26 @@ { "name": "@athenna/database", - "version": "4.65.0", + "version": "5.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/database", - "version": "4.65.0", + "version": "5.0.0", "license": "MIT", "dependencies": { "@faker-js/faker": "^8.4.1", "fast-deep-equal": "^3.1.3" }, "devDependencies": { - "@athenna/artisan": "^4.45.0", - "@athenna/common": "^4.46.0", - "@athenna/config": "^4.27.0", - "@athenna/ioc": "^4.27.0", - "@athenna/logger": "^4.29.0", - "@athenna/test": "^4.30.0", - "@athenna/tsconfig": "^4.19.0", - "@athenna/view": "^4.33.0", + "@athenna/artisan": "^5.0.0", + "@athenna/common": "^5.0.0", + "@athenna/config": "^5.0.0", + "@athenna/ioc": "^5.0.0", + "@athenna/logger": "^5.0.0", + "@athenna/test": "^5.0.0", + "@athenna/tsconfig": "^5.0.0", + "@athenna/view": "^5.0.0", "@types/knex": "^0.16.1", "@types/mongoose": "^5.11.97", "@typescript-eslint/eslint-plugin": "^7.18.0", @@ -78,9 +78,9 @@ "license": "MIT" }, "node_modules/@athenna/artisan": { - "version": "4.45.0", - "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-4.45.0.tgz", - "integrity": "sha512-jHAE7NVL+Lf7xMuutBlntQQAuwrh0M0M4bx3eZZB3ftnAFGEQtJ4aZFPPc5uLQ9MY7q1GxKe7hR1XsYhHn6SXw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/artisan/-/artisan-5.0.0.tgz", + "integrity": "sha512-qR1viT6sr51cVuuXn9vPCxUDNFRJYiaFUhFEDxfvPQMGh+fLk/8bxJZdfOgr3gokmYSCo0X5p78VZ4nyay0HvQ==", "dev": true, "license": "MIT", "dependencies": { @@ -90,7 +90,7 @@ "columnify": "^1.6.0", "commander": "^9.5.0", "figlet": "^1.7.0", - "inquirer": "^9.2.22", + "inquirer": "^9.3.6", "log-update": "^5.0.1", "ora": "^6.3.1" }, @@ -99,9 +99,9 @@ } }, "node_modules/@athenna/common": { - "version": "4.46.0", - "resolved": "https://registry.npmjs.org/@athenna/common/-/common-4.46.0.tgz", - "integrity": "sha512-Cnx+Rx8OW5MRKaNcBwBvpSlF2uguycDvzUerYlKl6piHf7FOOiQ0it443uozVvaBNWBYuhAv4fYw1xM2HpyFEA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/common/-/common-5.0.0.tgz", + "integrity": "sha512-gUbwCJraEw06CNdNYV6Nb0jIq/OYpXbbTNdYZ1yj62y7+s/A4q3Y05P7BzTxhNhIraP6117O7Vi2UoYY45ilwQ==", "dev": true, "license": "MIT", "dependencies": { @@ -137,9 +137,9 @@ } }, "node_modules/@athenna/config": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@athenna/config/-/config-4.27.0.tgz", - "integrity": "sha512-Y9UkjvOrETW3Nr6bfPtKEoU2pka4BOCZ+0VkKgRyNkLauMJ5iqD8DDiDLNA9+6BzIZuU683Ozx2cmwgUGH5hAg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/config/-/config-5.0.0.tgz", + "integrity": "sha512-PZE8u7uzH+JKXQhNzALV0mtfPEzpXLWkR/77wPjqV5j1l3Giu1opw4Q+mB9NIVtsiy16FRt58z+BDyXH9ajw1g==", "dev": true, "license": "MIT", "dependencies": { @@ -152,9 +152,9 @@ } }, "node_modules/@athenna/ioc": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-4.27.0.tgz", - "integrity": "sha512-8rVYoUaBpDeaaHVJJmC+IZ/2nzWqHPSlfvt7/X7FLrxB00n0TlLkI/8rlJtuH6O8v5wRBphn8D0kgi/jkkx9qw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/ioc/-/ioc-5.0.0.tgz", + "integrity": "sha512-Czxc+1vyIpkx9fcTQQeKYCkNDjc5+ljKYC7UkNgFQJszQCfZjuUU+I+Y6goyWFvZZ0IdAGi67/bc9wlCP+c1Wg==", "dev": true, "license": "MIT", "dependencies": { @@ -165,9 +165,9 @@ } }, "node_modules/@athenna/logger": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-4.29.0.tgz", - "integrity": "sha512-k8VdDs8XDKH9v6AA59j4bEnWnw7ir5+pBFHEZlAqLorzaR23go1XC3CJmY9h1oZt6UNugxYlwzalX6cEGfis+g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/logger/-/logger-5.0.0.tgz", + "integrity": "sha512-blLKcIejErX0INAQa66QvhydVdF93GtqQkhz0JnuKjRhP5MAKgTqFst8vIrvGGmCiZ33MXUSn9yaPX+H3cEHxA==", "dev": true, "license": "MIT", "dependencies": { @@ -180,9 +180,9 @@ } }, "node_modules/@athenna/test": { - "version": "4.30.0", - "resolved": "https://registry.npmjs.org/@athenna/test/-/test-4.30.0.tgz", - "integrity": "sha512-PyvvDXUf3ZsHpBxhwqA5OBUv8JCTOFtAIxmBJZwYPJEMnf4RndlhkjdKfJ/1anE9yoazqm5iJ4G4IvAp4dZF3g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/test/-/test-5.0.0.tgz", + "integrity": "sha512-+mrFFc/EapTrz7T3Inobo/2NKGsF1IIquZTBElQubvchoTk7kJvZcPqYOLqqNn7Ha8zpQAthUo/GouUSmDEaZw==", "dev": true, "license": "MIT", "dependencies": { @@ -197,9 +197,9 @@ } }, "node_modules/@athenna/tsconfig": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/@athenna/tsconfig/-/tsconfig-4.19.0.tgz", - "integrity": "sha512-BpbbnXyMXDHS2DMCUDHWOjFYvzHOe3CJQM+OmQ7MFTS8UXIBaavDd0160aoLCrJLk5IPuCytO1VastQ+h2xRUg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/tsconfig/-/tsconfig-5.0.0.tgz", + "integrity": "sha512-GolYan7ILYA5/GDVriEAbz6E100epGh68Gy1ZbPven4VrfrBsf3Zqfl3qsjcqJvks5shEFko8N/xL4sGO2qMjA==", "dev": true, "license": "MIT", "dependencies": { @@ -213,9 +213,9 @@ } }, "node_modules/@athenna/view": { - "version": "4.33.0", - "resolved": "https://registry.npmjs.org/@athenna/view/-/view-4.33.0.tgz", - "integrity": "sha512-inlk39UQT0scyfRboM7thw07LLxG5n/I2I1wupBQZ7UVDBsWiO14riEM9GfNA4L0KCcL96rO9Ru0fjXqLHUIAA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@athenna/view/-/view-5.0.0.tgz", + "integrity": "sha512-B5e7+RKa5vN1K0ufMDn/o1Qz28m9Uw/dMTfkpp0Qm4P5chqCtbxm3+njKGdHcVTmR97qOv+5JlK1kYvbA5hNGQ==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 879e1c0..8a3a547 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/database", - "version": "4.65.0", + "version": "5.0.0", "description": "The Athenna database handler for SQL/NoSQL.", "license": "MIT", "author": "João Lenon ", @@ -76,14 +76,14 @@ "fast-deep-equal": "^3.1.3" }, "devDependencies": { - "@athenna/artisan": "^4.45.0", - "@athenna/common": "^4.46.0", - "@athenna/config": "^4.27.0", - "@athenna/ioc": "^4.27.0", - "@athenna/logger": "^4.29.0", - "@athenna/test": "^4.30.0", - "@athenna/tsconfig": "^4.19.0", - "@athenna/view": "^4.33.0", + "@athenna/artisan": "^5.0.0", + "@athenna/common": "^5.0.0", + "@athenna/config": "^5.0.0", + "@athenna/ioc": "^5.0.0", + "@athenna/logger": "^5.0.0", + "@athenna/test": "^5.0.0", + "@athenna/tsconfig": "^5.0.0", + "@athenna/view": "^5.0.0", "@types/knex": "^0.16.1", "@types/mongoose": "^5.11.97", "@typescript-eslint/eslint-plugin": "^7.18.0", diff --git a/tests/unit/configurer/DatabaseConfigurerTest.ts b/tests/unit/configurer/DatabaseConfigurerTest.ts index ec27479..691ef7c 100644 --- a/tests/unit/configurer/DatabaseConfigurerTest.ts +++ b/tests/unit/configurer/DatabaseConfigurerTest.ts @@ -50,7 +50,7 @@ export default class DatabaseConfigurerTest { assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.example'))) - assert.isTrue(await File.exists(Path.pwd('config/database.ts'))) + assert.isTrue(await File.exists(Path.pwd('src/config/database.ts'))) assert.deepEqual( dockerComposeFile, "version: '3'\n\nservices:\n mysql:\n container_name: athenna_mysql\n image: mysql\n ports:\n - '3306:3306'\n environment:\n MYSQL_DATABASE: athenna\n MYSQL_ROOT_PASSWORD: root\n MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'\n" @@ -86,7 +86,7 @@ export default class DatabaseConfigurerTest { assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.example'))) - assert.isTrue(await File.exists(Path.pwd('config/database.ts'))) + assert.isTrue(await File.exists(Path.pwd('src/config/database.ts'))) assert.deepEqual( dockerComposeFile, "version: '3'\nservices:\n app:\n container_name: athenna_app\n mysql:\n container_name: athenna_mysql\n image: mysql\n ports:\n - '3306:3306'\n environment:\n MYSQL_DATABASE: athenna\n MYSQL_ROOT_PASSWORD: root\n MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'\n" @@ -118,7 +118,7 @@ export default class DatabaseConfigurerTest { assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.example'))) - assert.isTrue(await File.exists(Path.pwd('config/database.ts'))) + assert.isTrue(await File.exists(Path.pwd('src/config/database.ts'))) assert.deepEqual( dockerComposeFile, "version: '3'\n\nservices:\n postgres:\n container_name: athenna_postgres\n image: postgres\n ports:\n - '5432:5432'\n environment:\n POSTGRES_DB: athenna\n POSTGRES_USER: root\n POSTGRES_PASSWORD: root\n POSTGRES_ROOT_PASSWORD: root\n" @@ -156,7 +156,7 @@ export default class DatabaseConfigurerTest { assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.example'))) - assert.isTrue(await File.exists(Path.pwd('config/database.ts'))) + assert.isTrue(await File.exists(Path.pwd('src/config/database.ts'))) assert.deepEqual( dockerComposeFile, "version: '3'\nservices:\n app:\n container_name: athenna_app\n postgres:\n container_name: athenna_postgres\n image: postgres\n ports:\n - '5432:5432'\n environment:\n POSTGRES_DB: athenna\n POSTGRES_USER: root\n POSTGRES_PASSWORD: root\n POSTGRES_ROOT_PASSWORD: root\n" @@ -188,7 +188,7 @@ export default class DatabaseConfigurerTest { assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.example'))) - assert.isTrue(await File.exists(Path.pwd('config/database.ts'))) + assert.isTrue(await File.exists(Path.pwd('src/config/database.ts'))) assert.deepEqual( dockerComposeFile, "version: '3'\n\nservices:\n mongo:\n container_name: athenna_mongo\n image: mongo\n ports:\n - '27017:27017'\n environment:\n MONGO_INITDB_ROOT_USERNAME: root\n MONGO_INITDB_ROOT_PASSWORD: root\n" @@ -218,7 +218,7 @@ export default class DatabaseConfigurerTest { assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.test'))) assert.isTrue(await File.exists(Path.pwd('.env.example'))) - assert.isTrue(await File.exists(Path.pwd('config/database.ts'))) + assert.isTrue(await File.exists(Path.pwd('src/config/database.ts'))) assert.deepEqual( dockerComposeFile, "version: '3'\nservices:\n app:\n container_name: athenna_app\n mongo:\n container_name: athenna_mongo\n image: mongo\n ports:\n - '27017:27017'\n environment:\n MONGO_INITDB_ROOT_USERNAME: root\n MONGO_INITDB_ROOT_PASSWORD: root\n"