🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

postcss-values-parser

Package Overview
Dependencies
Maintainers
1
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

to
1.2.1

.github/ISSUE_TEMPLATE.md

12

lib/parser.js

@@ -172,6 +172,12 @@ 'use strict';

// if ((!this.current.nodes.length || (this.current.last && this.current.last.type === 'operator')) && this.nextToken[0] === 'word') {
if (this.nextToken[0] === 'word') {
return this.word();
if (!this.options.loose) {
if (this.nextToken[0] === 'word') {
return this.word();
}
}
else {
if ((!this.current.nodes.length || (this.current.last && this.current.last.type === 'operator')) && this.nextToken[0] === 'word') {
return this.word();
}
}
}

@@ -178,0 +184,0 @@

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

@@ -41,4 +41,4 @@ "main": "lib/index.js",

"gulp-eslint": "^3.0.1",
"gulp-mocha": "^3.0.1"
"gulp-mocha": "^4.0.1"
}
}

@@ -1,2 +0,2 @@

# postcss-values-parser
# postcss-values-parser [![Build Status](https://travis-ci.org/lesshint/postcss-values-parser.svg?branch=master)](https://travis-ci.org/lesshint/postcss-values-parser)

@@ -7,7 +7,13 @@ <img align="right" width="95" height="95"

[![Build Status](https://travis-ci.org/lesshint/postcss-values-parser.svg?branch=master)](https://travis-ci.org/lesshint/postcss-values-parser)
A CSS property value parser for use with [PostCSS](https://github.com/postcss/postcss),
following the same node, container, and traversal patterns as PostCSS.
## &nbsp;
<p align="center">
<b>:rocket: &nbsp; Are you ready to tackle ES6 and hone your JavaScript Skills?</b> &nbsp; :rocket:<br/>
Check out these outstanding <a href="https://es6.io/">ES6 courses</a> by <a href="https://github.com/wesbos">@wesbos</a>
</p>
---
As with PostCSS and postcss-selector-parser, this parser generates an

@@ -14,0 +20,0 @@ [Abstract Syntax Tree](https://en.wikipedia.org/wiki/Abstract_syntax_tree),