New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

broadway-handlebars

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broadway-handlebars - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

15

index.js

@@ -54,8 +54,17 @@ var _ = require('lodash'),

// http://documentcloud.github.com/underscore/#range
Handlebars.registerHelper('range', function(stop, options) {
Handlebars.registerHelper('range', function(expression, options) {
var buffer = [],
range = _.range((options.hash.start || 0), stop, (options.hash.step || 1)),
stop = 0,
that = this;
_.each(range, function(v, k) {
if (typeof(expression) == 'string') {
with(this) {
stop = eval(expression);
}
}
else {
stop = expression;
}
_.each(_.range((options.hash.start || 0), stop, (options.hash.step || 1)), function(v, k) {
try {

@@ -62,0 +71,0 @@ buffer.push(options.fn( _.extend(_.clone(that), { key: k, value: v })));

2

package.json
{
"name": "broadway-handlebars",
"version": "0.1.13",
"version": "0.1.14",
"main": "index",

@@ -5,0 +5,0 @@ "description": "Plugin for flatiron/broadway for rendering with the handlebars view engine.",

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