Socket
Socket
Sign inDemoInstall

jade

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jade - npm Package Compare versions

Comparing version 0.23.0 to 0.24.0

2

lib/compiler.js

@@ -304,3 +304,3 @@

// pretty print
if (this.pp && !~inlineTags.indexOf(name) && !tag.textOnly) {
if (this.pp && !~inlineTags.indexOf(name) && !tag.textOnly && !tag.isText()) {
this.buffer('\\n' + Array(this.indents).join(' '));

@@ -307,0 +307,0 @@ }

@@ -23,3 +23,3 @@ /*!

exports.version = '0.23.0';
exports.version = '0.24.0';

@@ -26,0 +26,0 @@ /**

@@ -498,3 +498,3 @@

if ('' == key) return;
key = key.replace(/^['"]|['"]$/g, '');
key = key.replace(/^['"]|['"]$/g, '').replace('!', '');
tok.escaped[key] = escapedAttr;

@@ -501,0 +501,0 @@ tok.attrs[key] = '' == val

@@ -82,1 +82,12 @@

};
/**
* Check if this tag's block contains only text nodes. Used for pretty printing.
*
* @return {Boolean}
* @api private
*/
Tag.prototype.isText = function(){
return !this.block.nodes.length;
};
{
"name": "jade",
"description": "Jade template engine",
"version": "0.23.0",
"version": "0.24.0",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade",

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