alado 2.7.1 → 2.7.3

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.
Files changed (51) hide show
  1. package/dist/alado-server/alado-server.d.ts +2 -2
  2. package/dist/alado-server/alado-server.js +4 -4
  3. package/dist/decorators/access-control.d.ts +1 -1
  4. package/dist/decorators/access-control.js +1 -1
  5. package/dist/decorators/define-request.d.ts +2 -2
  6. package/dist/decorators/define-request.js +1 -1
  7. package/dist/decorators/define-response.d.ts +1 -1
  8. package/dist/decorators/define-response.js +1 -1
  9. package/dist/decorators/document-property.d.ts +1 -1
  10. package/dist/decorators/document-property.js +1 -1
  11. package/dist/decorators/file-upload-property.d.ts +1 -1
  12. package/dist/decorators/file-upload-property.js +1 -1
  13. package/dist/decorators/http.d.ts +1 -1
  14. package/dist/decorators/http.js +2 -2
  15. package/dist/decorators/initialize-application.d.ts +2 -2
  16. package/dist/decorators/initialize-application.js +4 -4
  17. package/dist/decorators/initialize-injector.js +1 -1
  18. package/dist/decorators/transform-property.js +1 -1
  19. package/dist/decorators/validate-property.d.ts +1 -1
  20. package/dist/decorators/validate-property.js +1 -1
  21. package/dist/decorators/with-auth.d.ts +1 -1
  22. package/dist/decorators/with-auth.js +1 -1
  23. package/dist/dto/context.d.ts +1 -1
  24. package/dist/dto/global-holder.d.ts +1 -1
  25. package/dist/dto/request.d.ts +1 -1
  26. package/dist/factory/http-server-factory.d.ts +1 -1
  27. package/dist/factory/http-server-factory.js +1 -1
  28. package/dist/factory/open-api-doc-factory.d.ts +1 -1
  29. package/dist/factory/open-api-doc-factory.js +1 -1
  30. package/dist/helpers/api-doc/doc-object-setter.d.ts +1 -1
  31. package/dist/helpers/parser/access-control-checker.d.ts +1 -1
  32. package/dist/helpers/parser/authenticate.d.ts +1 -1
  33. package/dist/helpers/parser/body-parser.js +1 -1
  34. package/dist/helpers/service/clear-route-path.js +1 -1
  35. package/dist/helpers/validate/alado-options/validate-alado-options.d.ts +1 -1
  36. package/dist/helpers/validate/context/validate-context.d.ts +1 -1
  37. package/dist/helpers/validate/context/validate-context.js +1 -1
  38. package/dist/helpers/validate/context/validate-request-files.d.ts +1 -1
  39. package/dist/helpers/validate/context/validate-request-part.d.ts +1 -1
  40. package/dist/index.d.ts +6 -6
  41. package/dist/index.js +4 -4
  42. package/dist/injector/injector.d.ts +1 -1
  43. package/dist/options/alado-server-options.d.ts +1 -1
  44. package/dist/options/injector-options.d.ts +2 -2
  45. package/dist/options/request-processor-options.d.ts +2 -2
  46. package/dist/options/router-options.d.ts +1 -1
  47. package/dist/request-processor/request-processor.d.ts +2 -2
  48. package/dist/request-processor/request-processor.js +2 -2
  49. package/dist/router/router.d.ts +3 -3
  50. package/dist/router/router.js +3 -3
  51. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
1
  import { Server } from 'http';
