Comparing version 0.1.11 to 0.1.12
{ | ||
"name": "bigkoa", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -208,14 +208,18 @@ 'use strict' | ||
} | ||
this.ctx.render(tpl, data, function (err, html) { | ||
if (err) { | ||
return Utils.log(err) | ||
} | ||
// let html = str + Utils.ready(this.debug) | ||
// 在pipeline模式下会直接写layout到浏览器 | ||
cb && cb(err, html) | ||
if (cacheLevel1 || cacheLevel2) { | ||
return | ||
} | ||
lurMapCache.set(tpl, html) | ||
}) | ||
if (tpl && data) { | ||
this.ctx.render(tpl, data, function (err, html) { | ||
if (err) { | ||
return Utils.log(err) | ||
} | ||
// let html = str + Utils.ready(this.debug) | ||
// 在pipeline模式下会直接写layout到浏览器 | ||
cb && cb(err, html) | ||
// if (cacheLevel1 || cacheLevel2) { | ||
// return | ||
// } | ||
// lurMapCache.set(tpl, html) | ||
}) | ||
} else { | ||
cb && cb(null, '') | ||
} | ||
} | ||
@@ -258,6 +262,6 @@ | ||
resolve(html) | ||
if (cacheLevel1 || cacheLevel2) { | ||
return | ||
} | ||
lurMapCache.set(tpl, html) | ||
// if (cacheLevel1 || cacheLevel2) { | ||
// return | ||
// } | ||
// lurMapCache.set(tpl, html) | ||
} | ||
@@ -264,0 +268,0 @@ }) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3025
253950
110
2