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.1-f38a6c8.0 to 4.9.1

20

./dist/index.js

@@ -264,6 +264,18 @@ "use strict";

*/
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;
}
}
}

@@ -322,3 +334,3 @@ }

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

@@ -325,0 +337,0 @@ childFrame,

@@ -264,6 +264,18 @@ "use strict";

*/
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;
}
}
}

@@ -322,3 +334,3 @@ }

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

@@ -325,0 +337,0 @@ childFrame,

8

package.json
{
"name": "@axe-core/playwright",
"version": "4.9.1-f38a6c8.0+f38a6c8",
"version": "4.9.1",
"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": "f38a6c82e98db673ed672d0f2e1a41810fd488c8"
"gitHead": "22d7a0e8009196dec6cb54b22a018fc96c063358"
}

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