2
- import { AladoServerOptions } from '../options';
3
- import { Context, Response } from '../dto';
2
+ import { AladoServerOptions } from '../options/index.js';
3
+ import { Context, Response } from '../dto/index.js';
4
4
  export declare class AladoServer {
5
5
  private readonly appId;
6
6
  private readonly router;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AladoServer = void 0;
4
- const _const_1 = require("../constants");
5
- const _router_1 = require("../router");
6
- const _factory_1 = require("../factory");
7
- const _helper_1 = require("../helpers");
4
+ const _const_1 = require("../constants/index.js");
5
+ const _router_1 = require("../router/index.js");
6
+ const _factory_1 = require("../factory/index.js");
7
+ const _helper_1 = require("../helpers/index.js");
8
8
  class AladoServer {
9
9
  appId;
10
10
  router;
@@ -1,2 +1,2 @@
1
- import { AccessControlConfig } from '../dto';
1
+ import { AccessControlConfig } from '../dto/index.js';
2
2
  export declare function accessControl(configs: AccessControlConfig<any>[]): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.accessControl = accessControl;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function accessControl(configs) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,3 +1,3 @@
1
- import { Request } from '../dto';
2
- import { AnyClass } from '../options';
1
+ import { Request } from '../dto/index.js';
2
+ import { AnyClass } from '../options/index.js';
3
3
  export declare function defineRequest(request: Partial<Record<keyof Request, AnyClass>>): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defineRequest = defineRequest;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function defineRequest(request) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,2 +1,2 @@
1
- import { Response } from '../dto';
1
+ import { Response } from '../dto/index.js';
2
2
  export declare function defineResponse(response: Response<any>): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defineResponse = defineResponse;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function defineResponse(response) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,2 +1,2 @@
1
- import { PropertyDocumentation } from '../dto';
1
+ import { PropertyDocumentation } from '../dto/index.js';
2
2
  export declare function documentProperty(propertyDocumentation: PropertyDocumentation): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.documentProperty = documentProperty;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function documentProperty(propertyDocumentation) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,2 +1,2 @@
1
- import { FilePropertyDefinition } from '../dto';
1
+ import { FilePropertyDefinition } from '../dto/index.js';
2
2
  export declare function fileUploadProperty(filePropertyDefinition: FilePropertyDefinition): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fileUploadProperty = fileUploadProperty;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function fileUploadProperty(filePropertyDefinition) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,4 +1,4 @@
1
- import { HttpDecoratorOptions } from '../options';
1
+ import { HttpDecoratorOptions } from '../options/index.js';
2
2
  export declare function get(path: string, options?: HttpDecoratorOptions): (instance: any, method: string) => void;
3
3
  export declare function query(path: string, options?: HttpDecoratorOptions): (instance: any, method: string) => void;
4
4
  export declare function post(path: string, options?: HttpDecoratorOptions): (instance: any, method: string) => void;
@@ -7,8 +7,8 @@ exports.put = put;
7
7
  exports.patch = patch;
8
8
  exports.del = del;
9
9
  exports.head = head;
10
- const _const_1 = require("../constants");
11
- const _injector_1 = require("../injector");
10
+ const _const_1 = require("../constants/index.js");
11
+ const _injector_1 = require("../injector/index.js");
12
12
  const initialize_injector_1 = require("./initialize-injector");
13
13
  function callHttpMethod(httpMethod, path, options = {}) {
14
14
  (0, initialize_injector_1.initializeInjector)();
@@ -1,3 +1,3 @@
1
- import { InitializeApplicationOptions } from '../options';
2
- import { AladoServer } from '../alado-server';
1
+ import { InitializeApplicationOptions } from '../options/index.js';
2
+ import { AladoServer } from '../alado-server/index.js';
3
3
  export declare function initializeApplication(initializeApplicationOptions: InitializeApplicationOptions): AladoServer;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initializeApplication = initializeApplication;
4
- const _injector_1 = require("../injector");
5
- const _const_1 = require("../constants");
6
- const _alado_1 = require("../alado-server");
4
+ const _injector_1 = require("../injector/index.js");
5
+ const _const_1 = require("../constants/index.js");
6
+ const _alado_1 = require("../alado-server/index.js");
7
7
  const initialize_injector_1 = require("./initialize-injector");
8
- const _helper_1 = require("../helpers");
8
+ const _helper_1 = require("../helpers/index.js");
9
9
  function initializeApplication(initializeApplicationOptions) {
10
10
  (0, initialize_injector_1.initializeInjector)();
11
11
  const { serverOptions, controllers } = initializeApplicationOptions;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initializeInjector = initializeInjector;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  function initializeInjector() {
6
6
  _injector_1.injector.inject({
7
7
  appMapping: _injector_1.injector.injected.appMapping || {},
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.transformProperty = transformProperty;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function transformProperty(propertyTransformer) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,2 +1,2 @@
1
- import { PropertyValidation } from '../dto';
1
+ import { PropertyValidation } from '../dto/index.js';
2
2
  export declare function validateProperty(propertyValidation: PropertyValidation): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateProperty = validateProperty;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function validateProperty(propertyValidation) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,2 +1,2 @@
1
- import { RequestAuthentication } from '../dto';
1
+ import { RequestAuthentication } from '../dto/index.js';
2
2
  export declare function withAuth(requestAuthentication: RequestAuthentication): (...args: any[]) => void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withAuth = withAuth;
4
- const _injector_1 = require("../injector");
4
+ const _injector_1 = require("../injector/index.js");
5
5
  const initialize_injector_1 = require("./initialize-injector");
6
6
  function withAuth(requestAuthentication) {
7
7
  (0, initialize_injector_1.initializeInjector)();
@@ -1,4 +1,4 @@
1
- import { ContextOptions } from '../options';
1
+ import { ContextOptions } from '../options/index.js';
2
2
  import { RequestAuthentication } from './request-authentication';
3
3
  import { Response } from './response';
4
4
  import { ContextRequest } from './request';
@@ -1,5 +1,5 @@
1
1
  import { RequestAuthentication } from './request-authentication';
2
- import { ContextOptions } from '../options';
2
+ import { ContextOptions } from '../options/index.js';
3
3
  import { ContextRequest } from './request';
4
4
  import { Response } from './response';
5
5
  export type GlobalHolder = {
@@ -1,7 +1,7 @@
1
1
  import { IncomingHttpHeaders, IncomingMessage } from 'http';
2
2
  import { Readable } from 'stream';
3
3
  import { FilePropertyDefinition, PropertyDefinition } from './property-definition';
4
- import { HttpMethod } from '../constants';
4
+ import { HttpMethod } from '../constants/index.js';
5
5
  export interface ContextRequest {
6
6
  headers?: Record<string, PropertyDefinition>;
7
7
  query?: Record<string, PropertyDefinition>;
@@ -1,4 +1,4 @@
1
1
  import { SecureContextOptions } from 'tls';
2
2
  import { IncomingMessage, Server, ServerOptions, ServerResponse } from 'http';
3
- import { RequestProcessorOptions } from '../options';
3
+ import { RequestProcessorOptions } from '../options/index.js';
4
4
  export declare function httpServerFactory(requestProcessorOptions: RequestProcessorOptions, options?: SecureContextOptions & ServerOptions): Server<typeof IncomingMessage, typeof ServerResponse>;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.httpServerFactory = httpServerFactory;
7
7
  const http_1 = __importDefault(require("http"));
8
8
  const https_1 = __importDefault(require("https"));
9
- const _request_processor_1 = require("../request-processor");
9
+ const _request_processor_1 = require("../request-processor/index.js");
10
10
  function verifySecureContextOptions(options) {
11
11
  return options && typeof options === 'object' && Boolean(Object.keys(options).length);
12
12
  }
@@ -1,2 +1,2 @@
1
- import { Context } from '../dto';
1
+ import { Context } from '../dto/index.js';
2
2
  export declare function openApiDocFactory(openApiMethod: string, openApiRoute: string, context: Context<any>, openApiDocObject: any): void;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.openApiDocFactory = openApiDocFactory;
4
- const _helper_1 = require("../helpers");
4
+ const _helper_1 = require("../helpers/index.js");
5
5
  const nonBinResponses = [
6
6
  'application/json',
7
7
  'application/xml',
@@ -1,2 +1,2 @@
1
- import { OpenApiDocObject } from '../../dto';
1
+ import { OpenApiDocObject } from '../../dto/index.js';
2
2
  export declare function docObjectSetter(source: any, target: OpenApiDocObject): void;
@@ -1,2 +1,2 @@
1
- import { AladoServerError, Context } from '../../dto';
1
+ import { AladoServerError, Context } from '../../dto/index.js';
2
2
  export declare function accessControlChecker(context: Context<any>, request: any): Promise<AladoServerError | void>;
@@ -1,2 +1,2 @@
1
- import { Context } from '../../dto';
1
+ import { Context } from '../../dto/index.js';
2
2
  export declare function authenticate(context: Context<any>, request: any): Promise<any>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bodyParser = bodyParser;
4
- const _const_1 = require("../../constants");
4
+ const _const_1 = require("../../constants/index.js");
5
5
  const stream_1 = require("stream");
6
6
  const xml_parser_1 = require("./xml-parser");
7
7
  async function bodyParser(req, res, limit) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.clearRoutePath = clearRoutePath;
4
- const _const_1 = require("../../constants");
4
+ const _const_1 = require("../../constants/index.js");
5
5
  function clearRoutePath(route) {
6
6
  if (!_const_1.startRouteRegexp.test(route)) {
7
7
  route = `/${route}`;
@@ -1,2 +1,2 @@
1
- import { AladoServerOptions } from '../../../options';
1
+ import { AladoServerOptions } from '../../../options/index.js';
2
2
  export declare function validateAladoOptions(options: AladoServerOptions): void;
@@ -1,3 +1,3 @@
1
- import { Context } from '../../../dto';
1
+ import { Context } from '../../../dto/index.js';
2
2
  export declare function validateContextOptions(context: Context<any>, useApiDoc?: boolean): void;
3
3
  export declare function validateContext(context: Context<any>, useApiDoc?: boolean): void;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateContextOptions = validateContextOptions;
4
4
  exports.validateContext = validateContext;
5
- const _const_1 = require("../../../constants");
5
+ const _const_1 = require("../../../constants/index.js");
6
6
  function validateError(path, error, errorName) {
7
7
  if (!error) {
8
8
  throw new Error(`${path}.${errorName || 'error'} is required property"`);
@@ -1,2 +1,2 @@
1
- import { AladoServerError, Context } from '../../../dto';
1
+ import { AladoServerError, Context } from '../../../dto/index.js';
2
2
  export declare function validateRequestFiles(context: Context<any>, request: any): AladoServerError | undefined;
@@ -1,4 +1,4 @@
1
- import { Context, ContextRequest } from '../../../dto';
1
+ import { Context, ContextRequest } from '../../../dto/index.js';
2
2
  export declare function validateRequestPart(key: keyof ContextRequest, context: Context<any>, request: any): Promise<{
3
3
  statusCode: number;
4
4
  message: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { Context, ContextRequest, RequestAuthentication, Request, Response, PropertyDefinition, PropertyDocumentation, PropertyDefinitionSchema, FilePropertyDefinition, } from './dto';
2
- export { AladoServerOptions, ContextOptions, CorsOptions, OpenApiDoc } from './options';
3
- export { HttpMethod, httpStatus, ContentType } from './constants';
4
- export { validate } from './helpers';
5
- export { initializeApplication, defineRequest, defineResponse, fileUploadProperty, documentProperty, validateProperty, transformProperty, withAuth, accessControl, get, query, del, head, patch, post, put, } from './decorators';
6
- export { AladoServer } from './alado-server';
1
+ export { Context, ContextRequest, RequestAuthentication, Request, Response, PropertyDefinition, PropertyDocumentation, PropertyDefinitionSchema, FilePropertyDefinition, } from './dto/index.js';
2
+ export { AladoServerOptions, ContextOptions, CorsOptions, OpenApiDoc } from './options/index.js';
3
+ export { HttpMethod, httpStatus, ContentType } from './constants/index.js';
4
+ export { validate } from './helpers/index.js';
5
+ export { initializeApplication, defineRequest, defineResponse, fileUploadProperty, documentProperty, validateProperty, transformProperty, withAuth, accessControl, get, query, del, head, patch, post, put, } from './decorators/index.js';
6
+ export { AladoServer } from './alado-server/index.js';
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AladoServer = exports.put = exports.post = exports.patch = exports.head = exports.del = exports.query = exports.get = exports.accessControl = exports.withAuth = exports.transformProperty = exports.validateProperty = exports.documentProperty = exports.fileUploadProperty = exports.defineResponse = exports.defineRequest = exports.initializeApplication = exports.validate = exports.ContentType = exports.httpStatus = exports.HttpMethod = void 0;
4
- var _const_1 = require("./constants");
4
+ var _const_1 = require("./constants/index.js");
5
5
  Object.defineProperty(exports, "HttpMethod", { enumerable: true, get: function () { return _const_1.HttpMethod; } });
6
6
  Object.defineProperty(exports, "httpStatus", { enumerable: true, get: function () { return _const_1.httpStatus; } });
7
7
  Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return _const_1.ContentType; } });
8
- var _helper_1 = require("./helpers");
8
+ var _helper_1 = require("./helpers/index.js");
9
9
  Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return _helper_1.validate; } });
10
- var _decorator_1 = require("./decorators");
10
+ var _decorator_1 = require("./decorators/index.js");
11
11
  Object.defineProperty(exports, "initializeApplication", { enumerable: true, get: function () { return _decorator_1.initializeApplication; } });
12
12
  Object.defineProperty(exports, "defineRequest", { enumerable: true, get: function () { return _decorator_1.defineRequest; } });
13
13
  Object.defineProperty(exports, "defineResponse", { enumerable: true, get: function () { return _decorator_1.defineResponse; } });
@@ -24,6 +24,6 @@ Object.defineProperty(exports, "head", { enumerable: true, get: function () { re
24
24
  Object.defineProperty(exports, "patch", { enumerable: true, get: function () { return _decorator_1.patch; } });
25
25
  Object.defineProperty(exports, "post", { enumerable: true, get: function () { return _decorator_1.post; } });
26
26
  Object.defineProperty(exports, "put", { enumerable: true, get: function () { return _decorator_1.put; } });
27
- var _alado_1 = require("./alado-server");
27
+ var _alado_1 = require("./alado-server/index.js");
28
28
  Object.defineProperty(exports, "AladoServer", { enumerable: true, get: function () { return _alado_1.AladoServer; } });
29
29
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { InjectorOptions } from '../options';
1
+ import { InjectorOptions } from '../options/index.js';
2
2
  export declare class Injector<T> {
3
3
  inject(data: Partial<T>): void;
4
4
  get injected(): T;
@@ -1,5 +1,5 @@
1
1
  import { ServerOptions } from 'http';
2
- import { AladoServerLogger } from '../dto';
2
+ import { AladoServerLogger } from '../dto/index.js';
3
3
  import { OpenApiDoc } from './open-api-doc';
4
4
  import { CorsOptions } from './cors-options';
5
5
  import { SecureContextOptions } from 'tls';
@@ -1,5 +1,5 @@
1
- import { AladoServer } from '../alado-server';
2
- import { AccessControlConfig, FilePropertyDefinition, PropertyDefinition, RequestAuthentication } from '../dto';
1
+ import { AladoServer } from '../alado-server/index.js';
2
+ import { AccessControlConfig, FilePropertyDefinition, PropertyDefinition, RequestAuthentication } from '../dto/index.js';
3
3
  export type InjectorOptions = {
4
4
  appMapping: Record<string, AladoServer>;
5
5
  shadowAppMapping: Record<string, any>;
@@ -1,6 +1,6 @@
1
- import { Router } from '../router';
1
+ import { Router } from '../router/index.js';
2
2
  import { OpenApiDoc } from './open-api-doc';
3
- import { AladoServerLogger } from '../dto';
3
+ import { AladoServerLogger } from '../dto/index.js';
4
4
  export type RequestProcessorOptions = {
5
5
  router: Router;
6
6
  openApiDoc: OpenApiDoc;
@@ -1,4 +1,4 @@
1
- import { AladoServerLogger } from '../dto';
1
+ import { AladoServerLogger } from '../dto/index.js';
2
2
  import { OpenApiDoc } from './open-api-doc';
3
3
  import { CorsOptions } from './cors-options';
4
4
  export type RouterOptions = {
@@ -1,6 +1,6 @@
1
1
  import { IncomingMessage, ServerResponse } from 'http';
2
- import { RequestProcessorOptions } from '../options';
3
- import { AladoServerError, Response } from '../dto';
2
+ import { RequestProcessorOptions } from '../options/index.js';
3
+ import { AladoServerError, Response } from '../dto/index.js';
4
4
  export declare class RequestProcessor {
5
5
  private readonly options;
6
6
  constructor(requestProcessorOptions: RequestProcessorOptions);
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RequestProcessor = void 0;
4
4
  const path_1 = require("path");
5
5
  const fs_1 = require("fs");
6
- const _const_1 = require("../constants");
7
- const _helper_1 = require("../helpers");
6
+ const _const_1 = require("../constants/index.js");
7
+ const _helper_1 = require("../helpers/index.js");
8
8
  const swaggerUiAssetPath = require('swagger-ui-dist').absolutePath();
9
9
  const swaggerUiFiles = (0, fs_1.readdirSync)(swaggerUiAssetPath);
10
10
  class RequestProcessor {
@@ -1,6 +1,6 @@
1
- import { HttpMethod } from '../constants';
2
- import { AladoServerLogger, Context, Request, Response, Route } from '../dto';
3
- import { RouterOptions } from '../options';
1
+ import { HttpMethod } from '../constants/index.js';
2
+ import { AladoServerLogger, Context, Request, Response, Route } from '../dto/index.js';
3
+ import { RouterOptions } from '../options/index.js';
4
4
  export declare class Router {
5
5
  private routes;
6
6
  readonly options: RouterOptions;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Router = void 0;
4
- const _const_1 = require("../constants");
5
- const _factory_1 = require("../factory");
6
- const _helper_1 = require("../helpers");
4
+ const _const_1 = require("../constants/index.js");
5
+ const _factory_1 = require("../factory/index.js");
6
+ const _helper_1 = require("../helpers/index.js");
7
7
  const pathVariableRegex = /:([^/]+?)+/g;
8
8
  class Router {
9
9
  routes = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alado",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "description": "Extremely fast, lightweight, robust framework for HTTP applications written in Node.js",
5
5
  "keywords": [
6
6
  "HTTP",
@@ -23,21 +23,21 @@
23
23
  "prepare": "husky"
24
24
  },
25
25
  "dependencies": {
26
- "swagger-ui-dist": "5.32.15"
26
+ "swagger-ui-dist": "5.0.0-alpha.15"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@eslint/js": "^10.0.1",
30
30
  "@types/node": "24.13.1",
31
31
  "@types/prettier": "3.0.0",
32
- "@typescript-eslint/eslint-plugin": "8.70.0",
33
- "@typescript-eslint/parser": "8.70.0",
34
- "eslint": "10.10.0",
32
+ "@typescript-eslint/eslint-plugin": "8.71.0",
33
+ "@typescript-eslint/parser": "8.71.0",
34
+ "eslint": "10.11.0",
35
35
  "husky": "9.1.7",
36
- "prettier": "3.9.6",
36
+ "prettier": "3.9.9",
37
37
  "prettier-plugin-multiline-arrays": "4.1.11",
38
- "tsc-alias": "1.9.4",
38
+ "tsc-alias": "1.9.7",
39
39
  "typescript": "5.9.3",
40
- "typescript-eslint": "^8.70.0"
40
+ "typescript-eslint": "^8.71.0"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",