Socket
Socket
Sign inDemoInstall

postcss-normalize-repeat-style

Package Overview
Dependencies
5
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.0 to 5.1.1

5

package.json
{
"name": "postcss-normalize-repeat-style",
"version": "5.1.0",
"version": "5.1.1",
"description": "Convert two value syntax for repeat-style into one value.",

@@ -34,4 +34,3 @@ "main": "src/index.js",

"postcss": "^8.2.15"
},
"readme": "# [postcss][postcss]-normalize-repeat-style\n\n> Normalize repeat styles with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-normalize-repeat-style) do:\n\n```\nnpm install postcss-normalize-repeat-style --save\n```\n\n## Example\n\n### Input\n\n```css\nh1 {\n background: url(image.jpg) repeat no-repeat\n}\n```\n\n### Output\n\n```css\nh1 {\n background: url(image.jpg) repeat-x\n}\n```\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n"
}
}

3

src/index.js

@@ -24,2 +24,3 @@ 'use strict';

const variableFunctions = new Set(['var', 'env', 'constant']);
/**

@@ -34,3 +35,3 @@ * @param {valueParser.Node} node

return ['var', 'env'].includes(node.value.toLowerCase());
return variableFunctions.has(node.value.toLowerCase());
}

@@ -37,0 +38,0 @@

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