@athenna/http 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "The Athenna Http server. Built on top of fastify.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -7,10 +7,14 @@
7
7
  * file that was distributed with this source code.
8
8
  */
9
9
 
10
- import { join } from 'node:path'
10
+ import { fileURLToPath } from 'node:url'
11
+ import { join, dirname } from 'node:path'
11
12
  import { Folder, Path, String } from '@secjs/utils'
12
13
  import { Artisan, Command, TemplateHelper } from '@athenna/artisan'
13
14
 
15
+ const __filename = fileURLToPath(import.meta.url)
16
+ const __dirname = dirname(__filename)
17
+
14
18
  export class MakeController extends Command {
15
19
  /**
16
20
  * The name and signature of the console command.
@@ -7,10 +7,14 @@
7
7
  * file that was distributed with this source code.
8
8
  */
9
9
 
10
- import { join } from 'node:path'
10
+ import { fileURLToPath } from 'node:url'
11
+ import { join, dirname } from 'node:path'
11
12
  import { Folder, Path, String } from '@secjs/utils'
12
13
  import { Artisan, Command, TemplateHelper } from '@athenna/artisan'
13
14
 
15
+ const __filename = fileURLToPath(import.meta.url)
16
+ const __dirname = dirname(__filename)
17
+
14
18
  export class MakeMiddleware extends Command {
15
19
  /**
16
20
  * The name and signature of the console command.