Socket
Socket
Sign inDemoInstall

@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.4 to 2.0.5

pug/LICENSE

22

pug/index.d.ts

@@ -20,25 +20,25 @@ // Type definitions for pug 2.0

/** The name of the file being compiled. Used in exceptions, and required for relative includes and extends. Defaults to 'Pug'. */
filename?: string,
filename?: string | undefined,
/** The root directory of all absolute inclusion. */
basedir?: string,
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,
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,
pretty?: boolean | string | undefined,
/** Hash table of custom filters. Defaults to undefined. */
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,
self?: boolean | undefined,
/** If set to true, the tokens and function body are logged to stdout. */
debug?: boolean,
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,
compileDebug?: boolean | undefined,
/** Add a list of global names to make accessible in templates. */
globals?: Array<string>,
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,
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,
inlineRuntimeFunctions?: boolean | undefined,
/** The name of the template function. Only applies to compileClient functions. Defaults to 'template'. */
name?: string
name?: string | undefined
}

@@ -45,0 +45,0 @@

{
"name": "@types/pug",
"version": "2.0.4",
"version": "2.0.5",
"description": "TypeScript definitions for pug",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pug",
"license": "MIT",
"author": "TonyYang <https://github.com/TonyPythoneer>, Michał Lytek <https://github.com/19majkel94>",
"contributors": [
{
"name": "TonyYang",
"url": "https://github.com/TonyPythoneer",
"githubUsername": "TonyPythoneer"
},
{
"name": "Michał Lytek",
"url": "https://github.com/19majkel94",
"githubUsername": "19majkel94"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/pug"
},
"scripts": {},
"dependencies": {},
"peerDependencies": {},
"typesPublisherContentHash": "177cf130e1d3634d51c8acf0f117ba6bb2cb3d4ef8583a3e8b8c54d59845ae05",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "cd98f605853f4556a3306a9c18ab58103f36be483abee823da1a3b19a9d89c2f",
"typeScriptVersion": "3.6"
}

@@ -8,11 +8,10 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/pug
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pug.
Additional Details
* Last updated: Fri, 30 Dec 2016 00:00:11 GMT
* Library Dependencies: none
* Module Dependencies: none
### Additional Details
* Last updated: Wed, 07 Jul 2021 17:02:39 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by TonyYang <https://github.com/TonyPythoneer>, Michał Lytek <https://github.com/19majkel94>.
These definitions were written by [TonyYang](https://github.com/TonyPythoneer), and [Michał Lytek](https://github.com/19majkel94).
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