@applitools/core-base
Advanced tools
Comparing version 1.12.1 to 1.13.0
# Changelog | ||
## [1.13.0](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.12.1...js/core-base@1.13.0) (2024-05-01) | ||
### Features | ||
* `matchTimeout` ([#2309](https://github.com/Applitools-Dev/sdk/issues/2309)) ([626529e](https://github.com/Applitools-Dev/sdk/commit/626529e839fd2a96ac0de98332f42873c0f387a4)) | ||
## [1.12.1](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.12.0...js/core-base@1.12.1) (2024-04-22) | ||
@@ -4,0 +11,0 @@ |
@@ -346,3 +346,3 @@ "use strict"; | ||
}); | ||
const result = await response.json().then((result) => { | ||
const result = await response.json().then(result => { | ||
const { serviceUrl: ufgServerUrl, accessToken, mobileDevicesListUrl: supportedEnvironmentsUrl, resultsUrl: uploadUrl, ...rest } = result; | ||
@@ -505,5 +505,8 @@ return { | ||
}); | ||
const result = await response.json(); | ||
result.userTestId = test.userTestId; | ||
const result = (await response.json()); | ||
logger.log('Request "check" finished successfully with body', result); | ||
return { | ||
userTestId: test.userTestId, | ||
...result, | ||
}; | ||
} | ||
@@ -797,2 +800,3 @@ async function checkAndClose({ target, settings, logger = mainLogger, }) { | ||
forceMatch: settings.forceMatch, | ||
replaceLast: settings.replaceLast, | ||
}, | ||
@@ -799,0 +803,0 @@ }; |
{ | ||
"name": "@applitools/core-base", | ||
"version": "1.12.1", | ||
"version": "1.13.0", | ||
"homepage": "https://applitools.com", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -15,3 +15,5 @@ import type { Target, CheckSettings } from './types'; | ||
logger?: Logger | undefined; | ||
}) => Promise<void>; | ||
}) => Promise<{ | ||
asExpected: boolean; | ||
}>; | ||
export {}; |
@@ -67,3 +67,5 @@ import { type MaybeArray, type Region, type Size, type Location } from '@applitools/utils'; | ||
logger?: Logger; | ||
}): Promise<void>; | ||
}): Promise<{ | ||
asExpected: boolean; | ||
}>; | ||
checkAndClose(options: { | ||
@@ -351,2 +353,4 @@ target: Target; | ||
forceMatch?: boolean; | ||
/** @internal */ | ||
replaceLast?: boolean; | ||
} | ||
@@ -353,0 +357,0 @@ export interface ReportSettings { |
176232
3004