Socket
Socket
Sign inDemoInstall

postcss-value-parser

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-value-parser - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

lib/index.d.ts

5

lib/parse.js

@@ -56,3 +56,6 @@ var openParentheses = "(".charCodeAt(0);

code === colon ||
(code === slash && value.charCodeAt(next + 1) !== star)
(code === slash &&
value.charCodeAt(next + 1) !== star &&
(!parent ||
(parent && parent.type === "function" && parent.value !== "calc")))
) {

@@ -59,0 +62,0 @@ before = token;

@@ -25,2 +25,24 @@ var minus = "-".charCodeAt(0);

sciPos = pos;
var nextCode = value.charCodeAt(pos + 1);
if (
nextCode === plus ||
nextCode === minus ||
(nextCode >= 48 && nextCode <= 57)
) {
if (nextCode === plus || nextCode === minus) {
var nextNextCode = value.charCodeAt(pos + 2);
if (nextNextCode < 48 || nextNextCode > 57) {
break;
}
pos += 1;
}
pos += 1;
} else {
break;
}
} else if (code === dot) {

@@ -27,0 +49,0 @@ if (dotted) {

2

package.json
{
"name": "postcss-value-parser",
"version": "4.0.0",
"version": "4.0.1",
"description": "Transforms css values and at-rule params into the tree",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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