velocityjs
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,5 @@ | ||
## 0.6.1 | ||
- feat: merge [46](https://github.com/shepherdwind/velocity.js/pull/46) | ||
## [0.6](https://github.com/shepherdwind/velocity.js/milestones/0.6) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "velocityjs", | ||
"description": "Velocity Template Language(VTL) for JavaScript", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "velocity template" |
@@ -19,5 +19,6 @@ 'use strict'; | ||
* @param {object} blocks self define blocks, such as `#cms(1) hello #end` | ||
* @param {boolean} ignoreSpace if set true, then ignore the newline trim. | ||
* @return {array} ast array | ||
*/ | ||
var parse = function(str, blocks) { | ||
var parse = function(str, blocks, ignoreSpace) { | ||
var asts = _parse(str); | ||
@@ -29,3 +30,3 @@ customBlocks = blocks || {}; | ||
*/ | ||
utils.forEach(asts, function trim(ast, i) { | ||
ignoreSpace || utils.forEach(asts, function trim(ast, i) { | ||
var TRIM_REG = /^[ \t]*\n/; | ||
@@ -32,0 +33,0 @@ if (ast.type && ast.type !== 'references') { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1382777
5509
0