Socket
Socket
Sign inDemoInstall

velocityjs

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

velocityjs - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

4

History.md

@@ -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 @@

2

package.json
{
"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') {

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