Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broadway-handlebars

Package Overview
Dependencies
Maintainers
4
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.4.5 to 0.4.6

11

index.js

@@ -9,2 +9,4 @@ // var _ = {

var _ = require('lodash');
var Minimize = require('minimize')
var minimize = new Minimize();
var handlebars = require('handlebars'); // parens will prevent browserify from packaging.

@@ -206,3 +208,10 @@ var defaultViewResolver = (typeof(window) === 'undefined') ? require('./viewresolver') : null;

return typeof(callback) === 'function' ? callback(err, html) : null;
if (options.minify) {
minimize.parse(html, function (error, data) {
return typeof(callback) === 'function' ? callback(error, data) : null;
});
} else {
return typeof(callback) === 'function' ? callback(err, html) : null;
}
};

@@ -209,0 +218,0 @@

7

package.json
{
"name": "broadway-handlebars",
"version": "0.4.5",
"version": "0.4.6",
"main": "index",

@@ -38,6 +38,7 @@ "description": "Plugin for flatiron/broadway for rendering with the handlebars view engine.",

"dependencies": {
"async": "0.2.9",
"findit": "0.1.2",
"async": "0.2.9",
"handlebars": "~1.3.0",
"lodash": "~2.4.1",
"handlebars": "~1.3.0"
"minimize": "^1.4.1"
},

@@ -44,0 +45,0 @@ "devDependencies": {

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