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

accessibility-checker

Package Overview
Dependencies
Maintainers
3
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accessibility-checker - npm Package Compare versions

Comparing version 3.1.25 to 3.1.26-rc.0

17

lib/ACConfigManager.js

@@ -114,3 +114,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var ruleServer, ruleArchiveFile, ruleArchiveParse, err_1, ruleArchivePath, ruleArchive, i, errStr, errStr;
var ruleServer, ruleArchiveFile, ruleArchiveParse, err_1, ruleArchivePath, ruleArchiveVersion, ruleArchive, i, errStr, errStr;
return __generator(this, function (_a) {

@@ -129,3 +129,3 @@ switch (_a.label) {

ruleServer = ACConfig.ruleServer ? ACConfig.ruleServer : ACConstants_1.ACConstants.ruleServer;
ruleArchiveFile = "".concat(ruleServer, "/archives.json");
ruleArchiveFile = "".concat(ruleServer).concat(ruleServer.includes("jsdelivr.net") ? "@next" : "", "/archives.json");
_a.label = 1;

@@ -156,2 +156,3 @@ case 1:

ruleArchivePath = null;
ruleArchiveVersion = null;
if (ruleArchiveParse && ruleArchiveParse.length > 0) {

@@ -165,2 +166,3 @@ ACConstants_1.ACConstants.DEBUG && console.log("Found archiveFile: " + ruleArchiveFile);

ruleArchivePath = ACConfig.ruleArchiveSet[i].path;
ruleArchiveVersion = ACConfig.ruleArchiveSet[i].version;
ACConfig.ruleArchiveLabel = ruleArchiveParse[i].name + " (" + ruleArchiveParse[i].id + ")";

@@ -170,3 +172,3 @@ break;

}
if (!ruleArchivePath) {
if (!ruleArchivePath || ruleArchiveVersion === null) {
errStr = "[ERROR] RuleArchiveInvalid: Make Sure correct rule archive is provided in the configuration file. More information is available in the README.md";

@@ -183,4 +185,9 @@ console.error(errStr);

}
// Build the new rulePack based of the baseA11yServerURL
ACConfig.rulePack = "".concat(ruleServer).concat(ruleArchivePath, "/js");
// Build the new rulePack based of the baseA11yServerURL
if (ruleServer.includes("jsdelivr.net")) {
ACConfig.rulePack = "".concat(ruleServer, "@").concat(ruleArchiveVersion);
}
else {
ACConfig.rulePack = "".concat(ruleServer).concat(ruleArchivePath, "/js");
}
ACConfig.ruleServer = ruleServer;

@@ -187,0 +194,0 @@ ACConstants_1.ACConstants.DEBUG && console.log("Built new rulePack: " + ACConfig.rulePack);

@@ -32,3 +32,6 @@ "use strict";

// Specify the default rule pack server to use. (Where to pull the rules and engine from).
ruleServer: "https://able.ibm.com/rules",
// - JSDelivr CDN
ruleServer: "https://cdn.jsdelivr.net/npm/accessibility-checker-engine",
// - IBM Cloud hosting
// ruleServer: "https://able.ibm.com/rules",
//Specify the rule set to be use.

@@ -35,0 +38,0 @@ ruleArchive: "latest",

@@ -908,2 +908,10 @@ "use strict";

var differences = DeepDiff.diff(actual, expected);
if (differences) {
differences = differences.filter(function (difference) { return !(difference.kind === "E"
&& difference.path.length === 4
&& difference.path[2] === "bounds"
&& Math.abs(difference.lhs - difference.rhs) <= 1); });
if (differences.length === 0)
return undefined;
}
// Return the results of the diff, which will include the differences between the objects

@@ -910,0 +918,0 @@ return differences;

{
"name": "accessibility-checker",
"version": "3.1.25",
"version": "3.1.26-rc.0",
"description": "An automated testing tools for accessibility testing using Puppeteer, Selenium, or Zombie",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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