@applitools/visual-grid-client
Advanced tools
Comparing version 10.0.2 to 11.0.2
{ | ||
"name": "@applitools/visual-grid-client", | ||
"version": "10.0.2", | ||
"version": "11.0.2", | ||
"description": "", | ||
@@ -14,7 +14,7 @@ "main": "src/visual-grid-client.js", | ||
"scripts": { | ||
"test:mocha": "mocha --no-timeouts 'test/**/*.test.js'", | ||
"test:unit": "mocha --no-timeouts 'test/unit/**/*.test.js'", | ||
"test:it": "mocha --no-timeouts 'test/it/**/*.test.js'", | ||
"test:e2e": "mocha --no-timeouts 'test/e2e/**/*.test.js'", | ||
"eslint": "eslint '**/*.js'", | ||
"test:mocha": "mocha --no-timeouts \"test/**/*.test.js\"", | ||
"test:unit": "mocha --no-timeouts \"test/unit/**/*.test.js\"", | ||
"test:it": "mocha --no-timeouts \"test/it/**/*.test.js\"", | ||
"test:e2e": "mocha --no-timeouts \"test/e2e/**/*.test.js\"", | ||
"eslint": "eslint \"**/*.js\"", | ||
"test": "npm run test:mocha && npm run eslint", | ||
@@ -40,3 +40,4 @@ "prepublishOnly": "npm version patch", | ||
"dependencies": { | ||
"@applitools/eyes-sdk-core": "^4.5.4", | ||
"@applitools/eyes-common": "^1.2.1", | ||
"@applitools/eyes-sdk-core": "^4.6.3", | ||
"@applitools/functional-commons": "^1.0.33", | ||
@@ -71,3 +72,4 @@ "@applitools/http-commons": "^1.2.3", | ||
"puppeteer": "^1.11.0" | ||
} | ||
}, | ||
"gitHead": "2b2211124c4281f87349634ff94974c8ce6589f4" | ||
} |
@@ -202,2 +202,2 @@ # visual-grid-client | ||
git config changelog.format "* %s - %an [[%h](https://github.com/applitools/visual-grid-client/commit/%H)]" | ||
``` | ||
``` |
'use strict'; | ||
const {presult} = require('@applitools/functional-commons'); | ||
const {RectangleSize, Location} = require('@applitools/eyes-common'); | ||
const saveData = require('../troubleshoot/saveData'); | ||
const createRenderRequests = require('./createRenderRequests'); | ||
const createCheckSettings = require('./createCheckSettings'); | ||
const {presult} = require('@applitools/functional-commons'); | ||
const {RectangleSize, Location} = require('@applitools/eyes-sdk-core'); | ||
const calculateIgnoreAndFloatingRegions = require('./calculateIgnoreAndFloatingRegions'); | ||
@@ -10,0 +10,0 @@ |
'use strict'; | ||
const {CheckSettings, Region} = require('@applitools/eyes-sdk-core'); | ||
const {CheckSettings, Region, IgnoreRegionByRectangle, FloatingRegionByRectangle} = require('@applitools/eyes-sdk-core'); | ||
function createCheckSettings({ignore, floating}) { | ||
@@ -9,3 +10,7 @@ const checkSettings = new CheckSettings(0); | ||
for (const region of ignore) { | ||
checkSettings.ignoreRegions(new Region(region)); | ||
if (region instanceof IgnoreRegionByRectangle) { | ||
checkSettings.ignoreRegions(region); | ||
} else { | ||
checkSettings.ignoreRegions(new Region(region)); | ||
} | ||
} | ||
@@ -16,9 +21,13 @@ } | ||
for (const region of floating) { | ||
checkSettings.floatingRegion( | ||
new Region(region), | ||
region.maxUpOffset, | ||
region.maxDownOffset, | ||
region.maxLeftOffset, | ||
region.maxRightOffset, | ||
); | ||
if (region instanceof FloatingRegionByRectangle) { | ||
checkSettings.floatingRegion(region); | ||
} else { | ||
checkSettings.floatingRegion( | ||
new Region(region), | ||
region.maxUpOffset, | ||
region.maxDownOffset, | ||
region.maxLeftOffset, | ||
region.maxRightOffset, | ||
); | ||
} | ||
} | ||
@@ -25,0 +34,0 @@ } |
@@ -49,4 +49,3 @@ 'use strict'; | ||
setRenderingInfo(renderingInfo) { | ||
this._serverConnector.setRenderingAuthToken(renderingInfo.getAccessToken()); | ||
this._serverConnector.setRenderingServerUrl(renderingInfo.getServiceUrl()); | ||
this._serverConnector.setRenderingInfo(renderingInfo); | ||
} | ||
@@ -53,0 +52,0 @@ |
@@ -0,3 +1,4 @@ | ||
'use strict'; | ||
/* global fetch */ | ||
'use strict'; | ||
require('@applitools/isomorphic-fetch'); | ||
@@ -4,0 +5,0 @@ const retryFetch = require('@applitools/http-commons/src/retryFetch'); |
'use strict'; | ||
const {Logger} = require('@applitools/eyes-common'); | ||
const throatPkg = require('throat'); | ||
const createLogger = require('./createLogger'); | ||
const makeGetAllResources = require('./getAllResources'); | ||
@@ -66,3 +68,3 @@ const makeExtractCssResources = require('./extractCssResources'); | ||
const renderThroat = throatPkg(openEyesConcurrency * renderConcurrencyFactor); | ||
const logger = createLogger(showLogs); | ||
const logger = new Logger(showLogs); | ||
renderWrapper = | ||
@@ -69,0 +71,0 @@ renderWrapper || |
'use strict'; | ||
const {DiffsFoundError, TestResults, TestFailedError, TestResultsStatus} = require('@applitools/eyes-sdk-core'); | ||
const makeVisualGridClient = require('./sdk/renderingGridClient'); | ||
const configParams = require('./sdk/configParams'); | ||
const { | ||
DiffsFoundError, | ||
TestResults, | ||
TestFailedError, | ||
TestResultsStatus, | ||
} = require('@applitools/eyes-sdk-core'); | ||
@@ -11,0 +8,0 @@ module.exports = { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
108175
203
12
1785
2