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

jade

Package Overview
Dependencies
Maintainers
0
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.8.5 to 0.8.6

6

History.md
0.8.6 / 2011-03-11
==================
* Fixed parenthesized expressions in attrs. Closes #170
* Changed; default interpolation values `== null` to ''. Closes #167
0.8.5 / 2011-03-09

@@ -3,0 +9,0 @@ ==================

2

lib/compiler.js

@@ -44,3 +44,3 @@

compile: function(){
this.buf = [];
this.buf = ['var interp;'];
this.visit(this.node);

@@ -47,0 +47,0 @@ return this.buf.join('\n');

@@ -20,3 +20,3 @@

exports.version = '0.8.5';
exports.version = '0.8.6';

@@ -23,0 +23,0 @@ /**

@@ -308,2 +308,3 @@

switch (state()) {
case 'expr':
case 'array':

@@ -329,2 +330,3 @@ case 'string':

case 'val':
case 'expr':
case 'array':

@@ -339,2 +341,10 @@ case 'string':

break;
case '(':
states.push('expr');
val += c;
break;
case ')':
states.pop();
val += c;
break;
case '{':

@@ -341,0 +351,0 @@ states.push('object');

@@ -22,4 +22,4 @@

+ ('!' == flag ? '' : 'escape')
+ "(" + code.replace(/\\'/g, "'")
+ ") + '";
+ "((interp = " + code.replace(/\\'/g, "'")
+ ") == null ? '' : interp) + '";
});

@@ -26,0 +26,0 @@ };

{
"name": "jade",
"description": "Jade template engine",
"version": "0.8.5",
"version": "0.8.6",
"author": "TJ Holowaychuk <tj@vision-media.ca>",

@@ -6,0 +6,0 @@ "main": "./index.js",

Sorry, the diff of this file is not supported yet

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