@markuplint/selector
Advanced tools
Comparing version 3.6.1 to 3.7.0
@@ -50,3 +50,6 @@ "use strict"; | ||
const query = _query === null || _query === void 0 ? void 0 : _query.replace(/\s+/g, '').toLowerCase(); | ||
const version = _version === '1.1' ? '1.1' : '1.2'; | ||
const version = _version !== null && _version !== void 0 ? _version : ml_spec_1.ARIA_RECOMMENDED_VERSION; | ||
if (!(0, ml_spec_1.validateAriaVersion)(version)) { | ||
throw new SyntaxError(`Unsupported ARIA version: ${version}`); | ||
} | ||
switch (query) { | ||
@@ -53,0 +56,0 @@ case 'hasname': { |
@@ -11,3 +11,3 @@ "use strict"; | ||
const aria = ariaPseudoClassParser(content); | ||
const computed = (0, ml_spec_1.getComputedRole)(specs, el, (_a = aria.version) !== null && _a !== void 0 ? _a : '1.2'); | ||
const computed = (0, ml_spec_1.getComputedRole)(specs, el, (_a = aria.version) !== null && _a !== void 0 ? _a : ml_spec_1.ARIA_RECOMMENDED_VERSION); | ||
if (((_b = computed.role) === null || _b === void 0 ? void 0 : _b.name) === aria.role) { | ||
@@ -31,3 +31,6 @@ return { | ||
const [roleName, _version] = syntax.split('|'); | ||
const version = _version === '1.1' ? '1.1' : '1.2'; | ||
const version = _version !== null && _version !== void 0 ? _version : ml_spec_1.ARIA_RECOMMENDED_VERSION; | ||
if (!(0, ml_spec_1.validateAriaVersion)(version)) { | ||
throw new SyntaxError(`Unsupported ARIA version: ${version}`); | ||
} | ||
return { | ||
@@ -34,0 +37,0 @@ role: (_a = roleName === null || roleName === void 0 ? void 0 : roleName.trim().toLowerCase()) !== null && _a !== void 0 ? _a : syntax.trim().toLowerCase(), |
{ | ||
"name": "@markuplint/selector", | ||
"version": "3.6.1", | ||
"version": "3.7.0", | ||
"description": "Extended W3C Selectors matcher", | ||
@@ -23,2 +23,3 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-spec": "3.7.0", | ||
"debug": "^4.3.4", | ||
@@ -29,3 +30,2 @@ "postcss-selector-parser": "^6.0.11", | ||
"devDependencies": { | ||
"@markuplint/ml-spec": "3.6.1", | ||
"@types/debug": "^4.1.7", | ||
@@ -36,3 +36,3 @@ "@types/jsdom": "16", | ||
}, | ||
"gitHead": "3cdf5a088b2da03773d5d4461d0e65ec32290a00" | ||
"gitHead": "42b97b47d22b37437024e693a72a458e2963e261" | ||
} |
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
67121
4
1467
4
+ Added@markuplint/ml-spec@3.7.0
+ Added@markuplint/ml-ast@3.1.0(transitive)
+ Added@markuplint/ml-spec@3.7.0(transitive)
+ Addeddom-accessibility-api@0.5.16(transitive)
+ Addedis-plain-object@5.0.0(transitive)