postcss-image-inliner
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -12,3 +12,3 @@ 'use strict'; | ||
b64Svg: false, | ||
strict: false | ||
strict: false, | ||
}; | ||
@@ -39,3 +39,6 @@ | ||
// Get urls | ||
css.walkDecls(filter, loop(({url}) => urls.add(url))); | ||
css.walkDecls( | ||
filter, | ||
loop(({url}) => urls.add(url)) | ||
); | ||
@@ -42,0 +45,0 @@ const mapping = await getDataUriMapping([...urls], options); |
@@ -71,4 +71,4 @@ 'use strict'; | ||
return await getResource(file, {base, filter}); | ||
} catch (err) { | ||
debug(err.message, filepath, 'could not be resolved'); | ||
} catch (error) { | ||
debug(error.message, filepath, 'could not be resolved'); | ||
} | ||
@@ -75,0 +75,0 @@ } |
{ | ||
"name": "postcss-image-inliner", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "PostCSS plugin to inline images into css", | ||
@@ -33,12 +33,11 @@ "keywords": [ | ||
"chai": "^4.2.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-xo-space": "^0.21.0", | ||
"finalhandler": "^1.1.2", | ||
"mocha": "^6.2.2", | ||
"serve-static": "^1.14.1" | ||
"serve-static": "^1.14.1", | ||
"xo": "^0.25.3" | ||
}, | ||
"scripts": { | ||
"eslint": "eslint .", | ||
"xo": "xo", | ||
"mocha": "mocha", | ||
"test": "npm run eslint && npm run mocha" | ||
"test": "npm run xo && npm run mocha" | ||
}, | ||
@@ -51,4 +50,10 @@ "prettier": { | ||
}, | ||
"eslintConfig": { | ||
"extends": "xo-space" | ||
"xo": { | ||
"space": 2, | ||
"prettier": true, | ||
"rules": { | ||
"capitalized-comments": "off", | ||
"default-param-last": "off", | ||
"promise/prefer-await-to-then": "off" | ||
} | ||
}, | ||
@@ -55,0 +60,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
9834
5
130