css-b64-images
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var fs = require('fs'), | ||
@@ -19,3 +21,4 @@ Path = require('path'), | ||
'.webp' : 'image/webp', | ||
'.woff' : 'application/x-font-woff' | ||
'.woff' : 'application/x-font-woff', | ||
'.woff2' : 'application/font-woff2' | ||
}; | ||
@@ -34,5 +37,7 @@ | ||
if(!css.replace && css.toString) css = css.toString(); | ||
var urls = [], match; | ||
while (match = imgRegex.exec(css)) { | ||
var urls = [], | ||
match = imgRegex.exec(css); | ||
while(match) { | ||
urls.push(match[1]); | ||
match = imgRegex.exec(css) | ||
} | ||
@@ -39,0 +44,0 @@ forEachSeries(urls, base64img, function(err){ |
@@ -5,3 +5,3 @@ { | ||
"description": "Base64 images in your css", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "lib/css-b64-images.js", | ||
@@ -13,5 +13,3 @@ "bin": "bin/css-b64-images", | ||
}, | ||
"dependencies": { | ||
"async": "~0.1.22" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -24,6 +22,8 @@ "mocha": "~1.1.0", | ||
}, | ||
"licenses": [{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
}], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"optionalDependencies": {}, | ||
@@ -30,0 +30,0 @@ "engines": { |
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
1155599
0
180
- Removedasync@~0.1.22
- Removedasync@0.1.22(transitive)