@applitools/eyes.cypress
Advanced tools
Comparing version 3.3.15 to 3.3.16
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129528
714