@expressots/core 1.4.1 → 1.5.0-dev
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/LICENSE.md +21 -21
- package/README.md +61 -61
- package/lib/CHANGELOG.md +204 -167
- package/lib/README.md +61 -61
- package/lib/cjs/application/application.js +21 -2
- package/lib/cjs/controller/base-controller.js +39 -17
- package/lib/cjs/error/report.js +13 -3
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/render/handlebars.interface.js +2 -0
- package/lib/cjs/render/index.js +2 -0
- package/lib/cjs/render/render.type.js +2 -0
- package/lib/cjs/types/application/application.d.ts +13 -0
- package/lib/cjs/types/application/application.d.ts.map +1 -1
- package/lib/cjs/types/controller/base-controller.d.ts +27 -2
- package/lib/cjs/types/controller/base-controller.d.ts.map +1 -1
- package/lib/cjs/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/cjs/types/error/report.d.ts +13 -3
- package/lib/cjs/types/error/report.d.ts.map +1 -1
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/render/handlebars.interface.d.ts +47 -0
- package/lib/cjs/types/render/handlebars.interface.d.ts.map +1 -0
- package/lib/cjs/types/render/index.d.ts +3 -0
- package/lib/cjs/types/render/index.d.ts.map +1 -0
- package/lib/cjs/types/render/render.type.d.ts +13 -0
- package/lib/cjs/types/render/render.type.d.ts.map +1 -0
- package/lib/esm/application/application.js +21 -2
- package/lib/esm/controller/base-controller.js +39 -17
- package/lib/esm/error/report.js +13 -3
- package/lib/esm/index.mjs +1 -0
- package/lib/esm/render/handlebars.interface.js +1 -0
- package/lib/esm/render/index.js +1 -0
- package/lib/esm/render/render.type.js +1 -0
- package/lib/esm/types/application/application.d.ts +13 -0
- package/lib/esm/types/application/application.d.ts.map +1 -1
- package/lib/esm/types/controller/base-controller.d.ts +27 -2
- package/lib/esm/types/controller/base-controller.d.ts.map +1 -1
- package/lib/esm/types/error/error-handler-middleware.d.ts.map +1 -1
- package/lib/esm/types/error/report.d.ts +13 -3
- package/lib/esm/types/error/report.d.ts.map +1 -1
- package/lib/esm/types/index.d.ts +1 -0
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/render/handlebars.interface.d.ts +47 -0
- package/lib/esm/types/render/handlebars.interface.d.ts.map +1 -0
- package/lib/esm/types/render/index.d.ts +3 -0
- package/lib/esm/types/render/index.d.ts.map +1 -0
- package/lib/esm/types/render/render.type.d.ts +13 -0
- package/lib/esm/types/render/render.type.d.ts.map +1 -0
- package/lib/package.json +2 -2
- package/package.json +2 -2
package/lib/esm/error/report.js
CHANGED
|
@@ -8,13 +8,23 @@ var Report_1;
|
|
|
8
8
|
import { provide } from "inversify-binding-decorators";
|
|
9
9
|
import { LogLevel, log } from '../logger';
|
|
10
10
|
/**
|
|
11
|
-
* Report class is a utility class to manage and
|
|
11
|
+
* Report class is a utility class to manage and log errors within the application.
|
|
12
|
+
* It is responsible for creating a standardized error object, logging it,
|
|
13
|
+
* and then throwing the error for further handling.
|
|
12
14
|
*/
|
|
13
15
|
let Report = Report_1 = class Report {
|
|
14
16
|
static stack;
|
|
15
17
|
/**
|
|
16
|
-
* Error method
|
|
17
|
-
*
|
|
18
|
+
* The Error method is responsible for generating a standardized error object,
|
|
19
|
+
* logging the error, and then throwing it for further handling.
|
|
20
|
+
* The error thrown is of the custom type IAppError, which extends the built-in Error class.
|
|
21
|
+
*
|
|
22
|
+
* @param error - An instance of Error or a string that describes the error.
|
|
23
|
+
* @param statusCode - The HTTP status code associated with the error (default is 500).
|
|
24
|
+
* @param service - The service name associated with the error. If not specified,
|
|
25
|
+
* it defaults to the name of the calling function.
|
|
26
|
+
*
|
|
27
|
+
* @throws An object of the custom type IAppError, which includes details about the error.
|
|
18
28
|
*/
|
|
19
29
|
static Error(error, statusCode, service) {
|
|
20
30
|
let appError = {};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import { Container } from "inversify";
|
|
3
3
|
import { IApplicationMessageToConsole } from "../console/console";
|
|
4
|
+
import { RenderTemplateOptions } from "../render";
|
|
4
5
|
/**
|
|
5
6
|
* Enum representing possible server environments.
|
|
6
7
|
*/
|
|
@@ -47,6 +48,18 @@ declare class Application {
|
|
|
47
48
|
* @param consoleMessage - Optional message to display in the console.
|
|
48
49
|
*/
|
|
49
50
|
listen(port: number, environment: ServerEnvironment, consoleMessage?: IApplicationMessageToConsole): void;
|
|
51
|
+
/**
|
|
52
|
+
* Configures the application's view engine based on the provided configuration options.
|
|
53
|
+
*
|
|
54
|
+
* @public
|
|
55
|
+
* @method setEngine
|
|
56
|
+
* @template T - A generic type extending from RenderTemplateOptions.
|
|
57
|
+
*
|
|
58
|
+
* @param {T} options - An object of type T (must be an object that extends RenderTemplateOptions)
|
|
59
|
+
* that provides the configuration options for setting the view engine.
|
|
60
|
+
* This includes the extension name, view path, and the engine function itself.
|
|
61
|
+
*/
|
|
62
|
+
setEngine<T extends RenderTemplateOptions>(options: T): void;
|
|
50
63
|
}
|
|
51
64
|
declare const appServerInstance: Application;
|
|
52
65
|
export { appServerInstance as AppInstance, Application, ServerEnvironment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAG9B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGtC,OAAO,EAAW,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAe,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE/D;;GAEG;AACH,aAAK,iBAAiB;IAClB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC5B;AAED;;;GAGG;AACH,cACM,WAAW;IAEb,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,WAAW,CAAoB;IAEvC;;OAEG;;IAGH;;OAEG;IACH,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAEnC;;OAEG;IACH,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAE1C;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,IAAI;IAIhC;;;;;OAKG;IACI,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,GAAE,OAAO,CAAC,cAAc,EAAO,GAAG,WAAW;IAoC5F;;;;;OAKG;IACI,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,CAAC,EAAE,4BAA4B,GAAG,IAAI;IAchH;;;;;;;;;;OAUG;IACI,SAAS,CAAC,CAAC,SAAS,qBAAqB,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI;CAQtE;AAED,QAAA,MAAM,iBAAiB,EAAE,WAA+B,CAAC;AAEzD,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Response } from 'express';
|
|
1
2
|
import { interfaces } from 'inversify-express-utils';
|
|
2
3
|
/**
|
|
3
4
|
* The BaseController class is an abstract base class for controllers.
|
|
@@ -17,14 +18,38 @@ declare abstract class BaseController implements interfaces.Controller {
|
|
|
17
18
|
* @param res - The Express response object.
|
|
18
19
|
* @param successStatusCode - The HTTP status code to return upon successful execution.
|
|
19
20
|
*/
|
|
20
|
-
protected callUseCaseAsync(useCase: Promise<any>, res:
|
|
21
|
+
protected callUseCaseAsync(useCase: Promise<any>, res: Response, successStatusCode: number): Promise<Response<any, Record<string, any>>>;
|
|
21
22
|
/**
|
|
22
23
|
* Calls a use case and sends an appropriate response based on the result.
|
|
23
24
|
* @param useCase - The use case to call.
|
|
24
25
|
* @param res - The Express response object.
|
|
25
26
|
* @param successStatusCode - The HTTP status code to return upon successful execution.
|
|
26
27
|
*/
|
|
27
|
-
protected callUseCase(useCase: any, res:
|
|
28
|
+
protected callUseCase(useCase: any, res: Response, successStatusCode: number): Response<any, Record<string, any>>;
|
|
29
|
+
/**
|
|
30
|
+
* Synchronously renders a template with the given options using the Express `Response` object's render method.
|
|
31
|
+
*
|
|
32
|
+
* @protected
|
|
33
|
+
* @method callUseRender
|
|
34
|
+
*
|
|
35
|
+
* @param {Response} res - The Express `Response` object.
|
|
36
|
+
* @param {string} template - The name of the template to render.
|
|
37
|
+
* @param {Object} [options={}] - An optional object containing data to be passed to the template.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
protected callUseRender(res: Response, template: string, options?: {}): void;
|
|
41
|
+
/**
|
|
42
|
+
* Asynchronously renders a template with the given options using the Express `Response` object's render method.
|
|
43
|
+
*
|
|
44
|
+
* @protected
|
|
45
|
+
* @method callUseRenderAsync
|
|
46
|
+
*
|
|
47
|
+
* @param {Response} res - The Express `Response` object.
|
|
48
|
+
* @param {string} template - The name of the template to render.
|
|
49
|
+
* @param {Object} [options={}] - An optional object containing data to be passed to the template.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
protected callUseRenderAsync(res: Response, template: string, options?: {}): Promise<string>;
|
|
28
53
|
}
|
|
29
54
|
export { BaseController };
|
|
30
55
|
//# sourceMappingURL=base-controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-controller.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/controller/base-controller.ts"],"names":[],"mappings":"
|
|
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,QAAQ,EAAE,iBAAiB,EAAE,MAAM;IAIhG;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM;IAI3E;;;;;;;;;;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler-middleware.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/error-handler-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"error-handler-middleware.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/error-handler-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC;;;;;;;GAOG;AACH,iBAAS,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI,CAE7F;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -6,13 +6,23 @@ interface IAppError {
|
|
|
6
6
|
stack?: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Report class is a utility class to manage and
|
|
9
|
+
* Report class is a utility class to manage and log errors within the application.
|
|
10
|
+
* It is responsible for creating a standardized error object, logging it,
|
|
11
|
+
* and then throwing the error for further handling.
|
|
10
12
|
*/
|
|
11
13
|
declare class Report {
|
|
12
14
|
static stack: string;
|
|
13
15
|
/**
|
|
14
|
-
* Error method
|
|
15
|
-
*
|
|
16
|
+
* The Error method is responsible for generating a standardized error object,
|
|
17
|
+
* logging the error, and then throwing it for further handling.
|
|
18
|
+
* The error thrown is of the custom type IAppError, which extends the built-in Error class.
|
|
19
|
+
*
|
|
20
|
+
* @param error - An instance of Error or a string that describes the error.
|
|
21
|
+
* @param statusCode - The HTTP status code associated with the error (default is 500).
|
|
22
|
+
* @param service - The service name associated with the error. If not specified,
|
|
23
|
+
* it defaults to the name of the calling function.
|
|
24
|
+
*
|
|
25
|
+
* @throws An object of the custom type IAppError, which includes details about the error.
|
|
16
26
|
*/
|
|
17
27
|
static Error(error: Error | string, statusCode?: number, service?: string): void;
|
|
18
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/report.ts"],"names":[],"mappings":"AAGA,UAAU,SAAS;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/error/report.ts"],"names":[],"mappings":"AAGA,UAAU,SAAS;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,cACM,MAAM;IACR,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;OAWG;WACW,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;CA6B1F;AAED,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC"}
|
package/lib/esm/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for Express Handlebars.
|
|
3
|
+
* @interface ConfigOptions
|
|
4
|
+
*/
|
|
5
|
+
interface ConfigOptions {
|
|
6
|
+
extname?: string;
|
|
7
|
+
layoutDir?: string;
|
|
8
|
+
defaultLayout?: string | false;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Callback function for rendering templates.
|
|
12
|
+
* @callback RenderCallback
|
|
13
|
+
*
|
|
14
|
+
* @param {Error | null} err - The error object.
|
|
15
|
+
* @param {string} [content] - The rendered content.
|
|
16
|
+
*/
|
|
17
|
+
interface RenderCallback {
|
|
18
|
+
(err: Error | null, content?: string): void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Function for rendering templates.
|
|
22
|
+
* @typedef Engine
|
|
23
|
+
*
|
|
24
|
+
* @param {string} viewPath - The path to the directory containing the templates.
|
|
25
|
+
* @param {ConfigOptions} options - The configuration options for the template engine.
|
|
26
|
+
* @param {RenderCallback} [callback] - The callback function for rendering templates.
|
|
27
|
+
*/
|
|
28
|
+
type Engine = (viewPath: string, options: ConfigOptions, callback?: RenderCallback) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Interface representing the configuration options for Handlebars templates.
|
|
31
|
+
*/
|
|
32
|
+
interface IHandlebars {
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the extension name for the Handlebars templates.
|
|
35
|
+
*/
|
|
36
|
+
extName: string;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the path to the directory containing the Handlebars templates.
|
|
39
|
+
*/
|
|
40
|
+
viewPath: string;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the function for rendering Handlebars templates.
|
|
43
|
+
*/
|
|
44
|
+
engine: Engine;
|
|
45
|
+
}
|
|
46
|
+
export { IHandlebars };
|
|
47
|
+
//# sourceMappingURL=handlebars.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handlebars.interface.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/handlebars.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,UAAU,aAAa;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAClC;AAED;;;;;;GAMG;AACH,UAAU,cAAc;IACpB,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/C;AAED;;;;;;;GAOG;AACH,KAAK,MAAM,GAAG,CACV,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,aAAa,EACtB,QAAQ,CAAC,EAAE,cAAc,KACxB,IAAI,CAAC;AAEV;;GAEG;AACH,UAAU,WAAW;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IHandlebars } from "./handlebars.interface";
|
|
2
|
+
/**
|
|
3
|
+
* Type alias for the configuration options for rendering templates.
|
|
4
|
+
*
|
|
5
|
+
* Currently, this type alias is equivalent to the `IHandlebars` interface,
|
|
6
|
+
* and represents the configuration options for Handlebars templates.
|
|
7
|
+
*
|
|
8
|
+
* In the future, this type could be expanded to include configuration options
|
|
9
|
+
* for other template engines.
|
|
10
|
+
*/
|
|
11
|
+
type RenderTemplateOptions = IHandlebars;
|
|
12
|
+
export { RenderTemplateOptions };
|
|
13
|
+
//# sourceMappingURL=render.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.type.d.ts","sourceRoot":"","sources":["../../../../packages/core/src/render/render.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;GAQG;AACH,KAAK,qBAAqB,GAAG,WAAW,CAAC;AAEzC,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-dev",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"win-clean": "if exist lib (del /q lib\\*)",
|
|
54
|
-
"linux-clean": "rm -
|
|
54
|
+
"linux-clean": "rm -rf lib/*",
|
|
55
55
|
"win-cpy": "xcopy package.json lib\\ && xcopy README.md lib\\ && xcopy CHANGELOG.md lib\\ /Y",
|
|
56
56
|
"linux-cpy": "cp package.json README.md CHANGELOG.md lib/",
|
|
57
57
|
"build:win": "npm run win-clean && npm run build:esm && npm run build:cjs && npm run win-cpy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expressots/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-dev",
|
|
4
4
|
"description": "Expressots - modern, fast, lightweight nodejs web framework (@core)",
|
|
5
5
|
"author": "Richard Zampieri",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"win-clean": "if exist lib (del /q lib\\*)",
|
|
54
|
-
"linux-clean": "rm -
|
|
54
|
+
"linux-clean": "rm -rf lib/*",
|
|
55
55
|
"win-cpy": "xcopy package.json lib\\ && xcopy README.md lib\\ && xcopy CHANGELOG.md lib\\ /Y",
|
|
56
56
|
"linux-cpy": "cp package.json README.md CHANGELOG.md lib/",
|
|
57
57
|
"build:win": "npm run win-clean && npm run build:esm && npm run build:cjs && npm run win-cpy",
|