optimal-select
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,8 @@ | ||
## [v2.0.2] | ||
> Mar 07, 2016 | ||
- fix splitting of select segments in case attribute values contain spaces | ||
- lookup the `class` attribute instead of the `className` property to support svg elements | ||
## [v2.0.1] | ||
@@ -27,3 +34,3 @@ > Jan 24, 2016 | ||
- add '.npmignore' | ||
- add `.npmignore` | ||
@@ -30,0 +37,0 @@ |
@@ -21,2 +21,2 @@ 'use strict'; | ||
exports.default = _select3.default; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O1FBQU8sTUFBTTtRQUNOLFFBQVE7UUFFUixPQUFPIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHNlbGVjdCBmcm9tICcuL3NlbGVjdCdcbmV4cG9ydCBvcHRpbWl6ZSBmcm9tICcuL29wdGltaXplJ1xuXG5leHBvcnQgZGVmYXVsdCBmcm9tICcuL3NlbGVjdCdcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O1FBQU87UUFDQTtRQUVBIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHNlbGVjdCBmcm9tICcuL3NlbGVjdCdcbmV4cG9ydCBvcHRpbWl6ZSBmcm9tICcuL29wdGltaXplJ1xuXG5leHBvcnQgZGVmYXVsdCBmcm9tICcuL3NlbGVjdCdcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ== |
@@ -90,3 +90,3 @@ 'use strict'; | ||
function checkClassChild(element, path, options) { | ||
var className = element.className; | ||
var className = element.getAttribute('class'); | ||
if (!className || compareExcludes(className, options.excludes.class)) { | ||
@@ -198,3 +198,3 @@ return false; | ||
function checkClass(element, path, parent, options) { | ||
var className = element.className; | ||
var className = element.getAttribute('class'); | ||
if (!className || compareExcludes(className, options.excludes.class)) { | ||
@@ -288,2 +288,2 @@ return false; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1hdGNoLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O2tCQVl3QixLQUFLOzs7Ozs7Ozs7Ozs7O0FBQWQsU0FBUyxLQUFLLENBQUUsSUFBSSxFQUFFLE9BQU8sRUFBRTtBQUM1QyxNQUFNLElBQUksR0FBRyxFQUFFLENBQUE7QUFDZixNQUFJLE9BQU8sR0FBRyxJQUFJLENBQUE7QUFDbEIsTUFBSSxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQTs7QUFFeEIsU0FBTyxPQUFPLEtBQUssUUFBUSxFQUFFOztBQUUzQixRQUFJLE9BQU8sQ0FBQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE9BQU8sQ0FBQyxFQUFFLE1BQUs7QUFDMUMsUUFBSSxnQkFBZ0IsQ0FBQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE9BQU8sQ0FBQyxFQUFFLE1BQUs7QUFDbkQsUUFBSSxvQkFBb0IsQ0FBQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE9BQU8sQ0FBQyxFQUFFLE1BQUs7QUFDdkQsUUFBSSxjQUFjLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxFQUFFLE1BQUs7OztBQUFBLEFBR3hDLG1CQUFlLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRSxPQUFPLENBQUM7OztBQUFBLEFBR3ZDLFFBQUksSUFBSSxDQUFDLE1BQU0sS0FBSyxN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gW2Rlc2NyaXB0aW9uXVxuICovXG5mdW5jdGlvbiBjaGVja0NoaWxkIChlbGVtZW50LCBwYXRoLCBzZWxlY3Rvcikge1xuICBjb25zdCBwYXJlbnQgPSBlbGVtZW50LnBhcmVudE5vZGVcbiAgY29uc3QgY2hpbGRyZW4gPSBwYXJlbnQuY2hpbGRyZW5cbiAgZm9yICh2YXIgaSA9IDAsIGwgPSBjaGlsZHJlbi5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICBpZiAoY2hpbGRyZW5baV0gPT09IGVsZW1lbnQpIHtcbiAgICAgIHBhdGgudW5zaGlmdChgPiAke3NlbGVjdG9yfTpudGgtY2hpbGQoJHtpKzF9KWApXG4gICAgICByZXR1cm4gdHJ1ZVxuICAgIH1cbiAgfVxuICByZXR1cm4gZmFsc2Vcbn1cblxuLyoqXG4gKiBbY29tcGFyZUV4Y2x1ZGVzIGRlc2NyaXB0aW9uXVxuICogQHBhcmFtICB7U3RyaW5nfSAgICAgICAgICAgIHZhbHVlICAgIC0gW2Rlc2NyaXB0aW9uXVxuICogQHBhcmFtICB7TnVsbHxTdHJpbmd8QXJyYXl9IGV4Y2x1ZGVzIC0gW2Rlc2NyaXB0aW9uXVxuICogQHJldHVybiB7Qm9vbGVhbn0gICAgICAgICAgICAgICAgICAgIC0gW2Rlc2NyaXB0aW9uXVxuICovXG5mdW5jdGlvbiBjb21wYXJlRXhjbHVkZXMgKHZhbHVlLCBleGNsdWRlcykge1xuICBpZiAoIWV4Y2x1ZGVzKSB7XG4gICAgcmV0dXJuIGZhbHNlXG4gIH1cbiAgcmV0dXJuIGV4Y2x1ZGVzLnNvbWUoKGV4Y2x1ZGUpID0+IGV4Y2x1ZGUudGVzdCh2YWx1ZSkpXG59XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= |
@@ -11,3 +11,3 @@ 'use strict'; | ||
* 1.) Improve efficiency through shorter selectors by removing redundancy | ||
* 2.) Improve robustness through selector tranformation | ||
* 2.) Improve robustness through selector transformation | ||
*/ | ||
@@ -22,4 +22,6 @@ | ||
function optimize(selector, element) { | ||
var path = selector.replace(/> /g, '>').split(' '); | ||
// chunk parts outside of quotes (http://stackoverflow.com/a/25663729) | ||
var path = selector.replace(/> /g, '>').split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/); | ||
if (path.length < 3) { | ||
@@ -124,12 +126,12 @@ return selector; | ||
if (current && current.match(/\./g).length > 2) { | ||
var references = document.querySelectorAll('' + prePart + current); | ||
for (var i = 0, l = references.length; i < l; i++) { | ||
if (references[i].contains(element)) { | ||
var _references = document.querySelectorAll('' + prePart + current); | ||
for (var i = 0, l = _references.length; i < l; i++) { | ||
if (_references[i].contains(element)) { | ||
// TODO: | ||
// - check using attributes + regard excludes | ||
var description = references[i].tagName.toLowerCase(); | ||
var pattern = '' + prePart + description + postPart; | ||
var _description = _references[i].tagName.toLowerCase(); | ||
var pattern = '' + prePart + _description + postPart; | ||
var matches = document.querySelectorAll(pattern); | ||
if (matches.length === 1 && matches[0] === element) { | ||
current = description; | ||
current = _description; | ||
} | ||
@@ -145,2 +147,2 @@ break; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9wdGltaXplLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O2tCQWF3QixRQUFROzs7Ozs7Ozs7Ozs7OztBQUFqQixTQUFTLFFBQVEsQ0FBRSxRQUFRLEVBQUUsT0FBTyxFQUFFO0FBQ25ELE1BQUksSUFBSSxHQUFHLFFBQVEsQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLEdBQUcsQ0FBQyxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQTs7QUFFbEQsTUFBSSxJQUFJLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRTtBQUNuQixXQUFPLFFBQVEsQ0FBQTtHQUNoQjs7QUFFRCxNQUFNLFNBQVMsR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50Lm1hdGNoKC9cXC4vZykubGVuZ3RoID4gMikge1xuICAgICAgY29uc3QgcmVmZXJlbmNlcyA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoYCR7cHJlUGFydH0ke2N1cnJlbnR9YClcbiAgICAgIGZvciAodmFyIGkgPSAwLCBsID0gcmVmZXJlbmNlcy5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICAgICAgaWYgKHJlZmVyZW5jZXNbaV0uY29udGFpbnMoZWxlbWVudCkpIHtcbiAgICAgICAgICAvLyBUT0RPOlxuICAgICAgICAgIC8vIC0gY2hlY2sgdXNpbmcgYXR0cmlidXRlcyArIHJlZ2FyZCBleGNsdWRlc1xuICAgICAgICAgIGNvbnN0IGRlc2NyaXB0aW9uID0gcmVmZXJlbmNlc1tpXS50YWdOYW1lLnRvTG93ZXJDYXNlKClcbiAgICAgICAgICB2YXIgcGF0dGVybiA9IGAke3ByZVBhcnR9JHtkZXNjcmlwdGlvbn0ke3Bvc3RQYXJ0fWBcbiAgICAgICAgICB2YXIgbWF0Y2hlcyA9IGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwocGF0dGVybilcbiAgICAgICAgICBpZiAobWF0Y2hlcy5sZW5ndGggPT09IDEgJiYgbWF0Y2hlc1swXSA9PT0gZWxlbWVudCkge1xuICAgICAgICAgICAgY3VycmVudCA9IGRlc2NyaXB0aW9uXG4gICAgICAgICAgfVxuICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICByZXR1cm4gY3VycmVudFxufVxuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9 |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; /** | ||
@@ -10,5 +14,2 @@ * # Select | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = getQuerySelector; | ||
@@ -83,3 +84,3 @@ exports.getSingleSelector = getSingleSelector; | ||
// optimized:${optimized} | ||
// `); | ||
// `) | ||
@@ -153,2 +154,2 @@ return optimized; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNlbGVjdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7a0JBd0J3QixnQkFBZ0I7UUFxQnhCLGlCQUFpQixHQUFqQixpQkFBaUI7UUEyQmpCLGdCQUFnQixHQUFoQixnQkFBZ0I7Ozs7Ozs7Ozs7OztBQTlEaEMsSUFBTSxjQUFjLEdBQUc7QUFDckIsVUFBUSxFQUFFO0FBQ1IsV0FBTyxFQUFFLElBQUk7QUFDYixrQkFBYyxFQUFFLElBQUk7QUFDcEIseUJBQXFCLEVBQUUsSUFBSTtHQUM1QjtDQUNGOzs7Ozs7OztBQUFBLEFBUWMsU0FBUyxnQkFBZ0IsQ0FBRSxLQUFLLEVBQWdCO01BQWQsT0FBTyx5REFBRyxFQUFFOztBQUMzRCxTQUFPLGdCQUFRLGNBQWMsRUFBSyxPQUFPLENBQUUsQ0FBQTtBQUMzQyxRQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQyxPQUFPLENBQUMsVUFBQyxTQUFTLEVBQUs7QUFDbkQsUUFBSSxRQUFRLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUMxQyxRQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsRUFBRTtBQUM1QixjQUFRLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBQTtLQUN0QjtBQUNELFdBQU8sQ0FBQyxRQUFRLENBQUMsU0FBUyxDQUFDLEdBQUc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1vbkF0dHJpYnV0ZSwgY29tbW9uVGFnTmFtZSlcblxuICBpZiAoY29tbW9uQ2xhc3NOYW1lKSB7XG4gICAgcmV0dXJuIGAke3NlbGVjdG9yfSA+IC4ke2NvbW1vbkNsYXNzTmFtZS5yZXBsYWNlKC8gL2csICcuJyl9YFxuICB9XG4gIC8vIGlmIChjb21tb25BdHRyaWJ1dGUpIHtcbiAgLy9cbiAgLy8gfVxuICBpZiAoY29tbW9uVGFnTmFtZSkge1xuICAgIHJldHVybiBgJHtzZWxlY3Rvcn0gPiAke2NvbW1vblRhZ05hbWUudG9Mb3dlckNhc2UoKX1gXG4gIH1cbiAgcmV0dXJuIGAke3NlbGVjdG9yfSA+ICpgXG59XG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0= |
{ | ||
"name": "optimal-select", | ||
"description": "Get efficient & robust CSS selectors for HTML elements", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"author": "Stefan Dühring | Autarc <autarc@gmail.com>", | ||
@@ -10,17 +10,17 @@ "bugs": { | ||
"devDependencies": { | ||
"babel-loader": "^6.2.1", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-stage-0": "^6.3.13", | ||
"babel-register": "^6.4.3", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babel-register": "^6.6.5", | ||
"deep-merge": "^1.0.0", | ||
"fs-extra": "^0.26.4", | ||
"gulp": "^3.9.0", | ||
"gulp-babel": "^6.1.1", | ||
"fs-extra": "^0.26.5", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-load-plugins": "^1.2.0", | ||
"gulp-plumber": "^1.0.1", | ||
"gulp-plumber": "^1.1.0", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"gulp-util": "^3.0.7", | ||
"gulp-watch": "^4.3.5", | ||
"webpack": "^1.12.11" | ||
"webpack": "^1.12.14" | ||
}, | ||
@@ -27,0 +27,0 @@ "homepage": "https://github.com/Autarc/optimal-select", |
@@ -50,2 +50,3 @@ [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
- check attributes for complex classname | ||
- fix ["#3 - Match line breaking attribute values"](https://github.com/Autarc/optimal-select/issues/3) | ||
@@ -52,0 +53,0 @@ ### Development |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
56
0
62136
686