🚀 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
1
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
1.1.3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.1.3
* Fixes a crash on `@` tokens.
# 1.1.2

@@ -2,0 +6,0 @@

5

dist/parser.js

@@ -362,2 +362,3 @@ 'use strict';

break;
case 'at-word':
case 'word':

@@ -380,4 +381,2 @@ this.word();

}
}, {
key: 'newNode',

@@ -388,2 +387,4 @@ /**

}, {
key: 'newNode',
value: function newNode(node, namespace) {

@@ -390,0 +391,0 @@ if (namespace) {

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _namespace = require('./namespace');

var Attribute = (function (_Namespace) {
_inherits(Attribute, _Namespace);
function Attribute(opts) {

@@ -32,4 +34,2 @@ _classCallCheck(this, Attribute);

_inherits(Attribute, _Namespace);
_createClass(Attribute, [{

@@ -36,0 +36,0 @@ key: 'toString',

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _namespace = require('./namespace');

var ClassName = (function (_Namespace) {
_inherits(ClassName, _Namespace);
function ClassName(opts) {

@@ -31,4 +33,2 @@ _classCallCheck(this, ClassName);

_inherits(ClassName, _Namespace);
_createClass(ClassName, [{

@@ -35,0 +35,0 @@ key: 'toString',

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -21,2 +21,4 @@ var _node = require('./node');

var Combinator = (function (_Node) {
_inherits(Combinator, _Node);
function Combinator(opts) {

@@ -29,4 +31,2 @@ _classCallCheck(this, Combinator);

_inherits(Combinator, _Node);
return Combinator;

@@ -33,0 +33,0 @@ })(_node2['default']);

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -21,2 +21,4 @@ var _node = require('./node');

var Comment = (function (_Node) {
_inherits(Comment, _Node);
function Comment(opts) {

@@ -29,4 +31,2 @@ _classCallCheck(this, Comment);

_inherits(Comment, _Node);
return Comment;

@@ -33,0 +33,0 @@ })(_node2['default']);

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _node = require('./node');

var Container = (function (_Node) {
_inherits(Container, _Node);
function Container(opts) {

@@ -33,4 +35,2 @@ _classCallCheck(this, Container);

_inherits(Container, _Node);
_createClass(Container, [{

@@ -37,0 +37,0 @@ key: 'append',

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _namespace = require('./namespace');

var ID = (function (_Namespace) {
_inherits(ID, _Namespace);
function ID(opts) {

@@ -31,4 +33,2 @@ _classCallCheck(this, ID);

_inherits(ID, _Namespace);
_createClass(ID, [{

@@ -35,0 +35,0 @@ key: 'toString',

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _node = require('./node');

var Namespace = (function (_Node) {
_inherits(Namespace, _Node);
function Namespace() {

@@ -30,4 +32,2 @@ _classCallCheck(this, Namespace);

_inherits(Namespace, _Node);
_createClass(Namespace, [{

@@ -34,0 +34,0 @@ key: 'toString',

@@ -38,6 +38,6 @@ 'use strict';

var _default = (function () {
var _class = function _default() {
var opts = arguments[0] === undefined ? {} : arguments[0];
function _default() {
var opts = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
_classCallCheck(this, _class);
_classCallCheck(this, _default);

@@ -48,5 +48,5 @@ for (var key in opts) {

this.spaces = { before: '', after: '' };
};
}
_createClass(_class, [{
_createClass(_default, [{
key: 'removeSelf',

@@ -84,3 +84,3 @@ value: function removeSelf() {

value: function clone() {
var overrides = arguments[0] === undefined ? {} : arguments[0];
var overrides = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];

@@ -100,3 +100,3 @@ var cloned = cloneNode(this);

return _class;
return _default;
})();

@@ -103,0 +103,0 @@

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _container = require('./container');

var Pseudo = (function (_Container) {
_inherits(Pseudo, _Container);
function Pseudo(opts) {

@@ -31,4 +33,2 @@ _classCallCheck(this, Pseudo);

_inherits(Pseudo, _Container);
_createClass(Pseudo, [{

@@ -35,0 +35,0 @@ key: 'toString',

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -23,2 +23,4 @@ var _container = require('./container');

var Root = (function (_Container) {
_inherits(Root, _Container);
function Root(opts) {

@@ -31,4 +33,2 @@ _classCallCheck(this, Root);

_inherits(Root, _Container);
_createClass(Root, [{

@@ -35,0 +35,0 @@ key: 'toString',

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -21,2 +21,4 @@ var _container = require('./container');

var Selector = (function (_Container) {
_inherits(Selector, _Container);
function Selector(opts) {

@@ -29,4 +31,2 @@ _classCallCheck(this, Selector);

_inherits(Selector, _Container);
return Selector;

@@ -33,0 +33,0 @@ })(_container2['default']);

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -21,2 +21,4 @@ var _namespace = require('./namespace');

var Tag = (function (_Namespace) {
_inherits(Tag, _Namespace);
function Tag(opts) {

@@ -29,4 +31,2 @@ _classCallCheck(this, Tag);

_inherits(Tag, _Namespace);
return Tag;

@@ -33,0 +33,0 @@ })(_namespace2['default']);

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

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

@@ -21,2 +21,4 @@ var _namespace = require('./namespace');

var Universal = (function (_Namespace) {
_inherits(Universal, _Namespace);
function Universal(opts) {

@@ -30,4 +32,2 @@ _classCallCheck(this, Universal);

_inherits(Universal, _Namespace);
return Universal;

@@ -34,0 +34,0 @@ })(_namespace2['default']);

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

exports['default'] = tokenize;
var singleQuote = '\''.charCodeAt(0),
var singleQuote = "'".charCodeAt(0),
doubleQuote = '"'.charCodeAt(0),

@@ -138,3 +138,3 @@ backslash = '\\'.charCodeAt(0),

case doubleQuote:
quote = code === singleQuote ? '\'' : '"';
quote = code === singleQuote ? "'" : '"';
next = pos;

@@ -141,0 +141,0 @@ do {

{
"name": "postcss-selector-parser",
"version": "1.1.2",
"version": "1.1.3",
"devDependencies": {

@@ -5,0 +5,0 @@ "babel": "^5.4.3",