@applitools/core-base
Advanced tools
Comparing version 1.7.5 to 1.8.0
# Changelog | ||
## [1.8.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core-base@1.7.5...js/core-base@1.8.0) (2024-01-02) | ||
### Features | ||
* sorted result regions of locate method ([ef6b249](https://github.com/applitools/eyes.sdk.javascript1/commit/ef6b249ad9d6998d6089423efd93f0220f13d378)) | ||
### Bug Fixes | ||
* fixed concurrency splank logging ([#2115](https://github.com/applitools/eyes.sdk.javascript1/issues/2115)) ([83afd7d](https://github.com/applitools/eyes.sdk.javascript1/commit/83afd7dd2b52125fdc233dadbaf774811ea1c738)) | ||
## [1.7.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core-base@1.7.4...js/core-base@1.7.5) (2023-12-19) | ||
@@ -4,0 +16,0 @@ |
@@ -19,2 +19,5 @@ "use strict"; | ||
return { | ||
get concurrency() { | ||
return concurrency; | ||
}, | ||
openEyes: (0, open_eyes_1.makeOpenEyes)({ requests, agentId, concurrency, cwd, logger }), | ||
@@ -21,0 +24,0 @@ openFunctionalSession: (0, open_functional_session_1.makeOpenFunctionalSession)({ requests, agentId, concurrency, cwd, logger }), |
@@ -41,2 +41,3 @@ "use strict"; | ||
const core = { | ||
concurrency: undefined, | ||
getAccountInfo: getAccountInfoWithCache, | ||
@@ -230,7 +231,11 @@ getBatchBranches: getBatchBranchesWithCache, | ||
const result = await response.json().then((results) => { | ||
return Object.entries(results).reduce((results, [key, regions]) => { | ||
var _a; | ||
results[key] = | ||
(_a = regions === null || regions === void 0 ? void 0 : regions.map(region => ({ x: region.left, y: region.top, width: region.width, height: region.height }))) !== null && _a !== void 0 ? _a : []; | ||
return results; | ||
return settings.locatorNames.reduce((regions, locatorName) => { | ||
var _a, _b; | ||
regions[locatorName] = (_b = (((_a = results[locatorName]) !== null && _a !== void 0 ? _a : []))) === null || _b === void 0 ? void 0 : _b.map(region => ({ x: region.left, y: region.top, width: region.width, height: region.height })).sort((region1, region2) => { | ||
if (region1.y !== region2.y) | ||
return region1.y > region2.y ? 1 : -1; | ||
else | ||
return region1.x > region2.x ? 1 : -1; | ||
}); | ||
return regions; | ||
}, {}); | ||
@@ -237,0 +242,0 @@ }); |
{ | ||
"name": "@applitools/core-base", | ||
"version": "1.7.5", | ||
"version": "1.8.0", | ||
"homepage": "https://applitools.com", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -18,2 +18,3 @@ import { type MaybeArray, type Region, type Size, type Location } from '@applitools/utils'; | ||
export interface Core { | ||
readonly concurrency: number | undefined; | ||
openEyes(options: { | ||
@@ -20,0 +21,0 @@ settings: OpenSettings; |
155131
2644