Socket
Socket
Sign inDemoInstall

@storybook/addon-a11y

Package Overview
Dependencies
Maintainers
12
Versions
1885
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-a11y - npm Package Compare versions

Comparing version 4.0.0-alpha.1 to 4.0.0-alpha.2

2

dist/components/Report/index.js

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

return _react2.default.createElement(
_react.Fragment,
'div',
null,

@@ -56,0 +56,0 @@ items.length ? _react2.default.createElement(

@@ -39,2 +39,4 @@ 'use strict';

var _clientLogger = require('@storybook/client-logger');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -84,5 +86,5 @@

_axeCore2.default.configure(axeOptions);
_axeCore2.default.a11yCheck(wrapper, {}, function (results) {
channel.emit('addon:a11y:check', results);
});
_axeCore2.default.run(wrapper).then(function (results) {
return channel.emit('addon:a11y:check', results);
}, _clientLogger.logger.error);
}

@@ -89,0 +91,0 @@ }

{
"name": "@storybook/addon-a11y",
"version": "4.0.0-alpha.1",
"version": "4.0.0-alpha.2",
"description": "a11y addon for storybook",

@@ -28,4 +28,6 @@ "keywords": [

"dependencies": {
"@storybook/components": "4.0.0-alpha.1",
"axe-core": "^2.6.1",
"@storybook/addons": "4.0.0-alpha.2",
"@storybook/client-logger": "4.0.0-alpha.2",
"@storybook/components": "4.0.0-alpha.2",
"axe-core": "^3.0.1",
"babel-runtime": "^6.26.0",

@@ -37,7 +39,6 @@ "glamor": "^2.20.40",

"devDependencies": {
"@storybook/react": "4.0.0-alpha.1",
"@storybook/react": "4.0.0-alpha.2",
"faker": "^4.1.0"
},
"peerDependencies": {
"@storybook/addons": "^3.3.0",
"react": "*",

@@ -44,0 +45,0 @@ "react-dom": "*"

@@ -1,2 +0,2 @@

import React, { Fragment } from 'react';
import React from 'react';
import PropTypes from 'prop-types';

@@ -27,3 +27,3 @@ import addons from '@storybook/addons';

const Report = ({ items, empty, passes }) => (
<Fragment>
<div>
{items.length ? (

@@ -37,3 +37,3 @@ <div style={styles.container}>

<RerunButton onClick={onRerunClick}>Re-run tests</RerunButton>
</Fragment>
</div>
);

@@ -40,0 +40,0 @@

@@ -5,2 +5,3 @@ import { Component } from 'react';

import axe from 'axe-core';
import { logger } from '@storybook/client-logger';

@@ -45,5 +46,3 @@ class WrapStory extends Component {

axe.configure(axeOptions);
axe.a11yCheck(wrapper, {}, results => {
channel.emit('addon:a11y:check', results);
});
axe.run(wrapper).then(results => channel.emit('addon:a11y:check', results), logger.error);
}

@@ -50,0 +49,0 @@ }

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