Skip to content

Commit

Permalink
fix: enable running axe-core in strict CSPs (#1707)
Browse files Browse the repository at this point in the history
* chore: use deque fork of doT.js

* use npm package
  • Loading branch information
straker authored Jul 17, 2019
1 parent e9f9c18 commit cc5bd59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'use strict';

var clone = require('clone');
var dot = require('dot');
var dot = require('@deque/dot');
var templates = require('./templates');
var buildManual = require('./build-manual');
var entities = new (require('html-entities')).AllHtmlEntities();
Expand Down
2 changes: 1 addition & 1 deletion lib/core/imports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ require('weakmap-polyfill');
axe.imports = {
axios: require('axios'),
CssSelectorParser: require('css-selector-parser').CssSelectorParser,
doT: require('dot'),
doT: require('@deque/dot'),
emojiRegexText: require('emoji-regex')
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"@babel/plugin-proposal-object-rest-spread": "^7.5.4",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.5.4",
"@deque/dot": "^1.1.4",
"aria-query": "^3.0.0",
"axios": "^0.19.0",
"babelify": "^10.0.0",
Expand All @@ -88,7 +89,6 @@
"clone": "~2.1.1",
"css-selector-parser": "^1.3.0",
"derequire": "^2.0.6",
"dot": "~1.1.2",
"emoji-regex": "8.0.0",
"es6-promise": "^4.2.6",
"eslint": "^5.14.0",
Expand Down

0 comments on commit cc5bd59

Please sign in to comment.