Socket
Socket
Sign inDemoInstall

eslint-plugin-jsx-a11y

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jsx-a11y - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

5

CHANGELOG.md

@@ -0,1 +1,6 @@

1.5.3 / 2016-06-16
==================
- [fix] Fix crash when ``<ELEMENT role />`` for `role-supports-aria-props`.
1.5.2 / 2016-06-16

@@ -2,0 +7,0 @@ ==================

2

lib/rules/role-supports-aria-props.js

@@ -49,3 +49,3 @@ 'use strict';

// This actually isn't true - should fix in future release.
if (!roleValue || _role2.default[roleValue.toUpperCase()] === undefined) {
if (typeof roleValue !== 'string' || _role2.default[roleValue.toUpperCase()] === undefined) {
return;

@@ -52,0 +52,0 @@ }

{
"name": "eslint-plugin-jsx-a11y",
"version": "1.5.2",
"version": "1.5.3",
"description": "A static analysis linter of jsx and their accessibility with screen readers.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -36,3 +36,3 @@ /**

// This actually isn't true - should fix in future release.
if (!roleValue || ROLES[roleValue.toUpperCase()] === undefined) {
if (typeof roleValue !== 'string' || ROLES[roleValue.toUpperCase()] === undefined) {
return;

@@ -39,0 +39,0 @@ }

@@ -73,2 +73,3 @@ /**

{ code: '<div id="main" />', parserOptions },
{ code: '<div role />', parserOptions },
{ code: '<div role="presentation" {...props} />', parserOptions },

@@ -75,0 +76,0 @@ { code: '<Foo.Bar baz={true} />', parserOptions },

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