Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tsed/platform-views

Package Overview
Dependencies
Maintainers
1
Versions
553
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/platform-views - npm Package Compare versions

Comparing version 6.97.2 to 6.98.0

29

lib/cjs/decorators/view.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.View = void 0;
const core_1 = require("@tsed/core");
/**
* Use a view and sends the rendered HTML string to the client. Optional parameter:
*
* * viewOptions, an object whose properties define local variables for the view.
*
* The view argument is a string that is the file path of the view file to render.
* This can be an absolute path, or a path relative to the views setting.
* If the path does not contain a file extension, then the view engine setting determines the file extension.
* If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
* and render it using the loaded module’s __express function.
*
* For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
*
* > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
* and as so for security reasons should not contain input from the end-user.
*
* @param path Relative path to the view file.
* @param options Additional options
* @decorator
* @operation
* @response
*/
function View(path, options) {
return (0, core_1.StoreSet)("view", { path, options });
}
exports.View = View;
var schema_1 = require("@tsed/schema");
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return schema_1.View; } });
//# sourceMappingURL=view.js.map

@@ -1,27 +0,2 @@

import { StoreSet } from "@tsed/core";
/**
* Use a view and sends the rendered HTML string to the client. Optional parameter:
*
* * viewOptions, an object whose properties define local variables for the view.
*
* The view argument is a string that is the file path of the view file to render.
* This can be an absolute path, or a path relative to the views setting.
* If the path does not contain a file extension, then the view engine setting determines the file extension.
* If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
* and render it using the loaded module’s __express function.
*
* For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
*
* > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
* and as so for security reasons should not contain input from the end-user.
*
* @param path Relative path to the view file.
* @param options Additional options
* @decorator
* @operation
* @response
*/
export function View(path, options) {
return StoreSet("view", { path, options });
}
export { View } from "@tsed/schema";
//# sourceMappingURL=view.js.map

@@ -1,23 +0,1 @@

/**
* Use a view and sends the rendered HTML string to the client. Optional parameter:
*
* * viewOptions, an object whose properties define local variables for the view.
*
* The view argument is a string that is the file path of the view file to render.
* This can be an absolute path, or a path relative to the views setting.
* If the path does not contain a file extension, then the view engine setting determines the file extension.
* If the path does contain a file extension, then Express will load the module for the specified template engine (via require())
* and render it using the loaded module’s __express function.
*
* For more information, see [Using template engines with Express](http://expressjs.com/guide/using-template-engines.html).
*
* > NOTE: The view argument performs file system operations like reading a file from disk and evaluating Node.js modules,
* and as so for security reasons should not contain input from the end-user.
*
* @param path Relative path to the view file.
* @param options Additional options
* @decorator
* @operation
* @response
*/
export declare function View(path: string, options?: Object): MethodDecorator;
export { View } from "@tsed/schema";

18

package.json
{
"name": "@tsed/platform-views",
"version": "6.97.2",
"version": "6.98.0",
"description": "Views module for Ts.ED Framework",

@@ -26,15 +26,15 @@ "private": false,

"devDependencies": {
"@tsed/core": "6.97.2",
"@tsed/di": "6.97.2",
"@tsed/core": "6.98.0",
"@tsed/di": "6.98.0",
"@tsed/engines": "^1.1.5",
"@tsed/exceptions": "6.97.2",
"@tsed/schema": "6.97.2",
"@tsed/exceptions": "6.98.0",
"@tsed/schema": "6.98.0",
"@types/consolidate": "0.14.0"
},
"peerDependencies": {
"@tsed/core": "^6.97.2",
"@tsed/di": "^6.97.2",
"@tsed/core": "^6.98.0",
"@tsed/di": "^6.98.0",
"@tsed/engines": "^1.1.5",
"@tsed/exceptions": "^6.97.2",
"@tsed/schema": "^6.97.2"
"@tsed/exceptions": "^6.98.0",
"@tsed/schema": "^6.98.0"
},

@@ -41,0 +41,0 @@ "repository": "https://github.com/tsedio/tsed",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc