@hg-ts/http-controller 0.3.4 → 0.4.1

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 (110) hide show
  1. package/dist/decorators/decorators.js +12 -16
  2. package/dist/decorators/decorators.js.map +1 -1
  3. package/dist/decorators/index.d.ts +1 -1
  4. package/dist/decorators/index.d.ts.map +1 -1
  5. package/dist/decorators/index.js +1 -4
  6. package/dist/decorators/index.js.map +1 -1
  7. package/dist/exceptions/exception-schema-already-exists.exception.js +2 -6
  8. package/dist/exceptions/exception-schema-already-exists.exception.js.map +1 -1
  9. package/dist/exceptions/exception-schema-not-found.exception.js +2 -6
  10. package/dist/exceptions/exception-schema-not-found.exception.js.map +1 -1
  11. package/dist/exceptions/exception-status-already-defined.exception.js +2 -6
  12. package/dist/exceptions/exception-status-already-defined.exception.js.map +1 -1
  13. package/dist/exceptions/index.d.ts +3 -3
  14. package/dist/exceptions/index.d.ts.map +1 -1
  15. package/dist/exceptions/index.js +3 -6
  16. package/dist/exceptions/index.js.map +1 -1
  17. package/dist/http-controller.module.js +15 -18
  18. package/dist/http-controller.module.js.map +1 -1
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +3 -10
  22. package/dist/index.js.map +1 -1
  23. package/dist/middlewares/database.interceptor.js +17 -20
  24. package/dist/middlewares/database.interceptor.js.map +1 -1
  25. package/dist/middlewares/exception-mapper.interceptor.js +22 -25
  26. package/dist/middlewares/exception-mapper.interceptor.js.map +1 -1
  27. package/dist/middlewares/index.d.ts +3 -3
  28. package/dist/middlewares/index.d.ts.map +1 -1
  29. package/dist/middlewares/index.js +3 -6
  30. package/dist/middlewares/index.js.map +1 -1
  31. package/dist/middlewares/validation.pipe.js +4 -9
  32. package/dist/middlewares/validation.pipe.js.map +1 -1
  33. package/dist/services/exception.service.js +4 -8
  34. package/dist/services/exception.service.js.map +1 -1
  35. package/dist/services/index.d.ts +2 -2
  36. package/dist/services/index.d.ts.map +1 -1
  37. package/dist/services/index.js +2 -5
  38. package/dist/services/index.js.map +1 -1
  39. package/dist/services/swagger.service.js +12 -16
  40. package/dist/services/swagger.service.js.map +1 -1
  41. package/dist/tests/abstracts/base-controller-suite.js +11 -16
  42. package/dist/tests/abstracts/base-controller-suite.js.map +1 -1
  43. package/dist/tests/abstracts/index.d.ts +1 -1
  44. package/dist/tests/abstracts/index.d.ts.map +1 -1
  45. package/dist/tests/abstracts/index.js +1 -4
  46. package/dist/tests/abstracts/index.js.map +1 -1
  47. package/dist/tests/echo/controllers/dto/echo-get.query.js +3 -7
  48. package/dist/tests/echo/controllers/dto/echo-get.query.js.map +1 -1
  49. package/dist/tests/echo/controllers/dto/echo-post.body.js +3 -7
  50. package/dist/tests/echo/controllers/dto/echo-post.body.js.map +1 -1
  51. package/dist/tests/echo/controllers/dto/index.d.ts +2 -2
  52. package/dist/tests/echo/controllers/dto/index.d.ts.map +1 -1
  53. package/dist/tests/echo/controllers/dto/index.js +2 -5
  54. package/dist/tests/echo/controllers/dto/index.js.map +1 -1
  55. package/dist/tests/echo/controllers/echo.controller.d.ts +1 -1
  56. package/dist/tests/echo/controllers/echo.controller.d.ts.map +1 -1
  57. package/dist/tests/echo/controllers/echo.controller.js +32 -35
  58. package/dist/tests/echo/controllers/echo.controller.js.map +1 -1
  59. package/dist/tests/echo/controllers/index.d.ts +1 -1
  60. package/dist/tests/echo/controllers/index.d.ts.map +1 -1
  61. package/dist/tests/echo/controllers/index.js +1 -4
  62. package/dist/tests/echo/controllers/index.js.map +1 -1
  63. package/dist/tests/echo/echo.test.d.ts +1 -1
  64. package/dist/tests/echo/echo.test.d.ts.map +1 -1
  65. package/dist/tests/echo/echo.test.js +46 -49
  66. package/dist/tests/echo/echo.test.js.map +1 -1
  67. package/dist/tests/echo/echo.test.module.js +6 -9
  68. package/dist/tests/echo/echo.test.module.js.map +1 -1
  69. package/dist/tests/exception/controllers/dtos/common-exception.dto.js +7 -11
  70. package/dist/tests/exception/controllers/dtos/common-exception.dto.js.map +1 -1
  71. package/dist/tests/exception/controllers/dtos/index.d.ts +1 -1
  72. package/dist/tests/exception/controllers/dtos/index.d.ts.map +1 -1
  73. package/dist/tests/exception/controllers/dtos/index.js +1 -4
  74. package/dist/tests/exception/controllers/dtos/index.js.map +1 -1
  75. package/dist/tests/exception/controllers/exception.controller.js +19 -22
  76. package/dist/tests/exception/controllers/exception.controller.js.map +1 -1
  77. package/dist/tests/exception/controllers/index.d.ts +1 -1
  78. package/dist/tests/exception/controllers/index.d.ts.map +1 -1
  79. package/dist/tests/exception/controllers/index.js +1 -4
  80. package/dist/tests/exception/controllers/index.js.map +1 -1
  81. package/dist/tests/exception/exception.test.d.ts +1 -1
  82. package/dist/tests/exception/exception.test.d.ts.map +1 -1
  83. package/dist/tests/exception/exception.test.js +20 -23
  84. package/dist/tests/exception/exception.test.js.map +1 -1
  85. package/dist/tests/exception/exception.test.module.js +6 -9
  86. package/dist/tests/exception/exception.test.module.js.map +1 -1
  87. package/dist/tests/exception/exceptions/index.d.ts +2 -2
  88. package/dist/tests/exception/exceptions/index.d.ts.map +1 -1
  89. package/dist/tests/exception/exceptions/index.js +2 -5
  90. package/dist/tests/exception/exceptions/index.js.map +1 -1
  91. package/dist/tests/exception/exceptions/mock-conflict.exception.js +2 -6
  92. package/dist/tests/exception/exceptions/mock-conflict.exception.js.map +1 -1
  93. package/dist/tests/exception/exceptions/mock-not-found.exception.js +2 -6
  94. package/dist/tests/exception/exceptions/mock-not-found.exception.js.map +1 -1
  95. package/dist/tests/http-methods/controllers/empty-response.controller.js +57 -60
  96. package/dist/tests/http-methods/controllers/empty-response.controller.js.map +1 -1
  97. package/dist/tests/http-methods/controllers/index.d.ts +1 -1
  98. package/dist/tests/http-methods/controllers/index.d.ts.map +1 -1
  99. package/dist/tests/http-methods/controllers/index.js +1 -4
  100. package/dist/tests/http-methods/controllers/index.js.map +1 -1
  101. package/dist/tests/http-methods/http-methods.test.d.ts +1 -1
  102. package/dist/tests/http-methods/http-methods.test.d.ts.map +1 -1
  103. package/dist/tests/http-methods/http-methods.test.js +62 -65
  104. package/dist/tests/http-methods/http-methods.test.js.map +1 -1
  105. package/dist/tests/http-methods/http-methods.test.module.js +6 -9
  106. package/dist/tests/http-methods/http-methods.test.module.js.map +1 -1
  107. package/dist/types.js +2 -5
  108. package/dist/types.js.map +1 -1
  109. package/package.json +16 -15
  110. package/tsconfig.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/exception/controllers/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/exception/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { BaseControllerSuite } from '../abstracts';
