Socket
Socket
Sign inDemoInstall

pa11y

Package Overview
Dependencies
96
Maintainers
7
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.1 to 6.2.0

CHANGELOG.md

2

lib/action.js

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

await action.run(browser, page, options, actionString.match(action.match));
options.log.debug(' ✔︎ action complete');
options.log.debug(` ✔︎ Action complete: ${action.name}`);
}

@@ -33,0 +33,0 @@

@@ -161,3 +161,9 @@ 'use strict';

state.consoleCallback = message => {
// eslint-disable-next-line no-underscore-dangle
options.log.debug(`Browser Console: ${message.text()}`);
// eslint-disable-next-line no-underscore-dangle
options.log.debug(`Browser Console: args: ${JSON.stringify(message._args)}`);
// eslint-disable-next-line no-underscore-dangle
options.log.debug(`Browser Console: location: ${JSON.stringify(message._location)}`);
};

@@ -207,7 +213,6 @@ state.page.on('console', state.consoleCallback);

// Override the request method
options.log.debug('Setting request method');
options.log.debug(`Setting request method: ${options.method} `);
overrides.method = options.method;
// Override the request headers (and include the user-agent)
options.log.debug('Setting request headers');
overrides.headers = {};

@@ -217,7 +222,11 @@ for (const [key, value] of Object.entries(options.headers)) {

}
// eslint-disable-next-line max-len
options.log.debug(`Setting request headers:${JSON.stringify(overrides.headers, null, 4)}`);
// Override the request POST data if present
if (options.postData) {
options.log.debug('Setting request POST data');
overrides.postData = options.postData;
options.log.debug(`Setting request POST data: ${overrides.postData}`);
}

@@ -224,0 +233,0 @@

'use strict';
const fs = require('fs');
const hogan = require('hogan.js');
const mustache = require('mustache');
const path = require('path');

@@ -17,5 +17,3 @@ const {promisify} = require('util');

const templateString = await readFile(path.resolve(`${__dirname}/report.html`), 'utf-8');
const template = hogan.compile(templateString);
return template.render({
return mustache.render(templateString, {
// The current date

@@ -22,0 +20,0 @@ date: new Date(),

{
"name": "pa11y",
"version": "6.1.1",
"version": "6.2.0",
"description": "Pa11y is your automated accessibility testing pal",

@@ -30,3 +30,3 @@ "keywords": [

"bugs": "https://github.com/pa11y/pa11y/issues",
"license": "LGPL-3.0",
"license": "LGPL-3.0-only",
"engines": {

@@ -36,8 +36,8 @@ "node": ">=12"

"dependencies": {
"axe-core": "^4.0.2",
"axe-core": "~4.2.1",
"bfj": "~7.0.2",
"commander": "~8.0.0",
"envinfo": "~7.8.1",
"hogan.js": "^3.0.2",
"html_codesniffer": "^2.5.1",
"mustache": "~4.2.0",
"html_codesniffer": "~2.5.1",
"kleur": "~4.1.4",

@@ -51,8 +51,5 @@ "node.extend": "~2.0.2",

"eslint": "^7.27.0",
"mocha": "^8.4.0",
"mockery": "^2.1.0",
"nyc": "^15.1.0",
"pa11y-lint-config": "^2.0.0",
"proclaim": "^3.6.0",
"sinon": "^11.1.0"
"eslint-plugin-jest": "^25.3.4",
"jest": "^27.4.7",
"pa11y-lint-config": "^2.0.0"
},

@@ -65,7 +62,6 @@ "main": "./lib/pa11y.js",

"lint": "eslint .",
"verify-coverage": "nyc check-coverage --lines 90 --functions 90 --branches 90",
"test-unit": "mocha --file test/unit/setup.test.js 'test/unit/**/*.test.js' --recursive",
"test-coverage": "nyc --reporter=text --reporter=html -- npm run test-unit",
"test-integration": "mocha --file test/integration/setup.test.js test/integration/**/*.test.js --recursive --timeout 10000 --slow 5000",
"test": "npm run test-coverage && npm run verify-coverage && npm run test-integration"
"test-unit": "jest test/unit",
"test-coverage": "jest test/unit --coverage",
"test-integration": "MOCK_SERVER_PORT=8081 jest test/integration",
"test": "MOCK_SERVER_PORT=8081 jest --coverage"
},

@@ -72,0 +68,0 @@ "files": [

@@ -8,3 +8,3 @@ # Pa11y

[![Build status][shield-build]][info-build]
[![LGPL-3.0 licensed][shield-license]][info-license]
[![LGPL-3.0-only licensed][shield-license]][info-license]

@@ -27,4 +27,2 @@ On the command line:

If you need a GUI, you can try [Koa11y](https://open-indy.github.io/Koa11y/). It's a desktop application for Windows, OSX and Linux that uses Pa11y to run accessibility tests.
## Table of contents

@@ -332,3 +330,3 @@

const htmlReporter = require('pa11y/reporter/html');
const html = await htmlReporter.results(results, url);
const html = await htmlReporter.results(results);
```

@@ -1022,3 +1020,3 @@

| :heart: | 6 | N/A | 12+ | N/A |
| :warning: | 5 | 5.3 | 8+ | 2021-11-25 |
| :skull: | 5 | 5.3 | 8+ | 2021-11-25 |
| :skull: | 4 | 4.13 | 4–8 | 2018-08-15 |

@@ -1033,3 +1031,3 @@ | :skull: | 3 | 3.8 | 0.12–6 | 2016-12-05 |

Pa11y is licensed under the [Lesser General Public License (LGPL-3.0)][info-license].
Pa11y is licensed under the [Lesser General Public License (LGPL-3.0-only)][info-license].
Copyright © 2013–2021, Team Pa11y and contributors

@@ -1042,3 +1040,3 @@

[htmlcs]: https://squizlabs.github.io/HTML_CodeSniffer/
[info-build]: https://github.com/pa11y/pa11y.github.io/actions/workflows/build-and-test.yml
[info-build]: https://github.com/pa11y/pa11y/actions/workflows/build-and-test.yml
[info-license]: LICENSE

@@ -1056,5 +1054,5 @@ [info-node]: package.json

[semver range]: https://github.com/npm/node-semver#ranges
[shield-build]: https://github.com/pa11y/pa11y/actions/workflows/build-and-test.yml/badge.svg
[shield-build]: https://github.com/pa11y/pa11y/actions/workflows/tests.yml/badge.svg
[shield-license]: https://img.shields.io/badge/license-LGPL%203.0-blue.svg
[shield-node]: https://img.shields.io/node/v/pa11y.svg
[shield-npm]: https://img.shields.io/npm/v/pa11y.svg

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc