+5
-0
| 0.10.2 / 2011-03-30 | ||
| ================== | ||
| * Fixed pipeless text bug with missing outdent | ||
| 0.10.1 / 2011-03-28 | ||
@@ -3,0 +8,0 @@ ================== |
+1
-1
@@ -22,3 +22,3 @@ | ||
| exports.version = '0.10.1'; | ||
| exports.version = '0.10.2'; | ||
@@ -25,0 +25,0 @@ /** |
+6
-6
@@ -23,3 +23,3 @@ | ||
| this.indentRe = null; | ||
| this.textPipe = true; | ||
| this.pipeless = false; | ||
| }; | ||
@@ -455,11 +455,11 @@ | ||
| * Pipe-less text consumed only when | ||
| * textPipe is false; | ||
| * pipeless is true; | ||
| */ | ||
| pipelessText: function() { | ||
| if (false === this.textPipe) { | ||
| if (this.pipeless) { | ||
| if ('\n' == this.input[0]) return; | ||
| var i = this.input.indexOf('\n') | ||
| , str = this.input.substr(0, i); | ||
| if (-1 == i) return; | ||
| var i = this.input.indexOf('\n'); | ||
| if (-1 == i) i = this.input.length; | ||
| var str = this.input.substr(0, i); | ||
| this.consume(str.length); | ||
@@ -466,0 +466,0 @@ return this.tok('text', str); |
+5
-6
@@ -257,5 +257,5 @@ | ||
| this.lexer.textPipe = false; | ||
| this.lexer.pipeless = true; | ||
| block = this.parseTextBlock(); | ||
| this.lexer.textPipe = true; | ||
| this.lexer.pipeless = false; | ||
@@ -300,4 +300,3 @@ var node = new nodes.Filter(tok.val, block, attrs && attrs.attrs); | ||
| parseTextBlock: function(){ | ||
| var text = new nodes.Text | ||
| , pipeless = false === this.lexer.textPipe; | ||
| var text = new nodes.Text; | ||
| text.line = this.line(); | ||
@@ -424,5 +423,5 @@ this.expect('indent'); | ||
| if (tag.textOnly) { | ||
| this.lexer.textPipe = false; | ||
| this.lexer.pipeless = true; | ||
| tag.block = this.parseTextBlock(); | ||
| this.lexer.textPipe = true; | ||
| this.lexer.pipeless = false; | ||
| } else { | ||
@@ -429,0 +428,0 @@ var block = this.parseBlock(); |
+1
-1
| { | ||
| "name": "jade", | ||
| "description": "Jade template engine", | ||
| "version": "0.10.1", | ||
| "version": "0.10.2", | ||
| "author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade", |
@@ -1,1 +0,2 @@ | ||
| a(class: 'test') | ||
| script | ||
| s.parentNode.insertBefore(g,s) |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
147272
0.05%3845
-0.03%