Skip to content

Commit

Permalink
Merge pull request #210 from AthennaIO/develop
Browse files Browse the repository at this point in the history
chore(npm): update dependencies
  • Loading branch information
jlenon7 authored Jan 23, 2025
2 parents 495a829 + 10f8069 commit c0a1f10
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 42 deletions.
118 changes: 83 additions & 35 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/http",
"version": "5.24.0",
"version": "5.25.0",
"description": "The Athenna Http server. Built on top of fastify.",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down Expand Up @@ -82,7 +82,7 @@
"@athenna/test": "^5.3.0",
"@athenna/tsconfig": "^5.0.0",
"@athenna/view": "^5.3.0",
"@athenna/vite": "^5.12.0",
"@athenna/vite": "^5.13.0",
"@fastify/cors": "^10.0.2",
"@fastify/helmet": "^13.0.1",
"@fastify/rate-limit": "^10.2.2",
Expand Down
10 changes: 5 additions & 5 deletions src/kernels/HttpKernel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Log } from '@athenna/logger'
import { Config } from '@athenna/config'
import { sep, isAbsolute, resolve } from 'node:path'
import { Annotation, type ServiceMeta } from '@athenna/ioc'
import { File, Path, Exec, Module, String } from '@athenna/common'
import { File, Path, Module, String } from '@athenna/common'
import { HttpExceptionHandler } from '#src/handlers/HttpExceptionHandler'

const corsPlugin = await Module.safeImport('@fastify/cors')
Expand Down Expand Up @@ -256,7 +256,7 @@ export class HttpKernel {
public async registerControllers(): Promise<void> {
const controllers = Config.get<string[]>('rc.controllers', [])

await Exec.concurrently(controllers, async path => {
await controllers.athenna.concurrently(async path => {
const Controller = await Module.resolve(path, this.getMeta())

if (Annotation.isAnnotated(Controller)) {
Expand All @@ -277,7 +277,7 @@ export class HttpKernel {
public async registerMiddlewares(): Promise<void> {
const middlewares = Config.get<string[]>('rc.middlewares', [])

await Exec.concurrently(middlewares, async path => {
await middlewares.athenna.concurrently(async path => {
const Middleware = await Module.resolve(path, this.getMeta())

if (Annotation.isAnnotated(Middleware)) {
Expand Down Expand Up @@ -308,7 +308,7 @@ export class HttpKernel {
{}
)

await Exec.concurrently(Object.keys(namedMiddlewares), async key => {
await Object.keys(namedMiddlewares).athenna.concurrently(async key => {
const Middleware = await Module.resolve(
namedMiddlewares[key],
this.getMeta()
Expand Down Expand Up @@ -336,7 +336,7 @@ export class HttpKernel {
public async registerGlobalMiddlewares(): Promise<void> {
const globalMiddlewares = Config.get<string[]>('rc.globalMiddlewares', [])

await Exec.concurrently(globalMiddlewares, async path => {
await globalMiddlewares.athenna.concurrently(async path => {
const Middleware = await Module.resolve(path, this.getMeta())

if (Annotation.isAnnotated(Middleware)) {
Expand Down

0 comments on commit c0a1f10

Please sign in to comment.