Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@axe-core/watcher

Package Overview
Dependencies
Maintainers
0
Versions
897
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axe-core/watcher - npm Package Compare versions

Comparing version 3.16.1-next.d87ca536 to 3.16.1-next.dcf5da5f

16

dist/Controller.js

@@ -19,4 +19,18 @@ "use strict";

this.debugLogger(`Start: Invoked`);
const result = await this.executeScript(() => {
return new Promise(resolve => {
if (!['http:', 'https:', 'file:'].includes(window.location.protocol)) {
resolve({ message: 'Clean skipped - invalid protocol' });
}
const fn = (event) => {
window.removeEventListener('axe:manual-mode-clean-done', fn);
resolve({ message: event.detail.message });
};
window.addEventListener('axe:manual-mode-clean-done', fn);
const event = new CustomEvent('axe:manual-mode-clean');
window.dispatchEvent(event);
});
});
this.debugLogger(`Start: ${result.message}`);
this.isStopped = false;
return Promise.resolve();
}

@@ -23,0 +37,0 @@ async stop() {

@@ -157,6 +157,31 @@ "use strict";

function axeWatcherStartCommand(subject) {
cy.window().then(() => {
logDebugAxeWatcher({ message: `Start: Invoked` });
isStopped = false;
return Promise.resolve(subject);
logDebugAxeWatcher({ message: 'Start: Invoked' });
cy.window().then(win => {
if (!shouldAnalyzeLocation(win.location)) {
isStopped = false;
logDebugAxeWatcher({
message: 'Clean: Skipped - invalid protocol'
});
return Promise.resolve({
message: 'Clean: Skipped - Invalid protocol',
subject
});
}
return new Promise(resolve => {
const fn = (event) => {
win.removeEventListener('axe:manual-mode-clean-done', fn);
resolve({ message: event.detail.message, subject });
};
win.addEventListener('axe:manual-mode-clean-done', fn);
const event = new CustomEvent('axe:manual-mode-clean');
win.dispatchEvent(event);
}).then(result => {
logDebugAxeWatcher({
message: `Start: ${result === null || result === void 0 ? void 0 : result.message}`
});
isStopped = false;
if (result === null || result === void 0 ? void 0 : result.subject) {
return result.subject;
}
});
});

@@ -163,0 +188,0 @@ }

2

package.json
{
"name": "@axe-core/watcher",
"version": "3.16.1-next.d87ca536",
"version": "3.16.1-next.dcf5da5f",
"description": "",

@@ -5,0 +5,0 @@ "license": "UNLICENSED",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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