axe 8.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -29
- package/dist/axe.js +4556 -3082
- package/dist/axe.min.js +1 -1
- package/lib/index.js +197 -254
- package/package.json +35 -79
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Axe
|
|
2
2
|
|
|
3
|
-
[](https://codecov.io/gh/cabinjs/axe)
|
|
3
|
+
[](https://github.com/cabinjs/axe/actions/workflows/ci.yml)
|
|
5
4
|
[](https://github.com/sindresorhus/xo)
|
|
6
5
|
[](https://github.com/prettier/prettier)
|
|
7
6
|
[](https://github.com/lassjs/lass)
|
|
@@ -44,12 +43,6 @@
|
|
|
44
43
|
npm install axe
|
|
45
44
|
```
|
|
46
45
|
|
|
47
|
-
[yarn][]:
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
yarn add axe
|
|
51
|
-
```
|
|
52
|
-
|
|
53
46
|
### Browser
|
|
54
47
|
|
|
55
48
|
See [Browser](#browser-1) usage below for more information.
|
|
@@ -165,7 +158,7 @@ axe.info('hello world');
|
|
|
165
158
|
**The browser-ready bundle is only 36 KB (minified and gzipped)**.
|
|
166
159
|
|
|
167
160
|
```html
|
|
168
|
-
<script src="https://polyfill.io/v3/polyfill.min.js?features=
|
|
161
|
+
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
|
|
169
162
|
<script src="https://unpkg.com/axe"></script>
|
|
170
163
|
<script type="text/javascript">
|
|
171
164
|
(function() {
|
|
@@ -180,25 +173,11 @@ axe.info('hello world');
|
|
|
180
173
|
We recommend using <https://polyfill.io> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
|
|
181
174
|
|
|
182
175
|
```html
|
|
183
|
-
<script src="https://polyfill.io/v3/polyfill.min.js?features=
|
|
176
|
+
<script src="https://polyfill.io/v3/polyfill.min.js?features=WeakRef,BigInt"></script>
|
|
184
177
|
```
|
|
185
178
|
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* Math.sign() is not supported in IE 10
|
|
189
|
-
* Promise is not supported in Opera Mobile 12.1, Opera Mini all, IE Mobile 10, IE 10, Blackberry Browser 7
|
|
190
|
-
* Reflect is not supported in IE 10
|
|
191
|
-
* Symbol is not supported in IE 10
|
|
192
|
-
* Symbol.iterator() is not supported in IE 10
|
|
193
|
-
* Symbol.prototype() is not supported in IE 10
|
|
194
|
-
* Symbol.toPrimitive() is not supported in IE 10
|
|
195
|
-
* Symbol.toStringTag() is not supported in IE 10
|
|
196
|
-
* Uint32Array is not supported in IE Mobile 10, IE 10, Blackberry Browser 7
|
|
197
|
-
* window\.crypto() is not supported in IE 10
|
|
198
|
-
* Object.assign() is not supported in IE 10
|
|
199
|
-
* Object.getOwnPropertySymbols() is not supported in IE 10
|
|
200
|
-
* Array.from() is not supported in IE 10
|
|
201
|
-
* Set is not supported in IE 10
|
|
179
|
+
* WeakRef is not supported in Opera 85, iOS Safari 12.2-12.5
|
|
180
|
+
* BigInt is not supported in iOS Safari 12.2-12.5
|
|
202
181
|
|
|
203
182
|
#### Bundler
|
|
204
183
|
|
|
@@ -299,7 +278,7 @@ Please see Cabin's documentation for [stack traces and error handling](https://g
|
|
|
299
278
|
* `showStack` (Boolean) - defaults to `true` (attempts to parse a boolean value from `process.env.SHOW_STACK`) - whether or not to output a stack trace
|
|
300
279
|
* `meta` (Object) - stores all meta config information
|
|
301
280
|
* `show` (Boolean) - defaults to `true` (attempts to parse a boolean value from `process.env.SHOW_META` – meaning you can pass a flag `SHOW_META=true node app.js` when needed for debugging), whether or not to output metadata to logger methods.
|
|
302
|
-
* `showApp` (Boolean) - defaults to `
|
|
281
|
+
* `showApp` (Boolean) - defaults to `false` (attempts to parse a boolean value from `process.env.SHOW_META_APP` – meaning you can pass a flag `SHOW_META_APP=true node app.js` when needed for debugging), whether or not to output `appInfo` in the metadata to logger methods.
|
|
303
282
|
* `omittedFields` (Array) - defaults to `[]` (attempts to parse an array value from `process.env.OMIT_META_FIELDS` (`,` delimited) - meaning you can pass a flag `OMIT_META_FIELDS=user,id node app.js`), determining which fields to omit in the metadata passed to logger methods.
|
|
304
283
|
* `silent` (Boolean) - defaults to `false`, whether or not to suppress log output to console
|
|
305
284
|
* `logger` (Object) - defaults to `console` (with [console-polyfill][] added automatically), but you may wish to use a [custom logger](#custom-logger)
|
|
@@ -466,8 +445,6 @@ If you are seeking permission to use these trademarks, then please [contact us](
|
|
|
466
445
|
|
|
467
446
|
[npm]: https://www.npmjs.com/
|
|
468
447
|
|
|
469
|
-
[yarn]: https://yarnpkg.com/
|
|
470
|
-
|
|
471
448
|
[lad]: https://lad.js.org/
|
|
472
449
|
|
|
473
450
|
[cabin]: https://cabinjs.com/
|