pug-code-gen
Advanced tools
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) { |
{ | ||
"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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28511
907
2
+ Addedpug-error@2.0.0(transitive)
+ Addedpug-runtime@3.0.0(transitive)
- Removedpug-error@2.1.0(transitive)
- Removedpug-runtime@3.0.1(transitive)
Updatedpug-attrs@3.0.0
Updatedpug-error@2.0.0
Updatedpug-runtime@3.0.0