@tsed/platform-views 6.97.2 → 6.98.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.
@@ -1,31 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.View = void 0;
4
- const core_1 = require("@tsed/core");
5
- /**
6
- * Use a view and sends the rendered HTML string to the client. Optional parameter:
7
- *
8
- * * viewOptions, an object whose properties define local variables for the view.
9
- *
10
- * The view argument is a string that is the file path of the view file to render.
11
- * This can be an absolute path, or a path relative to the views setting.
12
- * If the path does not contain a file extension, then the view engine setting determines the file extension.
13
- * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
14
- * and render it using the loaded module’s __express function.
15
- *
16
- * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
17
- *
18
- * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
19
- * and as so for security reasons should not contain input from the end-user.
20
- *
21
- * @param path Relative path to the view file.
22
- * @param options Additional options
23
- * @decorator
24
- * @operation
25
- * @response
26
- */
27
- function View(path, options) {
28
- return (0, core_1.StoreSet)("view", { path, options });
29
- }
30
- exports.View = View;
4
+ var schema_1 = require("@tsed/schema");
5
+ Object.defineProperty(exports, "View", { enumerable: true, get: function () { return schema_1.View; } });
31
6
  //# sourceMappingURL=view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/decorators/view.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,IAAI,CAAC,IAAY,EAAE,OAAgB;IACjD,OAAO,IAAA,eAAQ,EAAC,MAAM,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,CAAQ,CAAC;AAClD,CAAC;AAFD,oBAEC","sourcesContent":["import {StoreSet} from \"@tsed/core\";\n\n/**\n * Use a view and sends the rendered HTML string to the client. Optional parameter:\n *\n * * viewOptions, an object whose properties define local variables for the view.\n *\n * The view argument is a string that is the file path of the view file to render.\n * This can be an absolute path, or a path relative to the views setting.\n * If the path does not contain a file extension, then the view engine setting determines the file extension.\n * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())\n * and render it using the loaded module’s __express function.\n *\n * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).\n *\n * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,\n * and as so for security reasons should not contain input from the end-user.\n *\n * @param path Relative path to the view file.\n * @param options Additional options\n * @decorator\n * @operation\n * @response\n */\nexport function View(path: string, options?: Object): MethodDecorator {\n return StoreSet(\"view\", {path, options}) as any;\n}\n"]}
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/decorators/view.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAA1B,8FAAA,IAAI,OAAA","sourcesContent":["export {View} from \"@tsed/schema\";\n"]}
@@ -1,27 +1,2 @@
1
- import { StoreSet } from "@tsed/core";
2
- /**
3
- * Use a view and sends the rendered HTML string to the client. Optional parameter:
4
- *
5
- * * viewOptions, an object whose properties define local variables for the view.
6
- *
7
- * The view argument is a string that is the file path of the view file to render.
8
- * This can be an absolute path, or a path relative to the views setting.
9
- * If the path does not contain a file extension, then the view engine setting determines the file extension.
10
- * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
11
- * and render it using the loaded module’s __express function.
12
- *
13
- * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
14
- *
15
- * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
16
- * and as so for security reasons should not contain input from the end-user.
17
- *
18
- * @param path Relative path to the view file.
19
- * @param options Additional options
20
- * @decorator
21
- * @operation
22
- * @response
23
- */
24
- export function View(path, options) {
25
- return StoreSet("view", { path, options });
26
- }
1
+ export { View } from "@tsed/schema";
27
2
  //# sourceMappingURL=view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/decorators/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,IAAI,CAAC,IAAY,EAAE,OAAgB;IACjD,OAAO,QAAQ,CAAC,MAAM,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,CAAQ,CAAC;AAClD,CAAC","sourcesContent":["import {StoreSet} from \"@tsed/core\";\n\n/**\n * Use a view and sends the rendered HTML string to the client. Optional parameter:\n *\n * * viewOptions, an object whose properties define local variables for the view.\n *\n * The view argument is a string that is the file path of the view file to render.\n * This can be an absolute path, or a path relative to the views setting.\n * If the path does not contain a file extension, then the view engine setting determines the file extension.\n * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())\n * and render it using the loaded module’s __express function.\n *\n * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).\n *\n * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,\n * and as so for security reasons should not contain input from the end-user.\n *\n * @param path Relative path to the view file.\n * @param options Additional options\n * @decorator\n * @operation\n * @response\n */\nexport function View(path: string, options?: Object): MethodDecorator {\n return StoreSet(\"view\", {path, options}) as any;\n}\n"]}
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../src/decorators/view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC","sourcesContent":["export {View} from \"@tsed/schema\";\n"]}
@@ -1,23 +1 @@
1
- /**
2
- * Use a view and sends the rendered HTML string to the client. Optional parameter:
3
- *
4
- * * viewOptions, an object whose properties define local variables for the view.
5
- *
6
- * The view argument is a string that is the file path of the view file to render.
7
- * This can be an absolute path, or a path relative to the views setting.
8
- * If the path does not contain a file extension, then the view engine setting determines the file extension.
9
- * If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
10
- * and render it using the loaded module’s __express function.
11
- *
12
- * For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
13
- *
14
- * > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
15
- * and as so for security reasons should not contain input from the end-user.
16
- *
17
- * @param path Relative path to the view file.
18
- * @param options Additional options
19
- * @decorator
20
- * @operation
21
- * @response
22
- */
23
- export declare function View(path: string, options?: Object): MethodDecorator;
1
+ export { View } from "@tsed/schema";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-views",
3
- "version": "6.97.2",
3
+ "version": "6.98.0",
4
4
  "description": "Views module for Ts.ED Framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -23,19 +23,19 @@
23
23
  "tslib": "2.2.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@tsed/core": "6.97.2",
27
- "@tsed/di": "6.97.2",
26
+ "@tsed/core": "6.98.0",
27
+ "@tsed/di": "6.98.0",
28
28
  "@tsed/engines": "^1.1.5",
29
- "@tsed/exceptions": "6.97.2",
30
- "@tsed/schema": "6.97.2",
29
+ "@tsed/exceptions": "6.98.0",
30
+ "@tsed/schema": "6.98.0",
31
31
  "@types/consolidate": "0.14.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@tsed/core": "^6.97.2",
35
- "@tsed/di": "^6.97.2",
34
+ "@tsed/core": "^6.98.0",
35
+ "@tsed/di": "^6.98.0",
36
36
  "@tsed/engines": "^1.1.5",
37
- "@tsed/exceptions": "^6.97.2",
38
- "@tsed/schema": "^6.97.2"
37
+ "@tsed/exceptions": "^6.98.0",
38
+ "@tsed/schema": "^6.98.0"
39
39
  },
40
40
  "repository": "https://github.com/tsedio/tsed",
41
41
  "bugs": {