commonplace
Advanced tools
Comparing version 0.1.7 to 0.1.9
@@ -63,3 +63,2 @@ var fs = require('fs'); | ||
function concatCSS(src_dir, callback) { | ||
var output = ''; | ||
var css_pattern = /href="(\/media\/css\/.+\.styl\.css)"/g; | ||
@@ -99,15 +98,14 @@ var url_pattern = /url\(([^)]+)\)/g; | ||
var output = []; | ||
var remaining = files.length; | ||
files.forEach(function(v) { | ||
files.forEach(function(v, index) { | ||
v = v.replace('.styl.css', '.styl'); | ||
compileStylus(v, function(err, data) { | ||
remaining--; | ||
if (err) { | ||
console.warn(err); | ||
if (!remaining) callback(output); | ||
return; | ||
} else { | ||
output[index] = fix_urls(data + '\n'); | ||
} | ||
output += fix_urls(data + '\n'); | ||
if (!remaining) callback(output); | ||
remaining--; | ||
if (!remaining) callback(output.join('\n')); | ||
}); | ||
@@ -114,0 +112,0 @@ }); |
{ | ||
"name": "commonplace", | ||
"version": "0.1.7", | ||
"version": "0.1.9", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "git://github.com/mozilla/commonplace.git", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
10
848913
77
11195