@asamuzakjp/dom-selector 8.1.3 → 8.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/js/finder.js +2 -3
package/package.json
CHANGED
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@asamuzakjp/generational-cache": "^
|
|
28
|
+
"@asamuzakjp/generational-cache": "^3.0.1",
|
|
29
29
|
"bidi-js": "^1.0.3",
|
|
30
30
|
"css-tree": "^3.2.1",
|
|
31
31
|
"is-potential-custom-element-name": "^1.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/css-tree": "^2.3.11",
|
|
35
|
-
"@types/node": "^
|
|
35
|
+
"@types/node": "^26.0.0",
|
|
36
36
|
"c8": "^11.0.0",
|
|
37
37
|
"chai": "^6.2.2",
|
|
38
38
|
"commander": "^15.0.0",
|
|
39
39
|
"eslint": "^9.39.4",
|
|
40
40
|
"eslint-config-prettier": "^10.1.8",
|
|
41
|
-
"eslint-plugin-jsdoc": "^63.0.
|
|
41
|
+
"eslint-plugin-jsdoc": "^63.0.6",
|
|
42
42
|
"eslint-plugin-prettier": "^5.5.6",
|
|
43
43
|
"eslint-plugin-regexp": "^3.1.0",
|
|
44
44
|
"eslint-plugin-unicorn": "^65.0.1",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": "^22.13.0 || >=24.0.0"
|
|
90
90
|
},
|
|
91
|
-
"version": "8.1.
|
|
91
|
+
"version": "8.1.4"
|
|
92
92
|
}
|
package/src/js/finder.js
CHANGED
|
@@ -3123,8 +3123,7 @@ export class Finder {
|
|
|
3123
3123
|
}
|
|
3124
3124
|
const [[...branches], collectedNodes] = collection;
|
|
3125
3125
|
const l = branches.length;
|
|
3126
|
-
let sort =
|
|
3127
|
-
l > 1 && targetType === TARGET_ALL && this.#selector.includes(':scope');
|
|
3126
|
+
let sort = l > 1 && targetType === TARGET_ALL;
|
|
3128
3127
|
let nodes = new Set();
|
|
3129
3128
|
for (let i = 0; i < l; i++) {
|
|
3130
3129
|
const { branch, dir, find } = branches[i];
|
|
@@ -3161,8 +3160,8 @@ export class Finder {
|
|
|
3161
3160
|
nodes.add(entryNodes[0]);
|
|
3162
3161
|
}
|
|
3163
3162
|
}
|
|
3164
|
-
// Handle complex selectors.
|
|
3165
3163
|
} else {
|
|
3164
|
+
// Handle complex selectors.
|
|
3166
3165
|
if (targetType === TARGET_ALL) {
|
|
3167
3166
|
const newNodes = this._processComplexBranchAll(
|
|
3168
3167
|
branch,
|