Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/selector

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/selector - npm Package Compare versions

Comparing version 3.6.1 to 3.7.0

5

lib/extended-selector/aria-pseudo-class.js

@@ -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': {

7

lib/extended-selector/aria-role-pseudo-class.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc