flex-combo
Advanced tools
Comparing version 0.12.19 to 0.12.20
13
api.js
@@ -400,9 +400,10 @@ var urlLib = require("url"); | ||
var isText = ["application/javascript", "text/css"].indexOf(this.MIME) != -1; | ||
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") | ||
); | ||
buffArr.push(this.result[fileURI] ? this.result[fileURI] : new Buffer("/* " + fileURI + " Empty!*/")); | ||
if (isText) { | ||
buffArr.push(new Buffer("\n")); | ||
} | ||
} | ||
@@ -415,3 +416,3 @@ | ||
"Content-Type": this.MIME + (Helper.isBinFile(this.URL) ? '' : ";charset=" + this.param.charset), | ||
"Content-Length": Buffer.byteLength(content), | ||
"Content-Length": content.length, | ||
"X-MiddleWare": "flex-combo" | ||
@@ -425,3 +426,3 @@ }); | ||
&& /[\?&]_sourcemap\b/.test(req.url) | ||
&& ["application/javascript", "text/css"].indexOf(this.MIME) != -1 | ||
&& isText | ||
) { | ||
@@ -428,0 +429,0 @@ res.write(require("./lib/sourcemap")( |
{ | ||
"name": "flex-combo", | ||
"version": "0.12.19", | ||
"version": "0.12.20", | ||
"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
80468
690