@applitools/core-base
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -37,3 +37,3 @@ "use strict"; | ||
if (utils.types.isHttpUrl(str)) { | ||
const response = await (0, req_1.req)(target.image); | ||
const response = await (0, req_1.req)(target.image, { proxy: settings === null || settings === void 0 ? void 0 : settings.autProxy }); | ||
target.image = await response.buffer(); | ||
@@ -46,3 +46,3 @@ } | ||
const image = (0, image_1.makeImage)(target.image); | ||
if (settings.normalization || settings.region) { | ||
if ((settings === null || settings === void 0 ? void 0 : settings.normalization) || (settings === null || settings === void 0 ? void 0 : settings.region)) { | ||
await image.debug({ ...settings.debugImages, suffix: 'original' }); | ||
@@ -49,0 +49,0 @@ if (settings.normalization) { |
{ | ||
"name": "@applitools/core-base", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"homepage": "https://applitools.com", | ||
@@ -58,10 +58,10 @@ "bugs": { | ||
"dependencies": { | ||
"@applitools/image": "1.0.5", | ||
"@applitools/logger": "1.1.27", | ||
"@applitools/req": "1.1.12", | ||
"@applitools/utils": "1.3.13" | ||
"@applitools/image": "1.0.6", | ||
"@applitools/logger": "1.1.28", | ||
"@applitools/req": "1.1.13", | ||
"@applitools/utils": "1.3.14" | ||
}, | ||
"devDependencies": { | ||
"@applitools/bongo": "^2.2.0", | ||
"@applitools/test-server": "^1.1.8", | ||
"@applitools/test-server": "^1.1.9", | ||
"@applitools/test-utils": "^1.5.2", | ||
@@ -68,0 +68,0 @@ "@types/mocha": "^9.1.1", |
@@ -198,2 +198,3 @@ /// <reference types="node" /> | ||
}; | ||
autProxy?: Proxy; | ||
debugImages?: { | ||
@@ -200,0 +201,0 @@ path: string; |
import type { Target, ImageSettings } from '../types'; | ||
export declare function transformTarget({ target, settings }: { | ||
target: Target; | ||
settings: ImageSettings; | ||
settings?: ImageSettings; | ||
}): Promise<Target>; |
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
92758
1787
+ Added@applitools/image@1.0.6(transitive)
+ Added@applitools/logger@1.1.28(transitive)
+ Added@applitools/req@1.1.13(transitive)
+ Added@applitools/utils@1.3.14(transitive)
+ Addedbmpimagejs@1.0.4(transitive)
- Removed@applitools/image@1.0.5(transitive)
- Removed@applitools/logger@1.1.27(transitive)
- Removed@applitools/req@1.1.12(transitive)
- Removed@applitools/utils@1.3.13(transitive)
Updated@applitools/image@1.0.6
Updated@applitools/logger@1.1.28
Updated@applitools/req@1.1.13
Updated@applitools/utils@1.3.14