Skip to content

Commit

Permalink
chore(npm): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Aug 26, 2024
1 parent edf90b3 commit 3e822d0
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 53 deletions.
70 changes: 35 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/http",
"version": "4.41.0",
"version": "5.0.0",
"description": "The Athenna Http server. Built on top of fastify.",
"license": "MIT",
"author": "João Lenon <[email protected]>",
Expand Down Expand Up @@ -73,14 +73,14 @@
"#tests": "./tests/index.js"
},
"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",
"@fastify/cors": "^8.5.0",
"@fastify/helmet": "^11.1.1",
"@fastify/rate-limit": "^8.1.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/BaseCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class BaseCommandTest {

@AfterEach()
public async afterEach() {
await Folder.safeRemove(Path.app())
await Folder.safeRemove(Path.http())
await Folder.safeRemove(Path.fixtures('storage'))

await new File(Path.pwd('package.json')).setContent(this.originalPackageJson)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/commands/MakeControllerCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export default class MakeControllerCommandTest extends BaseCommandTest {
output.assertSucceeded()
output.assertLogged('[ MAKING CONTROLLER ]')
output.assertLogged('[ success ] Controller "TestController" successfully created.')
output.assertLogged('[ success ] Athenna RC updated: [ controllers += "#app/http/controllers/TestController" ]')
output.assertLogged('[ success ] Athenna RC updated: [ controllers += "#src/http/controllers/TestController" ]')

const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson()

assert.isTrue(await File.exists(Path.controllers('TestController.ts')))
assert.containsSubset(athenna.controllers, ['#app/http/controllers/TestController'])
assert.containsSubset(athenna.controllers, ['#src/http/controllers/TestController'])
}

@Test()
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/commands/MakeInterceptorCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export default class MakeInterceptorCommandTest extends BaseCommandTest {
output.assertSucceeded()
output.assertLogged('[ MAKING INTERCEPTOR ]')
output.assertLogged('[ success ] Interceptor "TestInterceptor" successfully created.')
output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#app/http/interceptors/TestInterceptor" ]')
output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#src/http/interceptors/TestInterceptor" ]')

const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson()

assert.isTrue(await File.exists(Path.interceptors('TestInterceptor.ts')))
assert.containsSubset(athenna.middlewares, ['#app/http/interceptors/TestInterceptor'])
assert.containsSubset(athenna.middlewares, ['#src/http/interceptors/TestInterceptor'])
}

@Test()
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/commands/MakeMiddlewareCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export default class MakeMiddlewareCommandTest extends BaseCommandTest {
output.assertSucceeded()
output.assertLogged('[ MAKING MIDDLEWARE ]')
output.assertLogged('[ success ] Middleware "TestMiddleware" successfully created.')
output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#app/http/middlewares/TestMiddleware" ]')
output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#src/http/middlewares/TestMiddleware" ]')

const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson()

assert.isTrue(await File.exists(Path.middlewares('TestMiddleware.ts')))
assert.containsSubset(athenna.middlewares, ['#app/http/middlewares/TestMiddleware'])
assert.containsSubset(athenna.middlewares, ['#src/http/middlewares/TestMiddleware'])
}

@Test()
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/commands/MakeTerminatorCommandTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export default class MakeTerminatorCommandTest extends BaseCommandTest {
output.assertSucceeded()
output.assertLogged('[ MAKING TERMINATOR ]')
output.assertLogged('[ success ] Terminator "TestTerminator" successfully created.')
output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#app/http/terminators/TestTerminator" ]')
output.assertLogged('[ success ] Athenna RC updated: [ middlewares += "#src/http/terminators/TestTerminator" ]')

const { athenna } = await new File(Path.pwd('package.json')).getContentAsJson()

assert.isTrue(await File.exists(Path.terminators('TestTerminator.ts')))
assert.containsSubset(athenna.middlewares, ['#app/http/terminators/TestTerminator'])
assert.containsSubset(athenna.middlewares, ['#src/http/terminators/TestTerminator'])
}

@Test()
Expand Down

0 comments on commit 3e822d0

Please sign in to comment.