css-what
Advanced tools
Comparing version 5.0.1 to 5.1.0
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -35,2 +39,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
"is", | ||
"where", | ||
"host", | ||
@@ -41,3 +46,3 @@ "host-context", | ||
"descendant" | ||
], Object.keys(Traversals).map(function (k) { return Traversals[k]; }))); | ||
], Object.keys(Traversals).map(function (k) { return Traversals[k]; }), true)); | ||
/** | ||
@@ -226,3 +231,2 @@ * Attributes that are case-insensitive in HTML. | ||
// Determine attribute name and namespace | ||
var name_2 = void 0; | ||
var namespace = null; | ||
@@ -237,3 +241,3 @@ if (selector.charAt(selectorIndex) === "|") { | ||
} | ||
name_2 = getName(0); | ||
var name_2 = getName(0); | ||
if (namespace === null && | ||
@@ -240,0 +244,0 @@ selector.charAt(selectorIndex) === "|" && |
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -19,3 +23,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
.map(function (typeKey) { return actionTypes[typeKey]; }) | ||
.filter(Boolean)), [ | ||
.filter(Boolean), true), [ | ||
":", | ||
@@ -29,3 +33,3 @@ "[", | ||
"'", | ||
])); | ||
], false)); | ||
/** | ||
@@ -32,0 +36,0 @@ * Turns `selector` back into a string. |
@@ -5,3 +5,3 @@ { | ||
"description": "a CSS selector parser", | ||
"version": "5.0.1", | ||
"version": "5.1.0", | ||
"funding": { | ||
@@ -19,4 +19,4 @@ "url": "https://github.com/sponsors/fb55" | ||
"scripts": { | ||
"test": "jest --coverage -u && npm run lint", | ||
"coverage": "cat coverage/lcov.info | coveralls", | ||
"test": "npm run test:jest && npm run lint", | ||
"test:jest": "jest", | ||
"lint": "npm run lint:es && npm run lint:prettier", | ||
@@ -33,14 +33,13 @@ "lint:es": "eslint src", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.3", | ||
"@types/node": "^15.0.1", | ||
"@typescript-eslint/eslint-plugin": "^4.1.0", | ||
"@typescript-eslint/parser": "^4.1.0", | ||
"coveralls": "^3.0.5", | ||
"eslint": "^7.0.0", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^16.10.3", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"jest": "^27.0.1", | ||
"prettier": "^2.0.5", | ||
"ts-jest": "^27.0.1", | ||
"typescript": "^4.0.2" | ||
"jest": "^27.2.4", | ||
"prettier": "^2.4.1", | ||
"ts-jest": "^27.0.5", | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -47,0 +46,0 @@ "optionalDependencies": {}, |
Sorry, the diff of this file is not supported yet
32764
11
638