htmltemplate-transform
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "htmltemplate-transform", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Pluggable transforms for HTML::Template", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -143,5 +143,8 @@ var assert = require('assert'); | ||
type: 'ConditionBranch', | ||
condition: continuation.preconditions.reduceRight( | ||
binary.bind(null, '&&') | ||
), | ||
condition: { | ||
type: 'Expression', | ||
content: continuation.preconditions.reduceRight( | ||
binary.bind(null, '&&') | ||
) | ||
}, | ||
content: content.slice(continuation.index) | ||
@@ -169,12 +172,7 @@ } | ||
return { | ||
type: 'Expression', | ||
content: { | ||
type: 'Identifier', | ||
name: identifier | ||
}, | ||
value: identifier, | ||
position: condition.position | ||
type: 'Identifier', | ||
name: identifier | ||
}; | ||
} else { | ||
return condition; | ||
return condition.content; | ||
} | ||
@@ -181,0 +179,0 @@ } |
@@ -200,7 +200,2 @@ [ | ||
"name": "$b_skip" | ||
}, | ||
"value": "$b_skip", | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
@@ -207,0 +202,0 @@ }, |
@@ -222,28 +222,23 @@ [ | ||
"condition": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
"type": "Expression", | ||
"content": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
}, | ||
"prefix": true | ||
}, | ||
"prefix": true | ||
}, | ||
"right": { | ||
"type": "Expression", | ||
"content": { | ||
"right": { | ||
"type": "Identifier", | ||
"name": "$b_skip" | ||
}, | ||
"value": "$b_skip", | ||
"position": { | ||
"line": 10, | ||
"column": 17 | ||
} | ||
@@ -250,0 +245,0 @@ } |
@@ -222,28 +222,23 @@ [ | ||
"condition": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
"type": "Expression", | ||
"content": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
}, | ||
"prefix": true | ||
}, | ||
"prefix": true | ||
}, | ||
"right": { | ||
"type": "Expression", | ||
"content": { | ||
"right": { | ||
"type": "Identifier", | ||
"name": "$b_skip" | ||
}, | ||
"value": "$b_skip", | ||
"position": { | ||
"line": 10, | ||
"column": 17 | ||
} | ||
@@ -373,7 +368,2 @@ } | ||
"name": "$b_skip_after" | ||
}, | ||
"value": "$b_skip_after", | ||
"position": { | ||
"line": 22, | ||
"column": 14 | ||
} | ||
@@ -380,0 +370,0 @@ }, |
@@ -222,28 +222,23 @@ [ | ||
"condition": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
"type": "Expression", | ||
"content": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
}, | ||
"prefix": true | ||
}, | ||
"prefix": true | ||
}, | ||
"right": { | ||
"type": "Expression", | ||
"content": { | ||
"right": { | ||
"type": "Identifier", | ||
"name": "$b_skip_after" | ||
}, | ||
"value": "$b_skip_after", | ||
"position": { | ||
"line": 10, | ||
"column": 17 | ||
} | ||
@@ -260,33 +255,20 @@ } | ||
"condition": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "BinaryExpression", | ||
"operator": "||", | ||
"left": { | ||
"type": "Expression", | ||
"content": { | ||
"type": "Expression", | ||
"content": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "BinaryExpression", | ||
"operator": "||", | ||
"left": { | ||
"type": "Identifier", | ||
"name": "$b_unskip" | ||
}, | ||
"value": "$b_unskip", | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
}, | ||
"right": { | ||
"type": "Expression", | ||
"content": { | ||
"right": { | ||
"type": "Identifier", | ||
"name": "$b_skip_after" | ||
}, | ||
"value": "$b_skip_after", | ||
"position": { | ||
"line": 10, | ||
"column": 17 | ||
} | ||
} | ||
}, | ||
"prefix": true | ||
}, | ||
"prefix": true | ||
} | ||
}, | ||
@@ -463,14 +445,17 @@ "content": [ | ||
"condition": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_dont_skip_if_not_skipped_yet", | ||
"value": null, | ||
"position": { | ||
"line": 23, | ||
"column": 14 | ||
} | ||
}, | ||
"prefix": true | ||
"type": "Expression", | ||
"content": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_dont_skip_if_not_skipped_yet", | ||
"value": null, | ||
"position": { | ||
"line": 23, | ||
"column": 14 | ||
} | ||
}, | ||
"prefix": true | ||
} | ||
}, | ||
@@ -477,0 +462,0 @@ "content": [ |
@@ -287,37 +287,29 @@ [ | ||
"condition": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "Expression", | ||
"content": { | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
"type": "BinaryExpression", | ||
"operator": "&&", | ||
"left": { | ||
"type": "UnaryExpression", | ||
"operator": "!", | ||
"argument": { | ||
"type": "SingleAttribute", | ||
"name": "b_unskip", | ||
"value": null, | ||
"position": { | ||
"line": 6, | ||
"column": 14 | ||
} | ||
}, | ||
"prefix": true | ||
}, | ||
"prefix": true | ||
}, | ||
"right": { | ||
"type": "Expression", | ||
"content": { | ||
"right": { | ||
"type": "Identifier", | ||
"name": "$b_can_skip" | ||
}, | ||
"value": "$b_can_skip", | ||
"position": { | ||
"line": 10, | ||
"column": 17 | ||
} | ||
} | ||
}, | ||
"right": { | ||
"type": "Expression", | ||
"content": { | ||
}, | ||
"right": { | ||
"type": "CallExpression", | ||
@@ -342,7 +334,2 @@ "callee": { | ||
] | ||
}, | ||
"value": "figure_out_in_runtime($b_skippable)", | ||
"position": { | ||
"line": 11, | ||
"column": 18 | ||
} | ||
@@ -349,0 +336,0 @@ } |
@@ -134,7 +134,2 @@ [ | ||
"name": "$b_skip" | ||
}, | ||
"value": "$b_skip", | ||
"position": { | ||
"line": 6, | ||
"column": 18 | ||
} | ||
@@ -141,0 +136,0 @@ }, |
@@ -127,7 +127,2 @@ [ | ||
"name": "$b_skip" | ||
}, | ||
"value": "$b_skip", | ||
"position": { | ||
"line": 5, | ||
"column": 14 | ||
} | ||
@@ -134,0 +129,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
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
245293
6250