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

@applitools/eyes.cypress

Package Overview
Dependencies
Maintainers
12
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/eyes.cypress - npm Package Compare versions

Comparing version 1.5.14 to 1.5.15

4

package.json
{
"name": "@applitools/eyes.cypress",
"version": "1.5.14",
"version": "1.5.15",
"main": "index.js",

@@ -34,3 +34,3 @@ "license": "MIT",

"@applitools/dom-capture": "^2.0.0",
"@applitools/rendering-grid-client": "^1.0.8",
"@applitools/rendering-grid-client": "^1.1.1",
"body-parser": "1.18.2",

@@ -37,0 +37,0 @@ "cors": "^2.8.4",

@@ -25,3 +25,3 @@ /* global Cypress,cy,window */

checkWindow({resourceUrls, blobs, cdt, tag, sizeMode, domCapture}) {
checkWindow({url, resourceUrls, blobs, cdt, tag, sizeMode, domCapture}) {
const blobData = blobs.map(({url, type}) => ({url, type}));

@@ -31,3 +31,3 @@ return Promise.all(blobs.map(EyesServer.putResource)).then(() =>

command: 'checkWindow',
data: {resourceUrls, cdt, tag, sizeMode, blobData, domCapture},
data: {url, resourceUrls, cdt, tag, sizeMode, blobData, domCapture},
}),

@@ -44,6 +44,3 @@ );

Cypress.log({name: 'Eyes: open'});
return cy.window({log: false}).then(win => {
const openArgs = Object.assign({url: win.location.href}, args);
return EyesServer.open(openArgs);
});
return EyesServer.open(args);
});

@@ -66,3 +63,11 @@

return extractResources(doc, win).then(({resourceUrls, blobs}) =>
EyesServer.checkWindow({resourceUrls, blobs, cdt, tag, sizeMode, domCapture}),
EyesServer.checkWindow({
url: win.location.href,
resourceUrls,
blobs,
cdt,
tag,
sizeMode,
domCapture,
}),
);

@@ -69,0 +74,0 @@ }),

@@ -26,3 +26,3 @@ 'use strict';

checkWindow: async ({resourceUrls, cdt, tag, blobData = [], sizeMode, domCapture}) => {
checkWindow: async ({url, resourceUrls, cdt, tag, blobData = [], sizeMode, domCapture}) => {
if (!checkWindow) {

@@ -37,3 +37,11 @@ throw new Error('Please call cy.eyesOpen() before calling cy.eyesCheckWindow()');

return await checkWindow({resourceUrls, resourceContents, cdt, tag, sizeMode, domCapture});
return await checkWindow({
url,
resourceUrls,
resourceContents,
cdt,
tag,
sizeMode,
domCapture,
});
},

@@ -40,0 +48,0 @@

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