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

postcss-lab-function

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-lab-function - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

CHANGELOG.md
# Changes to PostCSS Lab Function
### 1.0.1 (May 11, 2018)
- Fixed: Values beyond the acceptable 0-255 RGB range
### 1.0.0 (May 11, 2018)
- Initial version

2

index.cjs.js

@@ -58,3 +58,3 @@ 'use strict';

}))).map(function (sourceValue) {
return parseInt(sourceValue * 2.55);
return Math.max(Math.min(parseInt(sourceValue * 2.55), 255), 0);
});

@@ -61,0 +61,0 @@

@@ -54,3 +54,3 @@ import { lab2rgb, lch2rgb } from '@csstools/convert-colors';

}))).map(function (sourceValue) {
return parseInt(sourceValue * 2.55);
return Math.max(Math.min(parseInt(sourceValue * 2.55), 255), 0);
});

@@ -57,0 +57,0 @@

{
"name": "postcss-lab-function",
"version": "1.0.0",
"version": "1.0.1",
"description": "Use lab() and lch() color functions in CSS",

@@ -5,0 +5,0 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

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