Socket
Socket
Sign inDemoInstall

pa11y

Package Overview
Dependencies
Maintainers
5
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pa11y - npm Package Compare versions

Comparing version 4.0.3 to 4.1.0

5

CHANGELOG.md
# Changelog
## 4.1.0 (2016-11-21)
* Install PhantomJS as a dependency if the latest version isn't present
* Remove the SSL protocol from the default PhantomJS config
## 4.0.3 (2016-11-20)

@@ -5,0 +10,0 @@

7

lib/pa11y.js

@@ -10,2 +10,3 @@ 'use strict';

var trufflerPkg = require('truffler/package.json');
var phantomjsPath = require('phantomjs-prebuilt').path;

@@ -33,5 +34,5 @@ module.exports = pa11y;

parameters: {
'ignore-ssl-errors': 'true',
'ssl-protocol': 'tlsv1'
}
'ignore-ssl-errors': 'true'
},
path: phantomjsPath
},

@@ -38,0 +39,0 @@ rootElement: null,

{
"name": "pa11y",
"version": "4.0.3",
"version": "4.1.0",

@@ -39,2 +39,3 @@ "description": "Pa11y is your automated accessibility testing pal",

"once": "~1.3",
"phantomjs-prebuilt": "^2.1.12",
"truffler": "~2.3"

@@ -41,0 +42,0 @@ },

@@ -33,3 +33,3 @@

✨ 🔜 ✨ The Pa11y team is very excited to announce plans for the successor to Pa11y Dashboard and Pa11y Webservice, codename "Sidekick". Help us define the features that you want to see by visiting the [proposal][sidekick-proposal]. ✨
✨ 🔜 ✨ The Pa11y team is very excited to announce plans for the successor to Pa11y Dashboard and Pa11y Webservice, codename "Sidekick". Help us define the features that you want to see by visiting the [proposal][sidekick-proposal]. ✨

@@ -56,47 +56,23 @@ ---

Pa11y requires [Node.js][node] 4+ and [PhantomJS][phantom] (latest stable version recommended) to run.
Pa11y requires [Node.js][node] 4+ to run.
### OS X
On a Mac, you can install the required dependencies with [Homebrew][brew]:
On a Mac, you can install the required dependency with [Homebrew][brew]:
```sh
$ brew install node
$ brew install phantomjs
```
Alternatively download pre-built packages from the [Node.js][node] and [PhantomJS][phantom] websites.
Alternatively download pre-built packages from the [Node.js][node] website.
### Linux
Depending on your flavour of Linux, you should be able to use a package manager to install the required dependencies. Alternatively download pre-built packages from the [Node.js][node] and [PhantomJS][phantom] websites.
Depending on your flavour of Linux, you should be able to use a package manager to install the required dependency. Alternatively download pre-built packages from the [Node.js][node] website.
### Windows
Windows users approach with caution – we've been able to get Pa11y running (Windows 7, Node 4) but only after installing Visual Studio and the Windows SDK (as well as Git, Python and PhantomJS). The [Windows installation instructions for node-gyp][windows-install] are a good place to start.
Windows users approach with caution – we've been able to get Pa11y running (Windows 7, Node 4) but only after installing Visual Studio and the Windows SDK (as well as Git, and Python). The [Windows installation instructions for node-gyp][windows-install] are a good place to start.
If you run into following error:
```
Error: spawn phantomjs ENOENT
at exports._errnoException (util.js:874:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:439:9)
at process._tickCallback (node.js:353:17)
at Function.Module.runMain (module.js:469:11)
at startup (node.js:134:18)
at node.js:961:3
```
follow these steps:
1. Install PhantomJS@v2.0 via [npm][npm]
```
npm install -g phantomjs2
```
2. Navigate to `%APPDATA%\AppData\Roaming\npm\node_modules\phantomjs2\lib\phantom\bin` and copy `phantomjs.exe` to `%APPDATA%\AppData\Roaming\npm\`
Command-Line Interface

@@ -784,3 +760,3 @@ ----------------------

| :hourglass: | 3 | 3.8 | 0.12–6 | 2016-12-05 |
| :hourglass: | 2 | 2.4 | 0.10–0.12 | 2016-10-16 |
| :skull: | 2 | 2.4 | 0.10–0.12 | 2016-10-16 |
| :skull: | 1 | 1.7 | 0.10 | 2016-06-08 |

@@ -787,0 +763,0 @@

@@ -106,6 +106,2 @@ // jshint maxstatements: false

it('should have a `phantom.parameters[\'ssl-protocol\']` property', function() {
assert.strictEqual(defaults.phantom.parameters['ssl-protocol'], 'tlsv1');
});
it('should have a `standard` property', function() {

@@ -112,0 +108,0 @@ assert.strictEqual(defaults.standard, 'WCAG2AA');

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