flex-combo
Advanced tools
Comparing version 0.12.18 to 0.12.19
23
api.js
@@ -400,16 +400,21 @@ var urlLib = require("url"); | ||
var fileURI, buffArr = []; | ||
for (var i = 0; i < FLen; i++) { | ||
fileURI = files[i]; | ||
buffArr.push( | ||
this.result[fileURI] ? this.result[fileURI] : new Buffer("/* " + fileURI + " Empty!*/"), | ||
new Buffer("\n") | ||
); | ||
} | ||
var content = Buffer.concat(buffArr); | ||
res.writeHead(responseData[0] || 200, { | ||
"Access-Control-Allow-Origin": '*', | ||
"Content-Type": this.MIME + (Helper.isBinFile(this.URL) ? '' : ";charset=" + this.param.charset), | ||
"Content-Length": Buffer.byteLength(content), | ||
"X-MiddleWare": "flex-combo" | ||
}); | ||
var fileURI, fileBuff, buffArr = []; | ||
for (var i = 0; i < FLen; i++) { | ||
fileURI = files[i]; | ||
fileBuff = this.result[fileURI] ? this.result[fileURI] : new Buffer("/* " + fileURI + " Empty!*/"); | ||
res.write(fileBuff); | ||
res.write("\n"); | ||
buffArr.push(fileBuff); | ||
} | ||
res.write(content); | ||
@@ -429,3 +434,3 @@ if ( | ||
res.end(); | ||
this.trace.response(this.HOST + req.url, Buffer.concat(buffArr)); | ||
this.trace.response(this.HOST + req.url, content); | ||
}.bind(this)); | ||
@@ -432,0 +437,0 @@ } |
{ | ||
"name": "flex-combo", | ||
"version": "0.12.18", | ||
"version": "0.12.19", | ||
"description": "A combo tool designed for web front-end developer, which support various kinds of combo format by modify configuration(eg. yahoo combo).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
80425
689