axe-puppeteer
Advanced tools
Comparing version 0.1.0-canary.8ffaefb1 to 0.1.0-canary.948b14ee
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -8,0 +9,0 @@ }); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -18,6 +19,8 @@ }); | ||
analyze(callback) { | ||
const _super = name => super[name]; | ||
const _super = Object.create(null, { | ||
analyze: { get: () => super.analyze } | ||
}); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
return yield _super("analyze").call(this, callback); | ||
return yield _super.analyze.call(this, callback); | ||
} | ||
@@ -24,0 +27,0 @@ finally { |
{ | ||
"name": "axe-puppeteer", | ||
"version": "0.1.0-canary.8ffaefb1", | ||
"version": "0.1.0-canary.948b14ee", | ||
"description": "Provides a chainable axe API for Puppeteer and automatically injects into all frames", | ||
@@ -25,5 +25,5 @@ "repository": { | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.10", | ||
"@types/node": "^12.7.5", | ||
"@types/puppeteer": "^1.10.0", | ||
"@types/sinon": "^5.0.7", | ||
"@types/sinon": "^7.0.13", | ||
"@types/test-listen": "^1.1.0", | ||
@@ -33,5 +33,5 @@ "chai": "^4.2.0", | ||
"husky": "^1.2.0", | ||
"lint-staged": "^8.0.5", | ||
"lint-staged": "^9.2.5", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.1.0", | ||
"nyc": "^14.1.1", | ||
"prettier": "^1.15.2", | ||
@@ -42,3 +42,3 @@ "puppeteer": "^1.10.0", | ||
"test-listen": "^1.1.0", | ||
"ts-node": "^7.0.1", | ||
"ts-node": "^8.3.0", | ||
"tslint": "^5.11.0", | ||
@@ -51,6 +51,6 @@ "tslint-config-prettier": "^1.16.0", | ||
"dependencies": { | ||
"axe-core": "^3.3.1" | ||
"axe-core": "^3.5.3" | ||
}, | ||
"peerDependencies": { | ||
"puppeteer": "^1.10.0" | ||
"puppeteer": "^1.10.0 || ^2.0.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "engines": { |
import * as Axe from 'axe-core' | ||
import { Browser, Frame, Page } from 'puppeteer' | ||
import { Browser, Frame, JSONObject, Page } from 'puppeteer' | ||
import { pageIsLoaded, runAxe } from './browser' | ||
@@ -229,5 +229,5 @@ import { AnalyzeCB } from './types' | ||
runAxe, | ||
this.config, | ||
context, | ||
this.axeOptions | ||
this.config as JSONObject, | ||
context as JSONObject, | ||
this.axeOptions as JSONObject | ||
) | ||
@@ -234,0 +234,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61272
1207
+ Added@types/mime-types@2.1.4(transitive)
+ Addedagent-base@5.1.1(transitive)
+ Addedhttps-proxy-agent@4.0.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedpuppeteer@2.1.1(transitive)
- Removedagent-base@4.3.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedhttps-proxy-agent@2.2.4(transitive)
- Removedpuppeteer@1.20.0(transitive)
Updatedaxe-core@^3.5.3