framework-do-dede 0.0.16 → 0.0.18

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.
@@ -1,5 +1,5 @@
1
- import { Validation } from "@/protocols/Validation";
2
- import { HttpMiddleware } from "@/protocols";
1
+ import { Validation } from "../protocols/Validation";
2
+ import { HttpMiddleware } from "../protocols";
3
3
  export declare function Controller(basePath: string): (target: any) => void;
4
4
  export declare function Middleware(middlewareClass: new () => HttpMiddleware): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
5
5
  export declare function Post(config?: {
@@ -1,5 +1,5 @@
1
- import { FrameworkError } from "@/http/FrameworkError";
2
- import { Registry } from "@/di/registry";
1
+ import { FrameworkError } from "../http/FrameworkError";
2
+ import { Registry } from "../di/registry";
3
3
  const middlewares = new Map();
4
4
  export function Controller(basePath) {
5
5
  return function (target) {
@@ -1,4 +1,4 @@
1
- import HttpServer from "@/http/HttpServer";
1
+ import HttpServer from "../http/HttpServer";
2
2
  export default class ControllerHandler {
3
3
  constructor(httpServer: HttpServer, port: number);
4
4
  private registryControllers;
@@ -1,4 +1,4 @@
1
- import { Registry } from "@/di/registry";
1
+ import { Registry } from "../di/registry";
2
2
  export default class ControllerHandler {
3
3
  constructor(httpServer, port) {
4
4
  for (const { instance, instanceMethod, middlewares, method, route, statusCode, params, query, validation } of this.registryControllers()) {
@@ -1,4 +1,4 @@
1
- import type { AllowedMethods, HttpStatusCode } from "@/http/HttpServer";
1
+ import type { AllowedMethods, HttpStatusCode } from "../http/HttpServer";
2
2
  import type { Validation } from "./Validation";
3
3
  import type { HttpMiddleware } from "./HttpMiddleware";
4
4
  export type Controller = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework-do-dede",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "scripts": {
15
15
  "test": "jest",
16
16
  "test:watch": "jest --watch",
17
- "build": "tsc -p tsconfig.build.json",
17
+ "build": "tsc -p tsconfig.build.json && tsc-alias",
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "files": [
@@ -39,6 +39,7 @@
39
39
  "@types/reflect-metadata": "^0.1.0",
40
40
  "jest": "^29.7.0",
41
41
  "ts-jest": "^29.3.0",
42
+ "tsc-alias": "^1.8.11",
42
43
  "typescript": "^5.8.2"
43
44
  },
44
45
  "peerDependencies": {