Socket
Socket
Sign inDemoInstall

velocityjs

Package Overview
Dependencies
0
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.4 to 0.8.5

4

History.md

@@ -0,1 +1,5 @@

## 0.8.5 2016-07-16
- fix bug #foreach with nest empty foreach [!70](https://github.com/shepherdwind/velocity.js/pull/70)
## 0.8.4 2016-07-04

@@ -2,0 +6,0 @@

2

package.json
{
"name": "velocityjs",
"description": "Velocity Template Language(VTL) for JavaScript",
"version": "0.8.4",
"version": "0.8.5",
"keywords": [

@@ -6,0 +6,0 @@ "velocity template"

@@ -15,5 +15,5 @@ Velocity - Template Engine

[travis-image]: https://img.shields.io/travis/shepherdwind/velocity.js.svg?style=flat-square
[travis-url]: https://travis-ci.org/react-component/upload
[travis-url]: https://travis-ci.org/shepherdwind/velocity.js
[coveralls-image]: https://img.shields.io/coveralls/shepherdwind/velocity.js.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/react-component/upload?branch=master
[coveralls-url]: https://coveralls.io/r/shepherdwind/velocity.js?branch=master

@@ -23,3 +23,3 @@

[中文版文档](./README.cn.md)
[中文版文档](./README-cn.md)

@@ -26,0 +26,0 @@ ##Features

@@ -222,7 +222,11 @@ 'use strict';

this._state.break = false;
// 删除临时变量
this.local[contextId] = {};
this.conditions.shift();
this.condition = this.conditions[0] || '';
// if foreach items be an empty array, then this code will shift current
// conditions, but not this._render call, so this will shift parent context
if (_from && _from.length) {
this._state.break = false;
// empty current local context object
this.local[contextId] = {};
this.conditions.shift();
this.condition = this.conditions[0] || '';
}

@@ -229,0 +233,0 @@ return ret;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc