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

postcss-values-parser

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-values-parser - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

34

dist/tokenize.js

@@ -47,3 +47,4 @@ 'use strict';

escaped = void 0,
escapePos = void 0;
escapePos = void 0,
nextChar = void 0;

@@ -89,11 +90,2 @@ var length = css.length;

case plus:
case minus:
case asterisk:
next = pos + 1;
tokens.push(['operator', css.slice(pos, next), line, pos - offset, line, next - offset, pos]);
pos = next - 1;
break;
case colon:

@@ -169,2 +161,24 @@ next = pos + 1;

case plus:
case minus:
case asterisk:
next = pos + 1;
nextChar = css.slice(pos + 1, next + 1);
// if the operator is immediately followed by a word character, then we
// have a prefix of some kind, and should fall-through. eg. -webkit
/* eslint no-fallthrough: 0 */
if (!/[a-z]/gi.test(nextChar)) {
tokens.push(['operator', css.slice(pos, next), line, pos - offset, line, next - offset, pos]);
pos = next - 1;
break;
}
// NOTE: This is the only case that should fall-through. If we run into
// another situation where we need fall-through, then we need to break
// this select out into functions.
default:

@@ -171,0 +185,0 @@ if (code === slash && css.charCodeAt(pos + 1) === asterisk) {

{
"name": "postcss-values-parser",
"version": "0.1.6",
"version": "0.1.7",
"description": "A CSS property value parser for use with PostCSS",

@@ -5,0 +5,0 @@ "author": {

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