postcss-image-set-function
Advanced tools
Comparing version 4.0.2 to 4.0.3
{ | ||
"name": "postcss-image-set-function", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Display resolution-dependent images using the image-set() function in CSS", | ||
"author": "Jonathan Neal <jonathantneal@hotmail.com>", | ||
"license": "CC0-1.0", | ||
"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", | ||
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function#readme", | ||
"bugs": "https://github.com/csstools/postcss-plugins/issues", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"lib/" | ||
"CHANGELOG.md", | ||
"INSTALL.md", | ||
"LICENSE.md", | ||
"README.md", | ||
"dist" | ||
], | ||
"bin": { | ||
"postcss-image-set-function": "dist/cli.mjs" | ||
}, | ||
"scripts": { | ||
"prepublishOnly": "npm test", | ||
"test": "echo 'Running tests...'; npm run test:js && npm run test:tape", | ||
"test:js": "eslint *.js --cache --ignore-path .gitignore --quiet", | ||
"test:tape": "postcss-tape" | ||
"build": "rollup -c ../../rollup/default.js", | ||
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"", | ||
"lint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test", | ||
"stryker": "stryker run --logLevel error", | ||
"test": "postcss-tape --ci" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": "^12 || ^14 || >=16" | ||
}, | ||
"dependencies": { | ||
"postcss-values-parser": "6.0.1" | ||
"postcss-value-parser": "^4.2.0" | ||
}, | ||
"peerDependencies": { | ||
"postcss": "^8.3" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.2.0", | ||
"eslint-config-dev": "^2.0.0", | ||
"postcss": "^8.3.11", | ||
"postcss": "^8.3.6", | ||
"postcss-tape": "^6.0.1" | ||
}, | ||
"eslintConfig": { | ||
"extends": "dev" | ||
"peerDependencies": { | ||
"postcss": "^8.3" | ||
}, | ||
@@ -49,3 +54,8 @@ "keywords": [ | ||
"optimization" | ||
] | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/csstools/postcss-plugins.git", | ||
"directory": "plugins/postcss-image-set-function" | ||
} | ||
} |
@@ -59,13 +59,5 @@ # PostCSS image-set() Function [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss] | ||
Use [PostCSS image-set() Function] to process your CSS: | ||
Use [PostCSS image-set() Function] as a [PostCSS] plugin: | ||
```js | ||
const postcssImageSetFunction = require('postcss-image-set-function'); | ||
postcssImageSetFunction.process(YOUR_CSS /*, processOptions, pluginOptions */); | ||
``` | ||
Or use it as a [PostCSS] plugin: | ||
```js | ||
const postcss = require('postcss'); | ||
@@ -107,4 +99,6 @@ const postcssImageSetFunction = require('postcss-image-set-function'); | ||
.example { | ||
background-image: url(img.png); | ||
@media (-webkit-min-device-pixel-ratio: 1), (min-resolution: 96dpi) { | ||
.example { | ||
background-image: url(img.png); | ||
} | ||
} | ||
@@ -157,4 +151,4 @@ | ||
[cli-img]: https://github.com/csstools/postcss-image-set-function/workflows/test/badge.svg | ||
[cli-url]: https://github.com/csstools/postcss-image-set-function/actions/workflows/test.yml?query=workflow/test | ||
[cli-img]: https://github.com/csstools/postcss-plugins/workflows/test/badge.svg | ||
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test | ||
[css-img]: https://cssdb.org/badge/image-set-function.svg | ||
@@ -172,2 +166,2 @@ [css-url]: https://cssdb.org/#image-set-function | ||
[PostCSS Loader]: https://github.com/postcss/postcss-loader | ||
[PostCSS image-set() Function]: https://github.com/jonathantneal/postcss-image-set-function | ||
[PostCSS image-set() Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
138170
2
17
385
1
164
12
2
+ Addedpostcss-value-parser@^4.2.0
+ Addedpostcss-value-parser@4.2.0(transitive)
- Removedpostcss-values-parser@6.0.1
- Removedcolor-name@1.1.4(transitive)
- Removedis-url-superb@4.0.0(transitive)
- Removedpostcss-values-parser@6.0.1(transitive)
- Removedquote-unquote@1.0.0(transitive)