@applitools/eyes-browser 1.6.12 → 1.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/index.js +41 -11
- package/package.json +2 -2
- package/types/input/Configuration.d.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.13](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.12...js/eyes-browser@1.6.13) (2026-04-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/req bumped to 1.10.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* expose httpVersion as SDK configuration flag | AD-13119 ([#3731](https://github.com/Applitools-Dev/sdk/issues/3731)) ([efee143](https://github.com/Applitools-Dev/sdk/commit/efee143729ee9ee31b669ea714c69a0ab57bbb1e))
|
|
12
|
+
* @applitools/ufg-client bumped to 1.21.0
|
|
13
|
+
#### Features
|
|
14
|
+
|
|
15
|
+
* expose httpVersion as SDK configuration flag | AD-13119 ([#3731](https://github.com/Applitools-Dev/sdk/issues/3731)) ([efee143](https://github.com/Applitools-Dev/sdk/commit/efee143729ee9ee31b669ea714c69a0ab57bbb1e))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* @applitools/core bumped to 4.60.0
|
|
20
|
+
#### Features
|
|
21
|
+
|
|
22
|
+
* expose httpVersion as SDK configuration flag | AD-13119 ([#3731](https://github.com/Applitools-Dev/sdk/issues/3731)) ([efee143](https://github.com/Applitools-Dev/sdk/commit/efee143729ee9ee31b669ea714c69a0ab57bbb1e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
* @applitools/nml-client bumped to 1.11.25
|
|
27
|
+
|
|
28
|
+
* @applitools/tunnel-client bumped to 1.11.11
|
|
29
|
+
|
|
30
|
+
* @applitools/core-base bumped to 1.33.0
|
|
31
|
+
#### Features
|
|
32
|
+
|
|
33
|
+
* expose httpVersion as SDK configuration flag | AD-13119 ([#3731](https://github.com/Applitools-Dev/sdk/issues/3731)) ([efee143](https://github.com/Applitools-Dev/sdk/commit/efee143729ee9ee31b669ea714c69a0ab57bbb1e))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
* @applitools/ec-client bumped to 1.12.26
|
|
38
|
+
|
|
39
|
+
* @applitools/eyes bumped to 1.39.0
|
|
40
|
+
#### Features
|
|
41
|
+
|
|
42
|
+
* expose httpVersion as SDK configuration flag | AD-13119 ([#3731](https://github.com/Applitools-Dev/sdk/issues/3731)) ([efee143](https://github.com/Applitools-Dev/sdk/commit/efee143729ee9ee31b669ea714c69a0ab57bbb1e))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
3
47
|
## [1.6.12](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.6.11...js/eyes-browser@1.6.12) (2026-04-16)
|
|
4
48
|
|
|
5
49
|
|
package/dist/index.js
CHANGED
|
@@ -15713,6 +15713,23 @@ var require_Configuration = __commonJS({
|
|
|
15713
15713
|
this.hostOSInfo = hostOSInfo;
|
|
15714
15714
|
return this;
|
|
15715
15715
|
}
|
|
15716
|
+
/** @internal */
|
|
15717
|
+
get httpVersion() {
|
|
15718
|
+
return this._config.httpVersion;
|
|
15719
|
+
}
|
|
15720
|
+
/** @internal */
|
|
15721
|
+
set httpVersion(httpVersion) {
|
|
15722
|
+
this._config.httpVersion = httpVersion;
|
|
15723
|
+
}
|
|
15724
|
+
/** @internal */
|
|
15725
|
+
getHttpVersion() {
|
|
15726
|
+
return this.httpVersion;
|
|
15727
|
+
}
|
|
15728
|
+
/** @internal */
|
|
15729
|
+
setHttpVersion(httpVersion) {
|
|
15730
|
+
this.httpVersion = httpVersion;
|
|
15731
|
+
return this;
|
|
15732
|
+
}
|
|
15716
15733
|
get ignoreBaseline() {
|
|
15717
15734
|
return this._config.ignoreBaseline;
|
|
15718
15735
|
}
|
|
@@ -16202,6 +16219,7 @@ var require_Configuration = __commonJS({
|
|
|
16202
16219
|
agentId: this.agentId,
|
|
16203
16220
|
proxy: this.proxy,
|
|
16204
16221
|
connectionTimeout: this.connectionTimeout,
|
|
16222
|
+
httpVersion: this.httpVersion,
|
|
16205
16223
|
removeSession: this.removeSession,
|
|
16206
16224
|
appName: this.appName,
|
|
16207
16225
|
testName: this.testName,
|
|
@@ -19811,7 +19829,7 @@ var init_stop = __esm({
|
|
|
19811
19829
|
});
|
|
19812
19830
|
|
|
19813
19831
|
// ../req/dist/fetch-browser.js
|
|
19814
|
-
var fetch_browser_default, Request, Headers, Response,
|
|
19832
|
+
var fetch_browser_default, Request, Headers, Response, getFetchForVersion, validateOptionsForVersion;
|
|
19815
19833
|
var init_fetch_browser = __esm({
|
|
19816
19834
|
"../req/dist/fetch-browser.js"() {
|
|
19817
19835
|
"use strict";
|
|
@@ -19824,7 +19842,11 @@ var init_fetch_browser = __esm({
|
|
|
19824
19842
|
Request = globalThis.Request;
|
|
19825
19843
|
Headers = globalThis.Headers;
|
|
19826
19844
|
Response = globalThis.Response;
|
|
19827
|
-
|
|
19845
|
+
getFetchForVersion = (_httpVersion) => ({
|
|
19846
|
+
fetch: globalThis.fetch,
|
|
19847
|
+
getBodySize: () => void 0
|
|
19848
|
+
});
|
|
19849
|
+
validateOptionsForVersion = (_httpVersion, _options) => void 0;
|
|
19828
19850
|
}
|
|
19829
19851
|
});
|
|
19830
19852
|
|
|
@@ -19884,6 +19906,7 @@ var init_req_errors = __esm({
|
|
|
19884
19906
|
|
|
19885
19907
|
// ../req/dist/req.js
|
|
19886
19908
|
function makeReq(baseOptions) {
|
|
19909
|
+
validateOptionsForVersion(baseOptions.httpVersion, baseOptions);
|
|
19887
19910
|
return (location2, options) => req(location2, mergeOptions(baseOptions, options !== null && options !== void 0 ? options : {}));
|
|
19888
19911
|
}
|
|
19889
19912
|
async function req(input, ...requestOptions) {
|
|
@@ -19936,7 +19959,7 @@ async function req(input, ...requestOptions) {
|
|
|
19936
19959
|
}
|
|
19937
19960
|
return { requestController, requestTimer, abortHandler };
|
|
19938
19961
|
}
|
|
19939
|
-
async function buildRequest(input2, opts, requestController) {
|
|
19962
|
+
async function buildRequest(input2, opts, requestController, getBodySize) {
|
|
19940
19963
|
var _a, _b, _c, _d, _e;
|
|
19941
19964
|
const url = new URL(String((_a = input2.url) !== null && _a !== void 0 ? _a : input2), opts.baseUrl);
|
|
19942
19965
|
if (opts.query) {
|
|
@@ -19959,11 +19982,11 @@ async function req(input, ...requestOptions) {
|
|
|
19959
19982
|
},
|
|
19960
19983
|
body: (_e = opts.body) !== null && _e !== void 0 ? _e : input2.body,
|
|
19961
19984
|
highWaterMark: 1024 * 1024 * 100 + 1,
|
|
19962
|
-
agent: makeAgent({
|
|
19985
|
+
agent: opts.httpVersion !== 2 ? makeAgent({
|
|
19963
19986
|
proxy: opts.proxy,
|
|
19964
19987
|
useDnsCache: opts.useDnsCache,
|
|
19965
19988
|
keepAliveOptions: opts.keepAliveOptions
|
|
19966
|
-
}),
|
|
19989
|
+
}) : void 0,
|
|
19967
19990
|
signal: requestController.signal
|
|
19968
19991
|
};
|
|
19969
19992
|
const finalSize = await getBodySize(input2, opts);
|
|
@@ -20060,7 +20083,9 @@ async function req(input, ...requestOptions) {
|
|
|
20060
20083
|
}
|
|
20061
20084
|
async function singleReq(input2, options2) {
|
|
20062
20085
|
var _a, _b;
|
|
20063
|
-
|
|
20086
|
+
validateOptionsForVersion(options2.httpVersion, options2);
|
|
20087
|
+
const { fetch: versionedFetch, getBodySize } = getFetchForVersion(options2.httpVersion, options2.useDnsCache);
|
|
20088
|
+
const fetch2 = (_a = options2.fetch) !== null && _a !== void 0 ? _a : versionedFetch;
|
|
20064
20089
|
let optionsFallbacks = [];
|
|
20065
20090
|
if (options2.fallbacks)
|
|
20066
20091
|
optionsFallbacks = utils.types.isArray(options2.fallbacks) ? options2.fallbacks : [options2.fallbacks];
|
|
@@ -20073,7 +20098,7 @@ async function req(input, ...requestOptions) {
|
|
|
20073
20098
|
options2 = await fb.updateOptions({ options: options2 });
|
|
20074
20099
|
while (true) {
|
|
20075
20100
|
const { requestController, requestTimer, abortHandler } = setupRequestController(options2);
|
|
20076
|
-
const request = await buildRequest(input2, options2, requestController);
|
|
20101
|
+
const request = await buildRequest(input2, options2, requestController, getBodySize);
|
|
20077
20102
|
try {
|
|
20078
20103
|
let response = await fetch2(request);
|
|
20079
20104
|
const fallbackResponse = await tryFallback(request, response, options2, optionsFallbacks);
|
|
@@ -20928,6 +20953,7 @@ var require_req_eyes = __commonJS({
|
|
|
20928
20953
|
},
|
|
20929
20954
|
proxy: settings.proxy,
|
|
20930
20955
|
useDnsCache: settings.useDnsCache,
|
|
20956
|
+
httpVersion: settings.httpVersion,
|
|
20931
20957
|
connectionTimeout: (_a = settings.connectionTimeout) !== null && _a !== void 0 ? _a : 3e5,
|
|
20932
20958
|
requestTimeout: (_b = settings.requestTimeout) !== null && _b !== void 0 ? _b : 3e4,
|
|
20933
20959
|
retryTimeout: (_c = settings.retryTimeout) !== null && _c !== void 0 ? _c : retryDuration,
|
|
@@ -28462,6 +28488,7 @@ var require_requests = __commonJS({
|
|
|
28462
28488
|
apiKey: settings.apiKey,
|
|
28463
28489
|
proxy: settings.proxy,
|
|
28464
28490
|
useDnsCache: settings.useDnsCache,
|
|
28491
|
+
httpVersion: settings.httpVersion,
|
|
28465
28492
|
agentId: settings.agentId,
|
|
28466
28493
|
interval: (_a = utils2.general.getEnvValue("HEARTBEAT_INTERVAL", "number")) !== null && _a !== void 0 ? _a : account.processKeepaliveIntervalSec * 1e3
|
|
28467
28494
|
});
|
|
@@ -29010,6 +29037,7 @@ var require_requests = __commonJS({
|
|
|
29010
29037
|
apiKey: settings.apiKey,
|
|
29011
29038
|
proxy: settings.proxy,
|
|
29012
29039
|
useDnsCache: settings.useDnsCache,
|
|
29040
|
+
httpVersion: settings.httpVersion,
|
|
29013
29041
|
agentId: settings.agentId,
|
|
29014
29042
|
interval: (_a = utils2.general.getEnvValue("HEARTBEAT_INTERVAL", "number")) !== null && _a !== void 0 ? _a : account.processKeepaliveIntervalSec * 1e3
|
|
29015
29043
|
});
|
|
@@ -103753,6 +103781,7 @@ var require_req_ufg = __commonJS({
|
|
|
103753
103781
|
},
|
|
103754
103782
|
proxy: settings.proxy,
|
|
103755
103783
|
useDnsCache: settings.useDnsCache,
|
|
103784
|
+
httpVersion: settings.httpVersion,
|
|
103756
103785
|
connectionTimeout: (_a = settings.connectionTimeout) !== null && _a !== void 0 ? _a : 3e5,
|
|
103757
103786
|
requestTimeout: {
|
|
103758
103787
|
base: 3e4,
|
|
@@ -126126,7 +126155,8 @@ var require_populate_eyes_server_settings = __commonJS({
|
|
|
126126
126155
|
eyesServerUrl: settings.eyesServerUrl,
|
|
126127
126156
|
apiKey: settings.apiKey,
|
|
126128
126157
|
proxy: settings.proxy,
|
|
126129
|
-
useDnsCache: settings.useDnsCache
|
|
126158
|
+
useDnsCache: settings.useDnsCache,
|
|
126159
|
+
httpVersion: settings.httpVersion
|
|
126130
126160
|
};
|
|
126131
126161
|
}
|
|
126132
126162
|
exports.populateEyesServerSettings = populateEyesServerSettings;
|
|
@@ -128280,7 +128310,7 @@ var require_package3 = __commonJS({
|
|
|
128280
128310
|
"../core/package.json"(exports, module) {
|
|
128281
128311
|
module.exports = {
|
|
128282
128312
|
name: "@applitools/core",
|
|
128283
|
-
version: "4.
|
|
128313
|
+
version: "4.60.0",
|
|
128284
128314
|
homepage: "https://applitools.com",
|
|
128285
128315
|
bugs: {
|
|
128286
128316
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -129822,7 +129852,7 @@ var require_package4 = __commonJS({
|
|
|
129822
129852
|
"../eyes/package.json"(exports, module) {
|
|
129823
129853
|
module.exports = {
|
|
129824
129854
|
name: "@applitools/eyes",
|
|
129825
|
-
version: "1.
|
|
129855
|
+
version: "1.39.0",
|
|
129826
129856
|
keywords: [
|
|
129827
129857
|
"applitools",
|
|
129828
129858
|
"eyes",
|
|
@@ -131437,7 +131467,7 @@ var require_package5 = __commonJS({
|
|
|
131437
131467
|
"package.json"(exports, module) {
|
|
131438
131468
|
module.exports = {
|
|
131439
131469
|
name: "@applitools/eyes-browser",
|
|
131440
|
-
version: "1.6.
|
|
131470
|
+
version: "1.6.13",
|
|
131441
131471
|
type: "module",
|
|
131442
131472
|
keywords: [
|
|
131443
131473
|
"applitools",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"test": "run playwright test"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@applitools/eyes": "1.
|
|
54
|
+
"@applitools/eyes": "1.39.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@applitools/test-server": "1.4.3",
|
|
@@ -63,6 +63,8 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
63
63
|
hostAppInfo?: string;
|
|
64
64
|
hostOS?: string;
|
|
65
65
|
hostOSInfo?: string;
|
|
66
|
+
/** @internal */
|
|
67
|
+
httpVersion?: 1 | 2;
|
|
66
68
|
ignoreBaseline?: boolean;
|
|
67
69
|
ignoreCaret?: boolean;
|
|
68
70
|
ignoreDisplacements?: boolean;
|
|
@@ -70,6 +72,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
|
|
|
70
72
|
isDisabled?: boolean;
|
|
71
73
|
layoutBreakpoints?: boolean | number[] | {
|
|
72
74
|
breakpoints: number[] | boolean;
|
|
75
|
+
heightBreakpoints?: boolean;
|
|
73
76
|
reload?: boolean;
|
|
74
77
|
};
|
|
75
78
|
matchLevel?: MatchLevel;
|
|
@@ -312,6 +315,14 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
312
315
|
set hostOSInfo(hostOSInfo: string);
|
|
313
316
|
getHostOSInfo(): string;
|
|
314
317
|
setHostOSInfo(hostOSInfo: string): this;
|
|
318
|
+
/** @internal */
|
|
319
|
+
get httpVersion(): 1 | 2;
|
|
320
|
+
/** @internal */
|
|
321
|
+
set httpVersion(httpVersion: 1 | 2);
|
|
322
|
+
/** @internal */
|
|
323
|
+
getHttpVersion(): 1 | 2;
|
|
324
|
+
/** @internal */
|
|
325
|
+
setHttpVersion(httpVersion: 1 | 2): this;
|
|
315
326
|
get ignoreBaseline(): boolean;
|
|
316
327
|
set ignoreBaseline(ignoreBaseline: boolean);
|
|
317
328
|
getIgnoreBaseline(): boolean;
|
|
@@ -334,18 +345,22 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
|
|
|
334
345
|
setIsDisabled(isDisabled: boolean): this;
|
|
335
346
|
get layoutBreakpoints(): boolean | number[] | {
|
|
336
347
|
breakpoints: number[] | boolean;
|
|
348
|
+
heightBreakpoints?: boolean;
|
|
337
349
|
reload?: boolean;
|
|
338
350
|
};
|
|
339
351
|
set layoutBreakpoints(layoutBreakpoints: boolean | number[] | {
|
|
340
352
|
breakpoints: number[] | boolean;
|
|
353
|
+
heightBreakpoints?: boolean;
|
|
341
354
|
reload?: boolean;
|
|
342
355
|
});
|
|
343
356
|
getLayoutBreakpoints(): boolean | number[] | {
|
|
344
357
|
breakpoints: number[] | boolean;
|
|
358
|
+
heightBreakpoints?: boolean;
|
|
345
359
|
reload?: boolean;
|
|
346
360
|
};
|
|
347
361
|
setLayoutBreakpoints(layoutBreakpoints: boolean | number[] | {
|
|
348
362
|
breakpoints: number[] | boolean;
|
|
363
|
+
heightBreakpoints?: boolean;
|
|
349
364
|
reload?: boolean;
|
|
350
365
|
}): this;
|
|
351
366
|
get matchLevel(): MatchLevel;
|