Comparing version 0.5.18 to 0.5.19
@@ -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 () { |
@@ -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>" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77561
777