Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-convert-values

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-convert-values - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

4

CHANGELOG.md

@@ -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';

2

lib/parseUnit.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc