postcss-convert-values
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -0,1 +1,5 @@ | ||
# 1.2.5 | ||
* Fixes an issue where uppercase units (such as PX) were being deleted. | ||
# 1.2.4 | ||
@@ -2,0 +6,0 @@ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -29,3 +29,3 @@ 'use strict'; | ||
for (max = 4; max !== 0; max -= 1) { | ||
index = units.indexOf(value.slice(-max)); | ||
index = units.indexOf(value.slice(-max).toLowerCase()); | ||
if (~index) { | ||
@@ -32,0 +32,0 @@ return units[index]; |
{ | ||
"name": "postcss-convert-values", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Convert values with PostCSS (e.g. ms -> s)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,6 @@ # [postcss][postcss]-convert-values [![Build Status](https://travis-ci.org/ben-eb/postcss-convert-values.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-convert-values.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-convert-values.svg)][deps] | ||
This plugin reduces CSS size by converting values to use different units | ||
where possible; for example, `500ms` can be represented as `.5s`. You can | ||
read more about these units in [this article][csstricks]. | ||
```js | ||
@@ -42,1 +46,3 @@ var postcss = require('postcss'); | ||
[postcss]: https://github.com/postcss/postcss | ||
[csstricks]: https://css-tricks.com/the-lengths-of-css/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8200
47
0