@expressots/core 1.5.0-dev → 1.5.0
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/lib/CHANGELOG.md +7 -0
- package/lib/cjs/types/controller/base-controller.d.ts +2 -2
- package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
- package/lib/esm/types/controller/base-controller.d.ts +2 -2
- package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [1.5.0](https://github.com/expressots/expressots/compare/1.5.0-dev...1.5.0) (2023-07-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add render engine for handlebars ([1257fe0](https://github.com/expressots/expressots/commit/1257fe08ec0bf9096af1927caddf6fa2a8d481e8))
|
|
9
|
+
|
|
3
10
|
## [1.5.0](https://github.com/expressots/expressots/compare/v1.4.2...v1.5.0) (2023-07-11)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -18,14 +18,14 @@ declare abstract class BaseController implements interfaces.Controller {
|
|
|
18
18
|
* @param res - The Express response object.
|
|
19
19
|
* @param successStatusCode - The HTTP status code to return upon successful execution.
|
|
20
20
|
*/
|
|
21
|
-
protected callUseCaseAsync(useCase: Promise<any>, res:
|
|
21
|
+
protected callUseCaseAsync(useCase: Promise<any>, res: any, successStatusCode: number): Promise<any>;
|
|
22
22
|
/**
|
|
23
23
|
* Calls a use case and sends an appropriate response based on the result.
|
|
24
24
|
* @param useCase - The use case to call.
|
|
25
25
|
* @param res - The Express response object.
|
|
26
26
|
* @param successStatusCode - The HTTP status code to return upon successful execution.
|
|
27
27
|
*/
|
|
28
|
-
protected callUseCase(useCase: any, res:
|
|
28
|
+
protected callUseCase(useCase: any, res: any, successStatusCode: number): any;
|
|
29
29
|
/**
|
|
30
30
|
* Synchronously renders a template with the given options using the Express `Response` object's render method.
|
|
31
31
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;GAIG;AACH,uBACe,cAAe,YAAW,UAAU,CAAC,UAAU;IAE1D,OAAO,CAAC,WAAW,CAAS;IAE5B;;;OAGG;gBACS,WAAW,GAAE,MAAW;IAIpC;;;;;OAKG;cACa,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;GAIG;AACH,uBACe,cAAe,YAAW,UAAU,CAAC,UAAU;IAE1D,OAAO,CAAC,WAAW,CAAS;IAE5B;;;OAGG;gBACS,WAAW,GAAE,MAAW;IAIpC;;;;;OAKG;cACa,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM;IAI3F;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM;IAItE;;;;;;;;;;MAUE;IACH,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,KAAK,GAAG,IAAI;IAI5E;;;;;;;;;;OAUG;IACH,SAAS,CAAC,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CAW/F;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -18,14 +18,14 @@ declare abstract class BaseController implements interfaces.Controller {
|
|
|
18
18
|
* @param res - The Express response object.
|
|
19
19
|
* @param successStatusCode - The HTTP status code to return upon successful execution.
|
|
20
20
|
*/
|
|
21
|
-
protected callUseCaseAsync(useCase: Promise<any>, res:
|
|
21
|
+
protected callUseCaseAsync(useCase: Promise<any>, res: any, successStatusCode: number): Promise<any>;
|
|
22
22
|
/**
|
|
23
23
|
* Calls a use case and sends an appropriate response based on the result.
|
|
24
24
|
* @param useCase - The use case to call.
|
|
25
25
|
* @param res - The Express response object.
|
|
26
26
|
* @param successStatusCode - The HTTP status code to return upon successful execution.
|
|
27
27
|
*/
|
|
28
|
-
protected callUseCase(useCase: any, res:
|
|
28
|
+
protected callUseCase(useCase: any, res: any, successStatusCode: number): any;
|
|
29
29
|
/**
|
|
30
30
|
* Synchronously renders a template with the given options using the Express `Response` object's render method.
|
|
31
31
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;GAIG;AACH,uBACe,cAAe,YAAW,UAAU,CAAC,UAAU;IAE1D,OAAO,CAAC,WAAW,CAAS;IAE5B;;;OAGG;gBACS,WAAW,GAAE,MAAW;IAIpC;;;;;OAKG;cACa,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD;;;;GAIG;AACH,uBACe,cAAe,YAAW,UAAU,CAAC,UAAU;IAE1D,OAAO,CAAC,WAAW,CAAS;IAE5B;;;OAGG;gBACS,WAAW,GAAE,MAAW;IAIpC;;;;;OAKG;cACa,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM;IAI3F;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM;IAItE;;;;;;;;;;MAUE;IACH,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,KAAK,GAAG,IAAI;IAI5E;;;;;;;;;;OAUG;IACH,SAAS,CAAC,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CAW/F;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/lib/package.json
CHANGED