Comparing version 0.0.25 to 0.0.26
@@ -155,3 +155,3 @@ var path = require('path'); | ||
var info, pkgInfo, url, type; | ||
//异步资源即使因为pkg.has引入过,也需要重新处理,向asyncs中添加 | ||
if (loaded[id] && !async) { | ||
@@ -171,2 +171,3 @@ if (!async && asyncs[id] && !asyncToSync[id]) { | ||
type = info['type']; | ||
//不重复对同一个pkg处理,避免死循环 | ||
if (info['pkg'] && !handledPkg[info.pkg]) { | ||
@@ -173,0 +174,0 @@ handledPkg[info.pkg] = true; |
@@ -6,2 +6,6 @@ var proto = module.exports = { | ||
options['response'] = this; | ||
if (!this.get('Content-Type')) { | ||
this.type('html'); | ||
} | ||
@@ -8,0 +12,0 @@ var ret = proto.__proto__.render.call(this, path, options, next); |
{ | ||
"name": "yog-view", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "An express.js middleware for optimizing the order of js\\css output, and enabling render template in bigpipe mode.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
20787
501