Socket
Socket
Sign inDemoInstall

pug-code-gen

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-code-gen - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2-canary-5

13

index.js

@@ -60,2 +60,7 @@ 'use strict';

}
if (this.pp && !/^\s+$/.test(this.pp)) {
throw new Error(
'The pretty parameter should either be a boolean or whitespace only string'
);
}
this.debug = false !== options.compileDebug;

@@ -456,3 +461,5 @@ this.indents = 0;

this.buf.push(
"pug_indent.push('" + Array(this.indents + 1).join(this.pp) + "');"
'pug_indent.push(' +
stringify(Array(this.indents + 1).join(this.pp)) +
');'
);

@@ -509,3 +516,5 @@ this.buf.push('block && block();');

this.buf.push(
"pug_indent.push('" + Array(this.indents + 1).join(pp) + "');"
'pug_indent.push(' +
stringify(Array(this.indents + 1).join(pp)) +
');'
);

@@ -512,0 +521,0 @@ if (block || attrs.length || attrsBlocks.length) {

8

package.json
{
"name": "pug-code-gen",
"version": "3.0.1",
"version": "3.0.2-canary-5",
"description": "Default code-generator for pug. It generates HTML via a JavaScript template function.",

@@ -12,5 +12,5 @@ "keywords": [

"js-stringify": "^1.0.2",
"pug-attrs": "^3.0.0",
"pug-error": "^2.0.0",
"pug-runtime": "^3.0.0",
"pug-attrs": "3.0.0",
"pug-error": "2.0.0",
"pug-runtime": "3.0.0",
"void-elements": "^3.1.0",

@@ -17,0 +17,0 @@ "with": "^7.0.0"

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