Socket
Socket
Sign inDemoInstall

postcss-image-set-function

Package Overview
Dependencies
8
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

15

index.js

@@ -25,4 +25,17 @@ const { parse } = require('postcss-values-parser');

if (imageSetValueMatchRegExp.test(value)) {
const valueAST = parse(value);
let valueAST
try {
valueAST = parse(value, { ignoreUnknownWords: true })
} catch (error) {
decl.warn(
helpers.result,
`Failed to parse value '${value}' as an image-set function. Leaving the original value intact.`
)
}
if (typeof valueAST === 'undefined') {
return
}
// process every image-set() function

@@ -29,0 +42,0 @@ valueAST.walkFuncs(node => {

16

package.json
{
"name": "postcss-image-set-function",
"version": "4.0.0",
"version": "4.0.1",
"description": "Display resolution-dependent images using the image-set() function in CSS",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"repository": "jonathantneal/postcss-image-set-function",
"homepage": "https://github.com/jonathantneal/postcss-image-set-function#readme",
"bugs": "https://github.com/jonathantneal/postcss-image-set-function/issues",
"repository": "csstools/postcss-image-set-function",
"homepage": "https://github.com/csstools/postcss-image-set-function#readme",
"bugs": "https://github.com/csstools/postcss-image-set-function/issues",
"main": "index.js",

@@ -30,6 +30,6 @@ "files": [

"devDependencies": {
"eslint": "7.32.0",
"eslint-config-dev": "2.0.0",
"postcss": "8.3.6",
"postcss-tape": "6.0.1"
"eslint": "^8.2.0",
"eslint-config-dev": "^2.0.0",
"postcss": "^8.3.11",
"postcss-tape": "^6.0.1"
},

@@ -36,0 +36,0 @@ "eslintConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc