Sha256: efffe725b609fc5c7d4e3db1eeefacb66c59c5eb5b4edf031568f0b8f0a4cfa5

Contents?: true

Size: 1.18 KB

Versions: 271

Compression:

Stored size: 1.18 KB

Contents

/*exported axe, commons */
/*global axeFunction, module, define */
// exported namespace for axe
/*eslint no-use-before-define: 0, no-unused-vars: 0*/
var axe = axe || {};
axe.version = '<%= pkg.version %>';

if (typeof define === 'function' && define.amd) {
	// Explicitly naming the module to avoid mismatched anonymous define() modules when injected in a page
	define('axe-core', [], function() {
		'use strict';
		return axe;
	});
}
if (
	typeof module === 'object' &&
	module.exports &&
	typeof axeFunction.toString === 'function'
) {
	axe.source =
		'(' +
		axeFunction.toString() +
		')(typeof window === "object" ? window : this);';
	module.exports = axe;
}
if (typeof window.getComputedStyle === 'function') {
	window.axe = axe;
}
// local namespace for common functions
var commons;

function SupportError(error) {
	this.name = 'SupportError';
	this.cause = error.cause;
	this.message = `\`${error.cause}\` - feature unsupported in your environment.`;
	if (error.ruleId) {
		this.ruleId = error.ruleId;
		this.message += ` Skipping ${this.ruleId} rule.`;
	}
	this.stack = new Error().stack;
}
SupportError.prototype = Object.create(Error.prototype);
SupportError.prototype.constructor = SupportError;

Version data entries

271 entries across 271 versions & 1 rubygems

Version Path
govuk_publishing_components-27.9.1 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.9.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.8.2 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.8.1 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.8.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.7.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.6.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.5.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.4.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.3.1 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.3.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.2.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.1.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-27.0.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-26.0.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-25.7.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-25.6.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-25.5.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-25.4.0 node_modules/axe-core/lib/core/index.js
govuk_publishing_components-25.3.1 node_modules/axe-core/lib/core/index.js