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

@markuplint/ml-spec

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/ml-spec - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

lib/constant/aria-version.d.ts.map

5

lib/dom-traverse/get-computed-role.js

@@ -14,3 +14,3 @@ import { ariaSpecs } from '../specs/aria-specs.js';

el, version, assumeSingleNode = false) {
const implicitRole = getImplicitRole(specs, el, version);
let lazyImplicitRole;
const explicitRole = getExplicitRole(specs, el, version);

@@ -20,3 +20,3 @@ const computedRole = explicitRole.role

: {
...implicitRole,
...(lazyImplicitRole = getImplicitRole(specs, el, version)),
errorType: explicitRole.errorType === 'NO_EXPLICIT' ? undefined : explicitRole.errorType,

@@ -132,2 +132,3 @@ };

}
const implicitRole = lazyImplicitRole ?? getImplicitRole(specs, el, version);
/**

@@ -134,0 +135,0 @@ * > If an element is focusable,

3

lib/dom-traverse/has-required-owned-elements.js

@@ -70,5 +70,4 @@ import { isPresentational } from '../specs/is-presentational.js';

for (const child of el.children) {
const implicitRole = getImplicitRole(specs, child, version);
const explicitRole = getExplicitRole(specs, child, version);
const computed = explicitRole.role ? explicitRole : implicitRole;
const computed = explicitRole.role ? explicitRole : getImplicitRole(specs, child, version);
if (isPresentational(computed.role?.name)) {

@@ -75,0 +74,0 @@ owned.push(...getClosestNonPresentationalDescendants(child, specs, version));

{
"name": "@markuplint/ml-spec",
"version": "4.0.1",
"version": "4.0.2",
"description": "Types and schema that specs of the Markup languages for markuplint",

@@ -36,3 +36,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

"@markuplint/ml-ast": "4.0.1",
"@markuplint/types": "4.0.1",
"@markuplint/types": "4.0.2",
"dom-accessibility-api": "^0.6.3",

@@ -43,6 +43,6 @@ "is-plain-object": "^5.0.0",

"devDependencies": {
"@markuplint/test-tools": "4.0.1",
"@markuplint/test-tools": "4.0.2",
"json-schema-to-typescript": "13.1.2"
},
"gitHead": "bf84b391b580a8586fa7acaf56eb2e8114c8e33e"
"gitHead": "10ce6c8374106f311eeaaffbae8f3fdcbb40f877"
}
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