Socket
Socket
Sign inDemoInstall

postcss-image-set-function

Package Overview
Dependencies
5
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.2 to 4.0.3

CHANGELOG.md

52

package.json
{
"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
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