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

mu2

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mu2 - npm Package Compare versions

Comparing version 0.5.18 to 0.5.19

5

lib/mu.js

@@ -9,2 +9,4 @@ var util = require('util'),

var nextTick = (typeof setImmediate == 'function') ? setImmediate : process.nextTick;
var mu = module.exports = {};

@@ -20,2 +22,3 @@

/**

@@ -189,3 +192,3 @@ * Compiles a file. The result will be cached as the filename and can be

setImmediate(function () {
nextTick(function () {
try {

@@ -192,0 +195,0 @@ renderer.render(tokens, view, partials, stream, function () {

8

lib/mu/renderer.js

@@ -5,5 +5,7 @@ var BUFFER_LENGTH = 1024 * 8;

var parser = require('./parser');
var nextTick = (typeof setImmediate == 'function') ? setImmediate : process.nextTick;
exports.render = render;
function render(tokens, context, partials, stream, callback) {

@@ -30,3 +32,3 @@ if (!Array.isArray(context)) {

stream.once('resumed', function () {
setImmediate(next);
nextTick(next);
});

@@ -37,3 +39,3 @@ return;

if (++stackSize % MAX_STACK_SIZE == 0) {
setImmediate(next);
nextTick(next);
return;

@@ -187,3 +189,3 @@ }

if (i % MAX_STACK_SIZE == 0) {
return setImmediate(next);
return nextTick(next);
} else {

@@ -190,0 +192,0 @@ next();

{ "name": "mu2"
, "description": "A Mustache template engine for Node.js"
, "keywords": ["template", "mustache"]
, "version" : "0.5.18"
, "version" : "0.5.19"
, "homepage": "http://github.com/raycmorgan/mu"

@@ -6,0 +6,0 @@ , "author" : "RayMorgan <ray@rumgr.com>"

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