babelacc

compare different implementations of the text alternative computation  https://p.ce9e.org/babelacc/
git clone https://git.ce9e.org/babelacc.git

commit
24cf63e8a02ef5bcd563a4c14448c188eda4b6f0
parent
25bc9c1ea17abfb8d26da9dcb40e1e6f852788fa
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-03-26 20:56
update dependencies

Diffstat

M package.json 4 ++--
M src/babel.js 4 ++--
M src/eval.patch 17 +++++++++--------

3 files changed, 13 insertions, 12 deletions


diff --git a/package.json b/package.json

@@ -4,8 +4,8 @@
    4     4   "description": "compare different implementations of accname",
    5     5   "devDependencies": {
    6     6     "accessibility-developer-tools": "^2.12.0",
    7    -1     "aria-api": "^0.2.5",
    8    -1     "axe-core": "^3.1.2",
   -1     7     "aria-api": "^0.2.7",
   -1     8     "axe-core": "^3.2.2",
    9     9     "nyc": "^13.3.0",
   10    10     "w3c-alternative-text-computation": "github:accdc/w3c-alternative-text-computation"
   11    11   },

diff --git a/src/babel.js b/src/babel.js

@@ -16,7 +16,7 @@ var ex = function(fn, args, _this) {
   16    16 };
   17    17 
   18    18 var implementations = {
   19    -1 	'aria-api (0.2.6)': function(el) {
   -1    19 	'aria-api (0.2.7)': function(el) {
   20    20 		return {
   21    21 			name: ex(ariaApi.getName, [el]),
   22    22 			desc: ex(ariaApi.getDescription, [el]),
@@ -24,7 +24,7 @@ var implementations = {
   24    24 		};
   25    25 	},
   26    26 	'accdc (2.20)': accdc.calcNames,
   27    -1 	'axe (3.1.2)': function(el) {
   -1    27 	'axe (3.2.2)': function(el) {
   28    28 		return {
   29    29 			name: ex(function(el) {
   30    30 				axe._tree = axe.utils.getFlattenedTree(document.body);

diff --git a/src/eval.patch b/src/eval.patch

@@ -1,8 +1,9 @@
    1    -1 7383c7383
    2    -1 <     var global = Function('return this')();
    3    -1 ---
    4    -1 >     var global = {};
    5    -1 7426c7426
    6    -1 <         return this || (0, eval)('this');
    7    -1 ---
    8    -1 >         return this || {};
   -1     1 @@ -7015,7 +7015,7 @@
   -1     2            };
   -1     3          };
   -1     4          _globals = function() {
   -1     5 -          return this || (0, eval)('this');
   -1     6 +          return this || {};
   -1     7          }();
   -1     8          if (typeof module !== 'undefined' && module.exports) {
   -1     9            module.exports = doT;