@applitools/eyes 1.36.20 → 1.37.0
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 +15 -0
- package/dist/input/BatchInfo.js +16 -0
- package/package.json +2 -2
- package/types/input/BatchInfo.d.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.37.0](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.36.20...js/eyes@1.37.0) (2026-01-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* expose buildId in BatchInfo type | FLD-4020 ([#3466](https://github.com/Applitools-Dev/sdk/issues/3466)) ([7868ba0](https://github.com/Applitools-Dev/sdk/commit/7868ba08de9a9d348c42d8eac5a953dce44844d0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/core bumped to 4.54.3
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* `close`/`getResults` race condition ([#3450](https://github.com/Applitools-Dev/sdk/issues/3450)) ([2e5437d](https://github.com/Applitools-Dev/sdk/commit/2e5437dcfde6fda58d76227659ee249bfa3885a7))
|
|
17
|
+
|
|
3
18
|
## [1.36.20](https://github.com/Applitools-Dev/sdk/compare/js/eyes@1.36.19...js/eyes@1.36.20) (2026-01-11)
|
|
4
19
|
|
|
5
20
|
|
package/dist/input/BatchInfo.js
CHANGED
|
@@ -37,6 +37,7 @@ class BatchInfoData {
|
|
|
37
37
|
utils.guard.isString(batch.sequenceName, { name: 'sequenceName', strict: false });
|
|
38
38
|
utils.guard.isBoolean(batch.notifyOnCompletion, { name: 'notifyOnCompletion', strict: false });
|
|
39
39
|
utils.guard.isArray(batch.properties, { name: 'properties', strict: false });
|
|
40
|
+
utils.guard.isString(batch.buildId, { name: 'buildId', strict: false });
|
|
40
41
|
this._batch = {
|
|
41
42
|
id: (_b = (_a = batch.id) !== null && _a !== void 0 ? _a : utils.general.getEnvValue('BATCH_ID')) !== null && _b !== void 0 ? _b : `generated-${utils.general.guid()}`,
|
|
42
43
|
name: (_c = batch.name) !== null && _c !== void 0 ? _c : utils.general.getEnvValue('BATCH_NAME'),
|
|
@@ -44,6 +45,7 @@ class BatchInfoData {
|
|
|
44
45
|
startedAt: (_e = batch.startedAt) !== null && _e !== void 0 ? _e : new Date(),
|
|
45
46
|
notifyOnCompletion: (_g = (_f = batch.notifyOnCompletion) !== null && _f !== void 0 ? _f : utils.general.getEnvValue('BATCH_NOTIFY', 'boolean')) !== null && _g !== void 0 ? _g : false,
|
|
46
47
|
properties: batch.properties,
|
|
48
|
+
buildId: batch.buildId,
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
get id() {
|
|
@@ -137,6 +139,20 @@ class BatchInfoData {
|
|
|
137
139
|
this.properties.push(property);
|
|
138
140
|
return this;
|
|
139
141
|
}
|
|
142
|
+
get buildId() {
|
|
143
|
+
return this._batch.buildId;
|
|
144
|
+
}
|
|
145
|
+
set buildId(buildId) {
|
|
146
|
+
utils.guard.isString(buildId, { name: 'buildId', strict: false });
|
|
147
|
+
this._batch.buildId = buildId;
|
|
148
|
+
}
|
|
149
|
+
getBuildId() {
|
|
150
|
+
return this.buildId;
|
|
151
|
+
}
|
|
152
|
+
setBuildId(buildId) {
|
|
153
|
+
this.buildId = buildId;
|
|
154
|
+
return this;
|
|
155
|
+
}
|
|
140
156
|
/** @internal */
|
|
141
157
|
toObject() {
|
|
142
158
|
return this._batch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"eyes",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@applitools/core": "4.54.
|
|
49
|
+
"@applitools/core": "4.54.3",
|
|
50
50
|
"@applitools/logger": "2.2.7",
|
|
51
51
|
"@applitools/utils": "1.14.1",
|
|
52
52
|
"chalk": "4.1.2",
|
|
@@ -6,6 +6,7 @@ export type BatchInfo = {
|
|
|
6
6
|
startedAt?: Date | string;
|
|
7
7
|
notifyOnCompletion?: boolean;
|
|
8
8
|
properties?: PropertyData[];
|
|
9
|
+
buildId?: string;
|
|
9
10
|
};
|
|
10
11
|
export declare class BatchInfoData implements Required<BatchInfo> {
|
|
11
12
|
private _batch;
|
|
@@ -38,6 +39,10 @@ export declare class BatchInfoData implements Required<BatchInfo> {
|
|
|
38
39
|
setProperties(properties: PropertyData[]): this;
|
|
39
40
|
addProperty(name: string, value: string): this;
|
|
40
41
|
addProperty(prop: PropertyData): this;
|
|
42
|
+
get buildId(): string;
|
|
43
|
+
set buildId(buildId: string);
|
|
44
|
+
getBuildId(): string;
|
|
45
|
+
setBuildId(buildId: string): this;
|
|
41
46
|
/** @internal */
|
|
42
47
|
toObject(): BatchInfo;
|
|
43
48
|
/** @internal */
|