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

axe-core

Package Overview
Dependencies
Maintainers
4
Versions
1377
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axe-core - npm Package Compare versions

Comparing version 4.10.0-canary.067b01d to 4.10.0-canary.0d03b0a

27

axe.d.ts

@@ -345,2 +345,5 @@ // Type definitions for axe-core

toJSON(): SerialDqElement;
}
interface DqElementConstructor {
new (elm: Element, options?: { absolutePaths?: boolean }): DqElement;
mergeSpecs(

@@ -409,2 +412,20 @@ childSpec: SerialDqElement,

interface CustomNodeSerializer<T = SerialDqElement> {
toSpec: (dqElm: DqElement) => T;
mergeSpecs: (nodeSpec: T, parentFrameSpec: T) => T;
}
interface NodeSerializer {
update: <T>(serializer: CustomNodeSerializer<T>) => void;
toSpec: (node: Element | VirtualNode) => SerialDqElement;
dqElmToSpec: (
dqElm: DqElement | SerialDqElement,
options?: RunOptions
) => SerialDqElement;
mergeSpecs: (
nodeSpec: SerialDqElement,
parentFrameSpec: SerialDqElement
) => SerialDqElement;
}
interface Utils {

@@ -428,6 +449,3 @@ getFrameContexts: (

DqElement: new (
elm: Element,
options?: { absolutePaths?: boolean }
) => DqElement;
DqElement: DqElementConstructor;
uuid: (

@@ -438,2 +456,3 @@ options?: { random?: Uint8Array | Array<number> },

) => string | Uint8Array | Array<number>;
nodeSerializer: NodeSerializer;
}

@@ -440,0 +459,0 @@

20

locales/_template.json

@@ -9,4 +9,4 @@ {

"area-alt": {
"description": "Ensure <area> elements of image maps have alternate text",
"help": "Active <area> elements must have alternate text"
"description": "Ensure <area> elements of image maps have alternative text",
"help": "Active <area> elements must have alternative text"
},

@@ -226,4 +226,4 @@ "aria-allowed-attr": {

"image-alt": {
"description": "Ensure <img> elements have alternate text or a role of none or presentation",
"help": "Images must have alternate text"
"description": "Ensure <img> elements have alternative text or a role of none or presentation",
"help": "Images must have alternative text"
},

@@ -239,4 +239,4 @@ "image-redundant-alt": {

"input-image-alt": {
"description": "Ensure <input type=\"image\"> elements have alternate text",
"help": "Image buttons must have alternate text"
"description": "Ensure <input type=\"image\"> elements have alternative text",
"help": "Image buttons must have alternative text"
},

@@ -336,4 +336,4 @@ "label-content-name-mismatch": {

"object-alt": {
"description": "Ensure <object> elements have alternate text",
"help": "<object> elements must have alternate text"
"description": "Ensure <object> elements have alternative text",
"help": "<object> elements must have alternative text"
},

@@ -357,3 +357,3 @@ "p-as-heading": {

"role-img-alt": {
"description": "Ensure [role=\"img\"] elements have alternate text",
"description": "Ensure [role=\"img\"] elements have alternative text",
"help": "[role=\"img\"] elements must have an alternative text"

@@ -795,3 +795,3 @@ },

"fail": "Form element does not have an implicit (wrapped) <label>",
"incomplete": "Unable to determine if form element has an implicit (wrapped} <label>"
"incomplete": "Unable to determine if form element has an implicit (wrapped) <label>"
},

@@ -798,0 +798,0 @@ "label-content-name-mismatch": {

@@ -5,6 +5,6 @@ # Localizations

To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a json file with the default English text in it for you to translate. Alternatively, you could copy `_template.json`.
To create a new translation for axe, start by running `grunt translate --lang=<langcode>`. This will create a JSON file with the default English text in it for you to translate. Alternatively, you could copy `_template.json`.
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages which were not used in English.
To update an existing translation file, re-run `grunt translate --lang=<langcode>`. This will add new messages used in English and remove messages that are no longer used in English.
`_template.json` is a generated file which is created every time axe is built. It's compiled using each rules' `description` and `help` properties as well as each checks' `metadata.messages` property. To update the `_template.json` file you'll need to update the corresponding [rule](../lib/rules) or [check](../lib/checks) metadata file and rebuild.
`_template.json` is a generated file which is created every time axe is built. It's compiled using each rule's `description` and `help` properties, as well as each check's `metadata.messages` property. To update the `_template.json` file you'll need to update the corresponding [rule](../lib/rules) or [check](../lib/checks) metadata file and rebuild.
{
"name": "axe-core",
"description": "Accessibility engine for automated Web UI testing",
"version": "4.10.0-canary.067b01d",
"version": "4.10.0-canary.0d03b0a",
"license": "MPL-2.0",

@@ -6,0 +6,0 @@ "engines": {

@@ -386,6 +386,6 @@ {

},
"4.10.0-canary.067b01d": {
"axe.js": "sha256-TdSq9P7xmSwS7kj8dhRgoquMPg9yoeKdThGOSkUy/Y8=",
"axe.min.js": "sha256-k5K+T4MatPiBhLhWt65sLT39qvIeaMpx15rChytcses="
"4.10.0-canary.0d03b0a": {
"axe.js": "sha256-miI5/znbDrl/maBDMPxZC9z45Pec0i3Sdd1SRDCRQaw=",
"axe.min.js": "sha256-kqkKv7wQT6IOI7uRbAEumxlT1J1PoseKBJOiR02BDHE="
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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