Socket
Socket
Sign inDemoInstall

postcss-normalize-positions

Package Overview
Dependencies
2
Maintainers
7
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.1 to 5.0.2

8

dist/index.js

@@ -184,3 +184,3 @@ "use strict";

OnceExit(css) {
const cache = {};
const cache = new Map();
css.walkDecls(/^(background(-position)?|(-\w+-)?perspective-origin)$/i, decl => {

@@ -193,4 +193,4 @@ const value = decl.value;

if (cache[value]) {
decl.value = cache[value];
if (cache.has(value)) {
decl.value = cache.get(value);
return;

@@ -201,3 +201,3 @@ }

decl.value = result;
cache[value] = result;
cache.set(value, result);
});

@@ -204,0 +204,0 @@ }

{
"name": "postcss-normalize-positions",
"version": "5.0.1",
"version": "5.0.2",
"description": "Normalize keyword values for position into length values.",

@@ -10,7 +10,2 @@ "main": "dist/index.js",

],
"scripts": {
"prebuild": "del-cli dist",
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\"",
"prepublish": "yarn build"
},
"keywords": [

@@ -30,3 +25,3 @@ "css",

"dependencies": {
"postcss-value-parser": "^4.1.0"
"postcss-value-parser": "^4.2.0"
},

@@ -45,3 +40,7 @@ "bugs": {

},
"gitHead": "28c247175032fa03f04911cde56ad82d74d211cc"
}
"scripts": {
"prebuild": "rimraf dist",
"build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\""
},
"readme": "# [postcss][postcss]-normalize-positions\n\n> Normalize positions with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-normalize-positions) do:\n\n```\nnpm install postcss-normalize-positions --save\n```\n\n## Example\n\n### Input\n\n```css\ndiv {\n background-position: bottom left;\n}\n```\n\n### Output\n\n```css\ndiv {\n background-position:0 100%;\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"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc