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

@types/pug

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/pug - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

38

pug/index.d.ts

@@ -14,3 +14,3 @@ // Type definitions for pug 2.0

*/
declare module 'pug' {
declare module "pug" {
////////////////////////////////////////////////////////////

@@ -21,25 +21,25 @@ /// Options https://pugjs.org/api/reference.html#options ///

/** The name of the file being compiled. Used in exceptions, and required for relative includes and extends. Defaults to 'Pug'. */
filename?: string | undefined,
filename?: string | undefined;
/** The root directory of all absolute inclusion. */
basedir?: string | undefined,
basedir?: string | undefined;
/** If the doctype is not specified as part of the template, you can specify it here. It is sometimes useful to get self-closing tags and remove mirroring of boolean attributes; see doctype documentation for more information. */
doctype?: string | undefined,
doctype?: string | undefined;
/** Adds whitespace to the resulting HTML to make it easier for a human to read using ' ' as indentation. If a string is specified, that will be used as indentation instead (e.g. '\t'). Defaults to false. */
pretty?: boolean | string | undefined,
pretty?: boolean | string | undefined;
/** Hash table of custom filters. Defaults to undefined. */
filters?: any,
filters?: any;
/** Use a self namespace to hold the locals. It will speed up the compilation, but instead of writing variable you will have to write self.variable to access a property of the locals object. Defaults to false. */
self?: boolean | undefined,
self?: boolean | undefined;
/** If set to true, the tokens and function body are logged to stdout. */
debug?: boolean | undefined,
debug?: boolean | undefined;
/** If set to true, the function source will be included in the compiled template for better error messages (sometimes useful in development). It is enabled by default unless used with Express in production mode. */
compileDebug?: boolean | undefined,
compileDebug?: boolean | undefined;
/** Add a list of global names to make accessible in templates. */
globals?: Array<string> | undefined,
globals?: Array<string> | undefined;
/** If set to true, compiled functions are cached. filename must be set as the cache key. Only applies to render functions. Defaults to false. */
cache?: boolean | undefined,
cache?: boolean | undefined;
/** Inline runtime functions instead of require-ing them from a shared version. For compileClient functions, the default is true so that one does not have to include the runtime. For all other compilation or rendering types, the default is false. */
inlineRuntimeFunctions?: boolean | undefined,
inlineRuntimeFunctions?: boolean | undefined;
/** The name of the template function. Only applies to compileClient functions. Defaults to 'template'. */
name?: string | undefined
name?: string | undefined;
}

@@ -103,3 +103,7 @@

*/
export function render(template: string, options: Options & LocalsObject, callback: (err: Error | null, html: string) => void): void;
export function render(
template: string,
options: Options & LocalsObject,
callback: (err: Error | null, html: string) => void,
): void;

@@ -125,3 +129,7 @@ /**

*/
export function renderFile(path: string, options: Options & LocalsObject, callback: (err: Error | null, html: string) => void): void;
export function renderFile(
path: string,
options: Options & LocalsObject,
callback: (err: Error | null, html: string) => void,
): void;

@@ -128,0 +136,0 @@ ///////////////////

{
"name": "@types/pug",
"version": "2.0.6",
"version": "2.0.7",
"description": "TypeScript definitions for pug",

@@ -23,4 +23,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pug",

"dependencies": {},
"typesPublisherContentHash": "9109540393ac30fc3ac3057f8f68afa8a7b5b81d8d13fae50596e012b993951d",
"typeScriptVersion": "3.8"
"typesPublisherContentHash": "7292cb25fac3cee6c5a8d4b6bef4e2268c4e8ac832833bd2c39459deb5abfa44",
"typeScriptVersion": "4.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 23 Dec 2021 23:35:19 GMT
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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