Socket
Socket
Sign inDemoInstall

@axe-core/playwright

Package Overview
Dependencies
Maintainers
4
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axe-core/playwright - npm Package Compare versions

Comparing version 4.9.2-b24b979.0 to 4.9.2-bf7bbf9.0

26

./dist/index.js

@@ -236,3 +236,3 @@ "use strict";

const { page } = this;
page.evaluate(this.script());
await page.evaluate(this.script());
const runPartialDefined = await page.evaluate(

@@ -265,6 +265,18 @@ 'typeof window.axe.runPartial === "function"'

*/
async inject(frames) {
async inject(frames, shouldThrow) {
for (const iframe of frames) {
await iframe.evaluate(await this.script());
await iframe.evaluate(await this.axeConfigure());
const race = new Promise((_, reject) => {
setTimeout(() => {
reject(new Error("Script Timeout"));
}, 1e3);
});
const evaluate = iframe.evaluate(this.script());
try {
await Promise.race([evaluate, race]);
await iframe.evaluate(await this.axeConfigure());
} catch (err) {
if (shouldThrow) {
throw err;
}
}
}

@@ -323,3 +335,3 @@ }

if (childFrame) {
await this.inject([childFrame]);
await this.inject([childFrame], true);
childResults = await this.runPartialRecursive(

@@ -344,4 +356,4 @@ childFrame,

);
blankPage.evaluate(this.script());
blankPage.evaluate(await this.axeConfigure());
await blankPage.evaluate(this.script());
await blankPage.evaluate(await this.axeConfigure());
const sizeLimit = 6e7;

@@ -348,0 +360,0 @@ const partialString = JSON.stringify(partialResults);

@@ -236,3 +236,3 @@ "use strict";

const { page } = this;
page.evaluate(this.script());
await page.evaluate(this.script());
const runPartialDefined = await page.evaluate(

@@ -265,6 +265,18 @@ 'typeof window.axe.runPartial === "function"'

*/
async inject(frames) {
async inject(frames, shouldThrow) {
for (const iframe of frames) {
await iframe.evaluate(await this.script());
await iframe.evaluate(await this.axeConfigure());
const race = new Promise((_, reject) => {
setTimeout(() => {
reject(new Error("Script Timeout"));
}, 1e3);
});
const evaluate = iframe.evaluate(this.script());
try {
await Promise.race([evaluate, race]);
await iframe.evaluate(await this.axeConfigure());
} catch (err) {
if (shouldThrow) {
throw err;
}
}
}

@@ -323,3 +335,3 @@ }

if (childFrame) {
await this.inject([childFrame]);
await this.inject([childFrame], true);
childResults = await this.runPartialRecursive(

@@ -344,4 +356,4 @@ childFrame,

);
blankPage.evaluate(this.script());
blankPage.evaluate(await this.axeConfigure());
await blankPage.evaluate(this.script());
await blankPage.evaluate(await this.axeConfigure());
const sizeLimit = 6e7;

@@ -348,0 +360,0 @@ const partialString = JSON.stringify(partialResults);

{
"name": "@axe-core/playwright",
"version": "4.9.2-b24b979.0+b24b979",
"version": "4.9.2-bf7bbf9.0+bf7bbf9",
"description": "Provides a method to inject and analyze web pages using axe",

@@ -54,6 +54,6 @@ "contributors": [

"dependencies": {
"axe-core": "~4.9.0"
"axe-core": "~4.9.1"
},
"devDependencies": {
"@playwright/test": "^1.34.3",
"@playwright/test": "^1.44.0",
"@types/chai": "^4.3.3",

@@ -96,3 +96,3 @@ "@types/express": "^4.17.14",

},
"gitHead": "b24b9794fefeb3e6470237ec1ea39b76e91314e6"
"gitHead": "bf7bbf983d9630725ffbe4e7ace5b1397ef2bdcf"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc