@applitools/core-base
Advanced tools
Comparing version 1.6.1 to 1.7.0
# Changelog | ||
## [1.7.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core-base@1.6.1...js/core-base@1.7.0) (2023-09-28) | ||
### Features | ||
* add support for passing a DOM mapping file to deobfuscate RCA ([8c99f8d](https://github.com/applitools/eyes.sdk.javascript1/commit/8c99f8da53ded229306fe2f3da89cb3b5691e2c0)) | ||
## [1.6.1](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core-base@1.6.0...js/core-base@1.6.1) (2023-09-25) | ||
@@ -4,0 +11,0 @@ |
@@ -28,2 +28,3 @@ "use strict"; | ||
const transform_target_1 = require("./utils/transform-target"); | ||
const transform_dom_mapping_1 = require("./utils/transform-dom-mapping"); | ||
const utils = __importStar(require("@applitools/utils")); | ||
@@ -40,2 +41,3 @@ function makeCheckAndClose({ requests, done, signal, logger: mainLogger }) { | ||
}; | ||
await (0, transform_dom_mapping_1.transformDomMapping)(settings); | ||
logger.log('Command "checkAndClose" is called with settings', settings); | ||
@@ -42,0 +44,0 @@ target = await (0, transform_target_1.transformTarget)({ target, settings }); |
@@ -28,2 +28,3 @@ "use strict"; | ||
const transform_target_1 = require("./utils/transform-target"); | ||
const transform_dom_mapping_1 = require("./utils/transform-dom-mapping"); | ||
const utils = __importStar(require("@applitools/utils")); | ||
@@ -43,2 +44,3 @@ function makeCheck({ requests, signal, logger: mainLogger }) { | ||
}; | ||
await (0, transform_dom_mapping_1.transformDomMapping)(settings); | ||
logger.log('Command "check" is called with settings', settings); | ||
@@ -45,0 +47,0 @@ (_g = queue[_j = settings.stepIndex]) !== null && _g !== void 0 ? _g : (queue[_j] = utils.promises.makeControlledPromise()); |
@@ -428,5 +428,6 @@ "use strict"; | ||
logger.log('Request "check" called for target', target, 'with settings', settings); | ||
[target.image, target.dom] = await Promise.all([ | ||
[target.image, target.dom, settings.domMapping] = await Promise.all([ | ||
upload({ name: 'image', resource: target.image }), | ||
target.dom && upload({ name: 'dom', resource: target.dom, gzip: true }), | ||
settings.domMapping && upload({ name: 'domMapping', resource: settings.domMapping }), | ||
]); | ||
@@ -452,5 +453,6 @@ const response = await req(`/api/sessions/running/${encodeURIComponent(test.testId)}`, { | ||
logger.log('Request "checkAndClose" called for target', target, 'with settings', settings); | ||
[target.image, target.dom] = await Promise.all([ | ||
[target.image, target.dom, settings.domMapping] = await Promise.all([ | ||
upload({ name: 'image', resource: target.image }), | ||
target.dom && upload({ name: 'dom', resource: target.dom, gzip: true }), | ||
settings.domMapping && upload({ name: 'domMapping', resource: settings.domMapping }), | ||
]); | ||
@@ -696,2 +698,3 @@ const matchOptions = transformCheckOptions({ target, settings }); | ||
domUrl: target.dom, | ||
domMappingUrl: settings.domMapping, | ||
location: target.locationInViewport && utils.geometry.round(target.locationInViewport), | ||
@@ -698,0 +701,0 @@ pageCoverageInfo: settings.pageId && { |
{ | ||
"name": "@applitools/core-base", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"homepage": "https://applitools.com", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -0,1 +1,2 @@ | ||
/// <reference types="node" /> | ||
import { type MaybeArray, type Region, type Size, type Location } from '@applitools/utils'; | ||
@@ -321,2 +322,3 @@ import { type Logger } from '@applitools/logger'; | ||
}; | ||
domMapping?: Buffer | URL | string; | ||
pageId?: string; | ||
@@ -323,0 +325,0 @@ /** @internal */ |
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
147231
47
2560
2