@augment-vir/browser
Advanced tools
Comparing version 21.7.0 to 22.0.0
@@ -1,2 +0,2 @@ | ||
import { isRuntimeTypeOf } from '@augment-vir/common'; | ||
import { isRunTimeType } from 'run-time-assertions'; | ||
import { getNestedChildren } from './element-children'; | ||
@@ -11,3 +11,3 @@ /** | ||
export function queryChildren(startingElement, query) { | ||
const finalQuery = isRuntimeTypeOf(query, 'string') ? query : query.tagName; | ||
const finalQuery = isRunTimeType(query, 'string') ? query : query.tagName; | ||
const allNestedChildren = getNestedChildren(startingElement); | ||
@@ -14,0 +14,0 @@ const matches = allNestedChildren.filter((child) => child.matches(finalQuery)); |
@@ -1,2 +0,3 @@ | ||
import { isRuntimeTypeOf, isTruthy } from '@augment-vir/common'; | ||
import { isTruthy } from '@augment-vir/common'; | ||
import { isRunTimeType } from 'run-time-assertions'; | ||
export function queryThroughShadow(inputs) { | ||
@@ -75,3 +76,3 @@ const splitQuery = inputs.query.split(' ').filter(isTruthy); | ||
} | ||
if (isRuntimeTypeOf(results, 'array')) { | ||
if (isRunTimeType(results, 'array')) { | ||
return results | ||
@@ -78,0 +79,0 @@ .map((result) => { |
{ | ||
"name": "@augment-vir/browser", | ||
"version": "21.7.0", | ||
"version": "22.0.0", | ||
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/browser", | ||
@@ -27,8 +27,9 @@ "bugs": { | ||
"dependencies": { | ||
"@augment-vir/common": "^21.7.0", | ||
"@augment-vir/common": "^22.0.0", | ||
"element-vir": "^17.0.0", | ||
"html-spec-tags": "^1.0.0" | ||
"html-spec-tags": "^1.0.0", | ||
"run-time-assertions": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"@augment-vir/browser-testing": "^21.7.0", | ||
"@augment-vir/browser-testing": "^22.0.0", | ||
"@open-wc/testing": "^4.0.0", | ||
@@ -43,4 +44,3 @@ "@types/chai": "^4.3.10", | ||
"istanbul-smart-text-reporter": "^1.1.2", | ||
"run-time-assertions": "^0.1.3", | ||
"type-fest": "^4.7.1", | ||
"type-fest": "^4.8.1", | ||
"typescript": "^5.2.2" | ||
@@ -47,0 +47,0 @@ }, |
23583
12
542
4
+ Addedrun-time-assertions@^0.2.0
+ Addedrun-time-assertions@0.2.1(transitive)
- Removed@augment-vir/common@21.7.0(transitive)
Updated@augment-vir/common@^22.0.0