@augment-vir/web 30.2.0 → 30.4.0
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.
|
@@ -16,9 +16,9 @@ export declare function queryThroughShadow(element: Element | ShadowRoot, query:
|
|
|
16
16
|
}): Element[];
|
|
17
17
|
export declare function queryThroughShadow(element: Element | ShadowRoot, query: string | {
|
|
18
18
|
tagName: string;
|
|
19
|
-
}, options
|
|
19
|
+
}, options?: {
|
|
20
20
|
all?: false | undefined;
|
|
21
21
|
}): Element | undefined;
|
|
22
22
|
export declare function queryThroughShadow(element: Element | ShadowRoot, query: string | {
|
|
23
23
|
tagName: string;
|
|
24
|
-
}, options
|
|
24
|
+
}, options?: QueryThroughShadowOptions): Element | Element[] | undefined;
|
|
@@ -8,7 +8,7 @@ import { stringify } from '@augment-vir/core';
|
|
|
8
8
|
* @category Package : @augment-vir/web
|
|
9
9
|
* @package [`@augment-vir/web`](https://www.npmjs.com/package/@augment-vir/web)
|
|
10
10
|
*/
|
|
11
|
-
export function queryThroughShadow(element, rawQuery, options) {
|
|
11
|
+
export function queryThroughShadow(element, rawQuery, options = {}) {
|
|
12
12
|
if (!rawQuery) {
|
|
13
13
|
if (element instanceof Element) {
|
|
14
14
|
return element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/web",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.4.0",
|
|
4
4
|
"description": "A collection of augments, helpers types, functions, and classes only for web (frontend) JavaScript environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"augment",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"test:update": "npm test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@augment-vir/assert": "^30.
|
|
39
|
-
"@augment-vir/common": "^30.
|
|
38
|
+
"@augment-vir/assert": "^30.4.0",
|
|
39
|
+
"@augment-vir/common": "^30.4.0",
|
|
40
40
|
"@date-vir/duration": "^6.0.1",
|
|
41
41
|
"html-spec-tags": "^2.2.1",
|
|
42
42
|
"type-fest": "^4.26.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@augment-vir/test": "^30.
|
|
45
|
+
"@augment-vir/test": "^30.4.0",
|
|
46
46
|
"bowser": "^2.11.0",
|
|
47
|
-
"typescript": "^5.6.
|
|
47
|
+
"typescript": "^5.6.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"element-vir": ">=22.0.0"
|