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 3.3.15 to 3.3.16

6

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

@@ -37,5 +37,5 @@ "license": "MIT",

"dependencies": {
"@applitools/dom-capture": "^6.0.2",
"@applitools/dom-capture": "^6.1.1",
"@applitools/functional-commons": "^1.0.27",
"@applitools/visual-grid-client": "^9.0.4",
"@applitools/visual-grid-client": "^9.0.5",
"body-parser": "^1.18.3",

@@ -42,0 +42,0 @@ "chalk": "^2.4.1",

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

return processPage(doc).then(mainFrame => {
const allBlobs = getAllBlobs(mainFrame);
const allBlobs = getAllBlobs(mainFrame).map(mapBlob);
const {resourceUrls, blobData, frames, url, cdt} = replaceBlobsWithBlobDataInFrame(mainFrame);

@@ -67,6 +67,10 @@ return Promise.all(allBlobs.map(putResource)).then(() =>

function mapBlobData({url, type}) {
return {url, type};
return {url, type: type || 'application/x-applitools-unknown'};
}
function mapBlob({url, type, value}) {
return {url, type: type || 'application/x-applitools-unknown', value};
}
}
module.exports = makeEyesCheckWindow;

@@ -16,2 +16,3 @@ 'use strict';

const id = req.params.id; // already decoded by express with decodeURIComponent
if (!(req.body instanceof Buffer)) throw new Error(`could not process resource ${id}`); // body-parser returned non-buffer body: https://github.com/expressjs/body-parser/blob/bd386d3a7d540bac90bbdaff88f653414f6647fc/lib/types/raw.js#L62
const buffer = Buffer.from(JSON.parse(req.body).data);

@@ -18,0 +19,0 @@ logger.log('[server] PUT resource:', id, buffer.length);

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