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

postcss-selector-parser

Package Overview
Dependencies
Maintainers
5
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-selector-parser - npm Package Compare versions

Comparing version

to
5.0.0-rc.4

9

CHANGELOG.md

@@ -0,1 +1,10 @@

# 5.0.0-rc.4
- Fixed and issue where comments immediately after an insensitive
(in attribute) were not parsed correctly.
- Updated `cssesc` to 2.0.0 (major).
- Removed outdated integration tests.
- Added tests for custom selectors, tags with attributes, the universal
selector with pseudos, and tokens after combinators.
# 5.0.0-rc.1

@@ -2,0 +11,0 @@

2

dist/parser.js

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

if (lastAdded) {
if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space) {
if (spaceAfterMeaningfulToken || next && next[_tokenize.FIELDS.TYPE] === tokens.space || lastAdded === 'insensitive') {
var lastComment = (0, _util.getProp)(node, 'spaces', lastAdded, 'after') || '';

@@ -406,0 +406,0 @@ var rawLastComment = (0, _util.getProp)(node, 'raws', 'spaces', lastAdded, 'after') || lastComment;

{
"name": "postcss-selector-parser",
"version": "5.0.0-rc.3",
"version": "5.0.0-rc.4",
"devDependencies": {
"ava": "^0.25.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.4.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-plugin-add-module-exports": "^0.2.0",
"babel-plugin-precompile-charcodes": "^1.0.0",
"babel-preset-es2015": "^6.3.13",
"babel-plugin-precompile-charcodes": "^1.1.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2015-loose": "^7.0.0",
"babel-preset-stage-0": "^6.3.13",
"babel-register": "^6.9.0",
"coveralls": "^2.11.6",
"del-cli": "^0.2.0",
"babel-preset-stage-0": "^6.24.1",
"babel-register": "^6.26.0",
"coveralls": "^3.0.2",
"del-cli": "^1.1.0",
"eslint": "^4.19.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^2.11.0",
"glob": "^7.0.3",
"eslint-plugin-import": "^2.14.0",
"glob": "^7.1.3",
"minimist": "^1.2.0",
"nyc": "^11.7.3",
"postcss": "^6.0.6",
"semver": "^5.5.0"
"postcss": "^7.0.5",
"semver": "^5.6.0"
},

@@ -43,4 +44,3 @@ "main": "dist/index.js",

"dependencies": {
"babel-eslint": "^8.2.3",
"cssesc": "^1.0.1",
"cssesc": "^2.0.0",
"indexes-of": "^1.0.1",

@@ -47,0 +47,0 @@ "uniq": "^1.0.1"