1
+ import { BaseControllerSuite } from '../abstracts/index.js';
2
2
  export declare class ExceptionTest extends BaseControllerSuite {
3
3
  constructor();
4
4
  echoGetFieldInvalidQuery(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"exception.test.d.ts","sourceRoot":"","sources":["../../../src/tests/exception/exception.test.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,qBACa,aAAc,SAAQ,mBAAmB;;IAOxC,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;cAenC,OAAO,IAAI,MAAM;IAIpC,OAAO,CAAC,iBAAiB;CAGzB"}
1
+ {"version":3,"file":"exception.test.d.ts","sourceRoot":"","sources":["../../../src/tests/exception/exception.test.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,qBACa,aAAc,SAAQ,mBAAmB;;IAOxC,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;cAenC,OAAO,IAAI,MAAM;IAIpC,OAAO,CAAC,iBAAiB;CAGzB"}
@@ -1,14 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExceptionTest = void 0;
4
- const tslib_1 = require("tslib");
5
- const tests_1 = require("@hg-ts/tests");
6
- const axios_1 = require("axios");
7
- const abstracts_1 = require("../abstracts");
8
- const exception_test_module_1 = require("./exception.test.module");
9
- let ExceptionTest = class ExceptionTest extends abstracts_1.BaseControllerSuite {
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Describe, expect, ExpectException, Test, } from '@hg-ts/tests';
3
+ import { AxiosError, isAxiosError, } from 'axios';
4
+ import { BaseControllerSuite } from '../abstracts/index.js';
5
+ import { ExceptionTestModule } from './exception.test.module.js';
6
+ let ExceptionTest = class ExceptionTest extends BaseControllerSuite {
10
7
  constructor() {
11
- super(exception_test_module_1.ExceptionTestModule);
8
+ super(ExceptionTestModule);
12
9
  }
13
10
  async echoGetFieldInvalidQuery() {
14
11
  const value = '9.10 unknown text';
@@ -17,8 +14,8 @@ let ExceptionTest = class ExceptionTest extends abstracts_1.BaseControllerSuite
17
14
  await this.client.get('/exception/404', { params });
18
15
  }
19
16
  catch (error) {
20
- this.checkIsAxiosError((0, axios_1.isAxiosError)(error));
21
- (0, tests_1.expect)(error.status).toBe(404);
17
+ this.checkIsAxiosError(isAxiosError(error));
18
+ expect(error.status).toBe(404);
22
19
  throw error;
23
20
  }
24
21
  }
@@ -26,19 +23,19 @@ let ExceptionTest = class ExceptionTest extends abstracts_1.BaseControllerSuite
26
23
  return 50001;
27
24
  }
28
25
  checkIsAxiosError(isAxiosError) {
29
- (0, tests_1.expect)(isAxiosError).toBe(true);
26
+ expect(isAxiosError).toBe(true);
30
27
  }
31
28
  };
32
- exports.ExceptionTest = ExceptionTest;
33
- tslib_1.__decorate([
34
- (0, tests_1.Test)(),
35
- (0, tests_1.ExpectException)(axios_1.AxiosError),
36
- tslib_1.__metadata("design:type", Function),
37
- tslib_1.__metadata("design:paramtypes", []),
38
- tslib_1.__metadata("design:returntype", Promise)
29
+ __decorate([
30
+ Test(),
31
+ ExpectException(AxiosError),
32
+ __metadata("design:type", Function),
33
+ __metadata("design:paramtypes", []),
34
+ __metadata("design:returntype", Promise)
39
35
  ], ExceptionTest.prototype, "echoGetFieldInvalidQuery", null);
40
- exports.ExceptionTest = ExceptionTest = tslib_1.__decorate([
41
- (0, tests_1.Describe)(),
42
- tslib_1.__metadata("design:paramtypes", [])
36
+ ExceptionTest = __decorate([
37
+ Describe(),
38
+ __metadata("design:paramtypes", [])
43
39
  ], ExceptionTest);
40
+ export { ExceptionTest };
44
41
  //# sourceMappingURL=exception.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exception.test.js","sourceRoot":"","sources":["../../../src/tests/exception/exception.test.ts"],"names":[],"mappings":";;;;AAAA,wCAKsB;AACtB,iCAGe;AAEf,4CAAmD;AACnD,mEAA8D;AAGvD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+BAAmB;IACrD;QACC,KAAK,CAAC,2CAAmB,CAAC,CAAC;IAC5B,CAAC;IAIY,AAAN,KAAK,CAAC,wBAAwB;QACpC,MAAM,KAAK,GAAG,mBAAmB,CAAC;QAClC,MAAM,MAAM,GAA4B,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;QAEhE,IAAI,CAAC;YACJ,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,iBAAiB,CAAC,IAAA,oBAAY,EAAC,KAAK,CAAC,CAAC,CAAC;YAE5C,IAAA,cAAM,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAE/B,MAAM,KAAK,CAAC;QACb,CAAC;IACF,CAAC;IAEkB,OAAO;QACzB,OAAO,KAAK,CAAC;IACd,CAAC;IAEO,iBAAiB,CAAC,YAAqB;QAC9C,IAAA,cAAM,EAAC,YAAY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AC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACD,CAAA;AAtBa;IAFZ,IAAI,EAAE;IACN,eAAe,CAAC,UAAU,CAAC;;;;6DAc3B;AApBW,aAAa;IADzB,QAAQ,EAAE;;GACE,aAAa,CA6BzB"}
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExceptionTestModule = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@nestjs/common");
6
- const controllers_1 = require("./controllers");
1
+ import { __decorate } from "tslib";
2
+ import { Module } from '@nestjs/common';
3
+ import { ExceptionController } from './controllers/index.js';
7
4
  let ExceptionTestModule = class ExceptionTestModule {
8
5
  };
9
- exports.ExceptionTestModule = ExceptionTestModule;
10
- exports.ExceptionTestModule = ExceptionTestModule = tslib_1.__decorate([
11
- (0, common_1.Module)({ controllers: [controllers_1.ExceptionController] })
6
+ ExceptionTestModule = __decorate([
7
+ Module({ controllers: [ExceptionController] })
12
8
  ], ExceptionTestModule);
9
+ export { ExceptionTestModule };
13
10
  //# sourceMappingURL=exception.test.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exception.test.module.js","sourceRoot":"","sources":["../../../src/tests/exception/exception.test.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AAExC,+CAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,eAAM,EAAC,EAAE,WAAW,EAAE,CAAC,iCAAmB,CAAC,EAAE,CAAC;GAClC,mBAAmB,CAAG"}
1
+ {"version":3,"file":"exception.test.module.js","sourceRoot":"","sources":["../../../src/tests/exception/exception.test.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGtD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,mBAAmB;IAD/B,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC;GAClC,mBAAmB,CAAG"}
@@ -1,3 +1,3 @@
1
- export * from './mock-not-found.exception';
2
- export * from './mock-conflict.exception';
1
+ export * from './mock-not-found.exception.js';
2
+ export * from './mock-conflict.exception.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./mock-not-found.exception"), exports);
5
- tslib_1.__exportStar(require("./mock-conflict.exception"), exports);
1
+ export * from './mock-not-found.exception.js';
2
+ export * from './mock-conflict.exception.js';
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/index.ts"],"names":[],"mappings":";;;AAAA,qEAA2C;AAC3C,oEAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC"}
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MockConflictException = void 0;
4
- const exception_1 = require("@hg-ts/exception");
5
- class MockConflictException extends exception_1.BaseException {
1
+ import { BaseException } from '@hg-ts/exception';
2
+ export class MockConflictException extends BaseException {
6
3
  constructor() {
7
4
  super('Test conflict');
8
5
  }
9
6
  }
10
- exports.MockConflictException = MockConflictException;
11
7
  //# sourceMappingURL=mock-conflict.exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mock-conflict.exception.js","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/mock-conflict.exception.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAEjD,MAAa,qBAAsB,SAAQ,yBAAa;IACvD;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;IACxB,CAAC;CACD;AAJD,sDAIC"}
1
+ {"version":3,"file":"mock-conflict.exception.js","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/mock-conflict.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,OAAO,qBAAsB,SAAQ,aAAa;IACvD;QACC,KAAK,CAAC,eAAe,CAAC,CAAC;IACxB,CAAC;CACD"}
@@ -1,11 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MockNotFoundException = void 0;
4
- const exception_1 = require("@hg-ts/exception");
5
- class MockNotFoundException extends exception_1.BaseException {
1
+ import { BaseException } from '@hg-ts/exception';
2
+ export class MockNotFoundException extends BaseException {
6
3
  constructor() {
7
4
  super('Test not found');
8
5
  }
9
6
  }
10
- exports.MockNotFoundException = MockNotFoundException;
11
7
  //# sourceMappingURL=mock-not-found.exception.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mock-not-found.exception.js","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/mock-not-found.exception.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AAEjD,MAAa,qBAAsB,SAAQ,yBAAa;IACvD;QACC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACzB,CAAC;CACD;AAJD,sDAIC"}
1
+ {"version":3,"file":"mock-not-found.exception.js","sourceRoot":"","sources":["../../../../src/tests/exception/exceptions/mock-not-found.exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,OAAO,qBAAsB,SAAQ,aAAa;IACvD;QACC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACzB,CAAC;CACD"}
@@ -1,88 +1,85 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmptyResponseController = void 0;
4
- const tslib_1 = require("tslib");
5
- const tests_1 = require("@hg-ts/tests");
6
- const common_1 = require("@nestjs/common");
7
- const swagger_1 = require("@nestjs/swagger");
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { expect } from '@hg-ts/tests';
3
+ import { All, Controller, Delete, Get, Options, Patch, Post, Put, Search, } from '@nestjs/common';
4
+ import { ApiTags } from '@nestjs/swagger';
8
5
  let EmptyResponseController = class EmptyResponseController {
9
6
  async getEmptyReturn() {
10
- (0, tests_1.expect)(true).toBe(true);
7
+ expect(true).toBe(true);
11
8
  }
12
9
  async postEmptyReturn() {
13
- (0, tests_1.expect)(true).toBe(true);
10
+ expect(true).toBe(true);
14
11
  }
15
12
  async putEmptyReturn() {
16
- (0, tests_1.expect)(true).toBe(true);
13
+ expect(true).toBe(true);
17
14
  }
18
15
  async patchEmptyReturn() {
19
- (0, tests_1.expect)(true).toBe(true);
16
+ expect(true).toBe(true);
20
17
  }
21
18
  async optionsEmptyReturn() {
22
- (0, tests_1.expect)(true).toBe(true);
19
+ expect(true).toBe(true);
23
20
  }
24
21
  async deleteEmptyReturn() {
25
- (0, tests_1.expect)(true).toBe(true);
22
+ expect(true).toBe(true);
26
23
  }
27
24
  async searchEmptyReturn() {
28
- (0, tests_1.expect)(true).toBe(true);
25
+ expect(true).toBe(true);
29
26
  }
30
27
  async allEmptyReturn() {
31
- (0, tests_1.expect)(true).toBe(true);
28
+ expect(true).toBe(true);
32
29
  }
33
30
  };
34
- exports.EmptyResponseController = EmptyResponseController;
35
- tslib_1.__decorate([
36
- (0, common_1.Get)(),
37
- tslib_1.__metadata("design:type", Function),
38
- tslib_1.__metadata("design:paramtypes", []),
39
- tslib_1.__metadata("design:returntype", Promise)
31
+ __decorate([
32
+ Get(),
33
+ __metadata("design:type", Function),
34
+ __metadata("design:paramtypes", []),
35
+ __metadata("design:returntype", Promise)
40
36
  ], EmptyResponseController.prototype, "getEmptyReturn", null);
41
- tslib_1.__decorate([
42
- (0, common_1.Post)(),
43
- tslib_1.__metadata("design:type", Function),
44
- tslib_1.__metadata("design:paramtypes", []),
45
- tslib_1.__metadata("design:returntype", Promise)
37
+ __decorate([
38
+ Post(),
39
+ __metadata("design:type", Function),
40
+ __metadata("design:paramtypes", []),
41
+ __metadata("design:returntype", Promise)
46
42
  ], EmptyResponseController.prototype, "postEmptyReturn", null);
47
- tslib_1.__decorate([
48
- (0, common_1.Put)(),
49
- tslib_1.__metadata("design:type", Function),
50
- tslib_1.__metadata("design:paramtypes", []),
51
- tslib_1.__metadata("design:returntype", Promise)
43
+ __decorate([
44
+ Put(),
45
+ __metadata("design:type", Function),
46
+ __metadata("design:paramtypes", []),
47
+ __metadata("design:returntype", Promise)
52
48
  ], EmptyResponseController.prototype, "putEmptyReturn", null);
53
- tslib_1.__decorate([
54
- (0, common_1.Patch)(),
55
- tslib_1.__metadata("design:type", Function),
56
- tslib_1.__metadata("design:paramtypes", []),
57
- tslib_1.__metadata("design:returntype", Promise)
49
+ __decorate([
50
+ Patch(),
51
+ __metadata("design:type", Function),
52
+ __metadata("design:paramtypes", []),
53
+ __metadata("design:returntype", Promise)
58
54
  ], EmptyResponseController.prototype, "patchEmptyReturn", null);
59
- tslib_1.__decorate([
60
- (0, common_1.Options)(),
61
- tslib_1.__metadata("design:type", Function),
62
- tslib_1.__metadata("design:paramtypes", []),
63
- tslib_1.__metadata("design:returntype", Promise)
55
+ __decorate([
56
+ Options(),
57
+ __metadata("design:type", Function),
58
+ __metadata("design:paramtypes", []),
59
+ __metadata("design:returntype", Promise)
64
60
  ], EmptyResponseController.prototype, "optionsEmptyReturn", null);
65
- tslib_1.__decorate([
66
- (0, common_1.Delete)(),
67
- tslib_1.__metadata("design:type", Function),
68
- tslib_1.__metadata("design:paramtypes", []),
69
- tslib_1.__metadata("design:returntype", Promise)
61
+ __decorate([
62
+ Delete(),
63
+ __metadata("design:type", Function),
64
+ __metadata("design:paramtypes", []),
65
+ __metadata("design:returntype", Promise)
70
66
  ], EmptyResponseController.prototype, "deleteEmptyReturn", null);
71
- tslib_1.__decorate([
72
- (0, common_1.Search)(),
73
- tslib_1.__metadata("design:type", Function),
74
- tslib_1.__metadata("design:paramtypes", []),
75
- tslib_1.__metadata("design:returntype", Promise)
67
+ __decorate([
68
+ Search(),
69
+ __metadata("design:type", Function),
70
+ __metadata("design:paramtypes", []),
71
+ __metadata("design:returntype", Promise)
76
72
  ], EmptyResponseController.prototype, "searchEmptyReturn", null);
77
- tslib_1.__decorate([
78
- (0, swagger_1.ApiTags)('Empty Response All'),
79
- (0, common_1.All)('/all'),
80
- tslib_1.__metadata("design:type", Function),
81
- tslib_1.__metadata("design:paramtypes", []),
82
- tslib_1.__metadata("design:returntype", Promise)
73
+ __decorate([
74
+ ApiTags('Empty Response All'),
75
+ All('/all'),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", []),
78
+ __metadata("design:returntype", Promise)
83
79
  ], EmptyResponseController.prototype, "allEmptyReturn", null);
84
- exports.EmptyResponseController = EmptyResponseController = tslib_1.__decorate([
85
- (0, swagger_1.ApiTags)('Empty Response'),
86
- (0, common_1.Controller)('/empty-response')
80
+ EmptyResponseController = __decorate([
81
+ ApiTags('Empty Response'),
82
+ Controller('/empty-response')
87
83
  ], EmptyResponseController);
84
+ export { EmptyResponseController };
88
85
  //# sourceMappingURL=empty-response.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"empty-response.controller.js","sourceRoot":"","sources":["../../../../src/tests/http-methods/controllers/empty-response.controller.ts"],"names":[],"mappings":";;;;AA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AO,GAAE;;;;iEAGT;AAGY;IADZ,IAAA,eAAM,GAAE;;;;gEAGR;AAGY;IADZ,IAAA,eAAM,GAAE;;;;gEAGR;AAIY;IAFZ,IAAA,iBAAO,EAAC,oBAAoB,CAAC;IAC7B,IAAA,YAAG,EAAC,MAAM,CAAC;;;;6DAGX;kCAxCW,uBAAuB;IAFnC,IAAA,iBAAO,EAAC,gBAAgB,CAAC;IACzB,IAAA,mBAAU,EAAC,iBAAiB,CAAC;GACjB,uBAAuB,CAyCnC"}
1
+ {"version":3,"file":"empty-response.controller.js","sourceRoot":"","sources":["../../../../src/tests/http-methods/controllers/empty-response.controller.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EACN,GAAG,EACH,UAAU,EACV,MAAM,EACN,GAAG,EACH,OAAO,EACP,KAAK,EACL,IAAI,EACJ,GAAG,EACH,MAAM,GACN,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAInC,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAEtB,AAAN,KAAK,CAAC,cAAc;QAC1B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAGY,AAAN,KAAK,CAAC,eAAe;QAC3B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAGY,AAAN,KAAK,CAAC,cAAc;QAC1B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAGY,AAAN,KAAK,CAAC,gBAAgB;QAC5B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAGY,AAAN,KAAK,CAAC,kBAAkB;QAC9B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAGY,AAAN,KAAK,CAAC,iBAAiB;QAC7B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAGY,AAAN,KAAK,CAAC,iBAAiB;QAC7B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAIY,AAAN,KAAK,CAAC,cAAc;QAC1B,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACD,CAAA;AAvCa;IADZ,GAAG,EAAE;;;;6DAGL;AAGY;IADZ,IAAI,EAAE;;;;8DAGN;AAGY;IADZ,GAAG,EAAE;;;;6DAGL;AAGY;IADZ,KAAK,EAAE;;;;+DAGP;AAGY;IADZ,OAAO,EAAE;;;;iEAGT;AAGY;IADZ,MAAM,EAAE;;;;gEAGR;AAGY;IADZ,MAAM,EAAE;;;;gEAGR;AAIY;IAFZ,OAAO,CAAC,oBAAoB,CAAC;IAC7B,GAAG,CAAC,MAAM,CAAC;;;;6DAGX;AAxCW,uBAAuB;IAFnC,OAAO,CAAC,gBAAgB,CAAC;IACzB,UAAU,CAAC,iBAAiB,CAAC;GACjB,uBAAuB,CAyCnC"}
@@ -1,2 +1,2 @@
1
- export * from './empty-response.controller';
1
+ export * from './empty-response.controller.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tests/http-methods/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tests/http-methods/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -1,5 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./empty-response.controller"), exports);
1
+ export * from './empty-response.controller.js';
5
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/http-methods/controllers/index.ts"],"names":[],"mappings":";;;AAAA,sEAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tests/http-methods/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { BaseControllerSuite } from '../abstracts';
1
+ import { BaseControllerSuite } from '../abstracts/index.js';
2
2
  export declare class HttpMethodsTest extends BaseControllerSuite {
3
3
  constructor();
4
4
  emptyGetTest(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"http-methods.test.d.ts","sourceRoot":"","sources":["../../../src/tests/http-methods/http-methods.test.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAGnD,qBACa,eAAgB,SAAQ,mBAAmB;;IAM1C,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAK7B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAK9B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAK7B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAK/B,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAKhC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAKhC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAQvB,OAAO,IAAI,MAAM;YAItB,qBAAqB;CASnC"}
1
+ {"version":3,"file":"http-methods.test.d.ts","sourceRoot":"","sources":["../../../src/tests/http-methods/http-methods.test.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,qBACa,eAAgB,SAAQ,mBAAmB;;IAM1C,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAK7B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAK9B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAK7B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAK/B,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAKhC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAKhC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;cAQvB,OAAO,IAAI,MAAM;YAItB,qBAAqB;CASnC"}
@@ -1,40 +1,37 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpMethodsTest = void 0;
4
- const tslib_1 = require("tslib");
5
- const tests_1 = require("@hg-ts/tests");
6
- const types_1 = require("../../types");
7
- const abstracts_1 = require("../abstracts");
8
- const http_methods_test_module_1 = require("./http-methods.test.module");
9
- let HttpMethodsTest = class HttpMethodsTest extends abstracts_1.BaseControllerSuite {
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Describe, expect, Test, } from '@hg-ts/tests';
3
+ import { HttpMethod } from '../../types.js';
4
+ import { BaseControllerSuite } from '../abstracts/index.js';
5
+ import { HttpMethodsTestModule } from './http-methods.test.module.js';
6
+ let HttpMethodsTest = class HttpMethodsTest extends BaseControllerSuite {
10
7
  constructor() {
11
- super(http_methods_test_module_1.HttpMethodsTestModule);
8
+ super(HttpMethodsTestModule);
12
9
  }
13
10
  async emptyGetTest() {
14
- await this.testEmptyResponseTest(types_1.HttpMethod.GET);
11
+ await this.testEmptyResponseTest(HttpMethod.GET);
15
12
  }
16
13
  async emptyPostTest() {
17
- await this.testEmptyResponseTest(types_1.HttpMethod.POST);
14
+ await this.testEmptyResponseTest(HttpMethod.POST);
18
15
  }
19
16
  async emptyPutTest() {
20
- await this.testEmptyResponseTest(types_1.HttpMethod.PUT);
17
+ await this.testEmptyResponseTest(HttpMethod.PUT);
21
18
  }
22
19
  async emptyPatchTest() {
23
- await this.testEmptyResponseTest(types_1.HttpMethod.PATCH);
20
+ await this.testEmptyResponseTest(HttpMethod.PATCH);
24
21
  }
25
22
  async emptyDeleteTest() {
26
- await this.testEmptyResponseTest(types_1.HttpMethod.DELETE);
23
+ await this.testEmptyResponseTest(HttpMethod.DELETE);
27
24
  }
28
25
  async emptyOptionsTest() {
29
- await this.testEmptyResponseTest(types_1.HttpMethod.OPTIONS);
26
+ await this.testEmptyResponseTest(HttpMethod.OPTIONS);
30
27
  }
31
28
  async emptySearchTest() {
32
- await this.testEmptyResponseTest(types_1.HttpMethod.SEARCH);
29
+ await this.testEmptyResponseTest(HttpMethod.SEARCH);
33
30
  }
34
31
  async emptyAllTest() {
35
- const methods = Object.values(types_1.HttpMethod);
32
+ const methods = Object.values(HttpMethod);
36
33
  await Promise.all(methods.map(async (method) => this.testEmptyResponseTest(method, '/all')));
37
- tests_1.expect.assertions(methods.length * 2);
34
+ expect.assertions(methods.length * 2);
38
35
  }
39
36
  getPort() {
40
37
  return 50002;
@@ -44,61 +41,61 @@ let HttpMethodsTest = class HttpMethodsTest extends abstracts_1.BaseControllerSu
44
41
  method,
45
42
  url: `/empty-response${suffixPath}`,
46
43
  });
47
- (0, tests_1.expect)(response.data).toBe('');
48
- tests_1.expect.assertions(2);
44
+ expect(response.data).toBe('');
45
+ expect.assertions(2);
49
46
  }
50
47
  };
51
- exports.HttpMethodsTest = HttpMethodsTest;
52
- tslib_1.__decorate([
53
- (0, tests_1.Test)(),
54
- tslib_1.__metadata("design:type", Function),
55
- tslib_1.__metadata("design:paramtypes", []),
56
- tslib_1.__metadata("design:returntype", Promise)
48
+ __decorate([
49
+ Test(),
50
+ __metadata("design:type", Function),
51
+ __metadata("design:paramtypes", []),
52
+ __metadata("design:returntype", Promise)
57
53
  ], HttpMethodsTest.prototype, "emptyGetTest", null);
58
- tslib_1.__decorate([
59
- (0, tests_1.Test)(),
60
- tslib_1.__metadata("design:type", Function),
61
- tslib_1.__metadata("design:paramtypes", []),
62
- tslib_1.__metadata("design:returntype", Promise)
54
+ __decorate([
55
+ Test(),
56
+ __metadata("design:type", Function),
57
+ __metadata("design:paramtypes", []),
58
+ __metadata("design:returntype", Promise)
63
59
  ], HttpMethodsTest.prototype, "emptyPostTest", null);
64
- tslib_1.__decorate([
65
- (0, tests_1.Test)(),
66
- tslib_1.__metadata("design:type", Function),
67
- tslib_1.__metadata("design:paramtypes", []),
68
- tslib_1.__metadata("design:returntype", Promise)
60
+ __decorate([
61
+ Test(),
62
+ __metadata("design:type", Function),
63
+ __metadata("design:paramtypes", []),
64
+ __metadata("design:returntype", Promise)
69
65
  ], HttpMethodsTest.prototype, "emptyPutTest", null);
70
- tslib_1.__decorate([
71
- (0, tests_1.Test)(),
72
- tslib_1.__metadata("design:type", Function),
73
- tslib_1.__metadata("design:paramtypes", []),
74
- tslib_1.__metadata("design:returntype", Promise)
66
+ __decorate([
67
+ Test(),
68
+ __metadata("design:type", Function),
69
+ __metadata("design:paramtypes", []),
70
+ __metadata("design:returntype", Promise)
75
71
  ], HttpMethodsTest.prototype, "emptyPatchTest", null);
76
- tslib_1.__decorate([
77
- (0, tests_1.Test)(),
78
- tslib_1.__metadata("design:type", Function),
79
- tslib_1.__metadata("design:paramtypes", []),
80
- tslib_1.__metadata("design:returntype", Promise)
72
+ __decorate([
73
+ Test(),
74
+ __metadata("design:type", Function),
75
+ __metadata("design:paramtypes", []),
76
+ __metadata("design:returntype", Promise)
81
77
  ], HttpMethodsTest.prototype, "emptyDeleteTest", null);
82
- tslib_1.__decorate([
83
- (0, tests_1.Test)(),
84
- tslib_1.__metadata("design:type", Function),
85
- tslib_1.__metadata("design:paramtypes", []),
86
- tslib_1.__metadata("design:returntype", Promise)
78
+ __decorate([
79
+ Test(),
80
+ __metadata("design:type", Function),
81
+ __metadata("design:paramtypes", []),
82
+ __metadata("design:returntype", Promise)
87
83
  ], HttpMethodsTest.prototype, "emptyOptionsTest", null);
88
- tslib_1.__decorate([
89
- (0, tests_1.Test)(),
90
- tslib_1.__metadata("design:type", Function),
91
- tslib_1.__metadata("design:paramtypes", []),
92
- tslib_1.__metadata("design:returntype", Promise)
84
+ __decorate([
85
+ Test(),
86
+ __metadata("design:type", Function),
87
+ __metadata("design:paramtypes", []),
88
+ __metadata("design:returntype", Promise)
93
89
  ], HttpMethodsTest.prototype, "emptySearchTest", null);
94
- tslib_1.__decorate([
95
- (0, tests_1.Test)(),
96
- tslib_1.__metadata("design:type", Function),
97
- tslib_1.__metadata("design:paramtypes", []),
98
- tslib_1.__metadata("design:returntype", Promise)
90
+ __decorate([
91
+ Test(),
92
+ __metadata("design:type", Function),
93
+ __metadata("design:paramtypes", []),
94
+ __metadata("design:returntype", Promise)
99
95
  ], HttpMethodsTest.prototype, "emptyAllTest", null);
100
- exports.HttpMethodsTest = HttpMethodsTest = tslib_1.__decorate([
101
- (0, tests_1.Describe)(),
102
- tslib_1.__metadata("design:paramtypes", [])
96
+ HttpMethodsTest = __decorate([
97
+ Describe(),
98
+ __metadata("design:paramtypes", [])
103
99
  ], HttpMethodsTest);
100
+ export { HttpMethodsTest };
104
101
  //# sourceMappingURL=http-methods.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http-methods.test.js","sourceRoot":"","sources":["../../../src/tests/http-methods/http-methods.test.ts"],"names":[],"mappings":";;;;AAAA,wCAIsB;AAEtB,uCAAyC;AAEzC,4CAAmD;AACnD,yEAAmE;AAG5D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAAmB;IACvD;QACC,KAAK,CAAC,gDAAqB,CAAC,CAAC;IAC9B,CAAC;IAGY,AAAN,KAAK,CAAC,YAAY;QACxB,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAU,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAGY,AAAN,KAAK,CAAC,aAAa;QACzB,MAAM,IAAI,CAAC,qBAAqB,CAAC,kBAAU,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAGY,AAA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;;;;mDAGN;AAGY;IADZ,IAAI,EAAE;;;;oDAGN;AAGY;IADZ,IAAI,EAAE;;;;mDAGN;AAGY;IADZ,IAAI,EAAE;;;;qDAGN;AAGY;IADZ,IAAI,EAAE;;;;sDAGN;AAGY;IADZ,IAAI,EAAE;;;;uDAGN;AAGY;IADZ,IAAI,EAAE;;;;sDAGN;AAGY;IADZ,IAAI,EAAE;;;;mDAON;AA/CW,eAAe;IAD3B,QAAQ,EAAE;;GACE,eAAe,CA8D3B"}
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpMethodsTestModule = void 0;
4
- const tslib_1 = require("tslib");
5
- const common_1 = require("@nestjs/common");
6
- const controllers_1 = require("./controllers");
1
+ import { __decorate } from "tslib";
2
+ import { Module } from '@nestjs/common';
3
+ import { EmptyResponseController } from './controllers/index.js';
7
4
  let HttpMethodsTestModule = class HttpMethodsTestModule {
8
5
  };
9
- exports.HttpMethodsTestModule = HttpMethodsTestModule;
10
- exports.HttpMethodsTestModule = HttpMethodsTestModule = tslib_1.__decorate([
11
- (0, common_1.Module)({ controllers: [controllers_1.EmptyResponseController] })
6
+ HttpMethodsTestModule = __decorate([
7
+ Module({ controllers: [EmptyResponseController] })
12
8
  ], HttpMethodsTestModule);
9
+ export { HttpMethodsTestModule };
13
10
  //# sourceMappingURL=http-methods.test.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http-methods.test.module.js","sourceRoot":"","sources":["../../../src/tests/http-methods/http-methods.test.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AAExC,+CAAwD;AAGjD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,eAAM,EAAC,EAAE,WAAW,EAAE,CAAC,qCAAuB,CAAC,EAAE,CAAC;GACtC,qBAAqB,CAAG"}
1
+ {"version":3,"file":"http-methods.test.module.js","sourceRoot":"","sources":["../../../src/tests/http-methods/http-methods.test.module.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAG1D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,qBAAqB;IADjC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,uBAAuB,CAAC,EAAE,CAAC;GACtC,qBAAqB,CAAG"}
package/dist/types.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpMethod = void 0;
4
- var HttpMethod;
1
+ export var HttpMethod;
5
2
  (function (HttpMethod) {
6
3
  HttpMethod["GET"] = "GET";
7
4
  HttpMethod["POST"] = "POST";
@@ -10,5 +7,5 @@ var HttpMethod;
10
7
  HttpMethod["DELETE"] = "DELETE";
11
8
  HttpMethod["OPTIONS"] = "OPTIONS";
12
9
  HttpMethod["SEARCH"] = "SEARCH";
13
- })(HttpMethod || (exports.HttpMethod = HttpMethod = {}));
10
+ })(HttpMethod || (HttpMethod = {}));
14
11
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AAClB,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,yBAAW,CAAA;IACX,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AAClB,CAAC,EARW,UAAU,KAAV,UAAU,QAQrB"}