@applitools/eyes-browser 1.4.15 → 1.4.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.4.15",
3
+ "version": "1.4.17",
4
4
  "keywords": [
5
5
  "applitools",
6
6
  "browser",
@@ -48,7 +48,7 @@
48
48
  "test": "run --top-level mocha './test/**/*.spec.ts'"
49
49
  },
50
50
  "dependencies": {
51
- "@applitools/eyes": "1.29.3"
51
+ "@applitools/eyes": "1.31.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^12.20.55",
package/types/Eyes.d.ts CHANGED
@@ -39,7 +39,9 @@ export declare class Eyes<TSpec extends Core.SpecType = Core.SpecType> {
39
39
  private _spec?;
40
40
  private _events;
41
41
  private _handlers;
42
- static getExecutionCloudUrl(config?: Configuration): Promise<string>;
42
+ static getExecutionCloudUrl(config?: Configuration & {
43
+ maskLog?: boolean;
44
+ }): Promise<string>;
43
45
  static setViewportSize(driver: unknown, size: RectangleSize): Promise<void>;
44
46
  static setMobileCapabilities<TCapabilities extends Record<string, any>>(capabilities: TCapabilities, config?: Configuration): TCapabilities;
45
47
  constructor(runner?: EyesRunner, config?: Configuration<TSpec>);
@@ -5,6 +5,7 @@ import { TestResultsSummaryData } from './output/TestResultsSummary';
5
5
  export declare abstract class EyesRunner {
6
6
  private _core?;
7
7
  private _manager?;
8
+ readonly _maskLog: boolean;
8
9
  abstract readonly type: 'classic' | 'ufg';
9
10
  /** @internal */
10
11
  protected readonly _managerSettings: Core.ManagerSettings;
package/types/SDK.d.ts CHANGED
@@ -3,9 +3,17 @@ export interface SDK<TSpec extends SpecType = SpecType> {
3
3
  spec?: SpecDriver<TSpec>;
4
4
  agentId?: string;
5
5
  environment?: Record<string, any>;
6
+ maskLog?: boolean;
6
7
  makeCore?: typeof makeDefaultCore;
7
8
  }
8
- export declare function initSDK<TSpec extends SpecType = SpecType>(options?: SDK<TSpec>): {
9
+ export declare function initSDK<TSpec extends SpecType = SpecType>(options?: SDK<TSpec>, maskLog?: boolean): {
9
10
  core: Core<TSpec, 'classic' | 'ufg'>;
10
11
  spec?: SpecDriver<TSpec>;
11
12
  };
13
+ export declare const getCoreWithCache: typeof getCore & {
14
+ getCachedValues(): Core<SpecType, "classic" | "ufg">[];
15
+ setCachedValue(key: any, value: Core<SpecType, "classic" | "ufg">): void;
16
+ clearCache(): void;
17
+ };
18
+ declare function getCore<TSpec extends SpecType = SpecType>({ makeCore, ...options }?: SDK<TSpec>): Core<TSpec, 'classic' | 'ufg'>;
19
+ export {};
@@ -18,6 +18,7 @@ import { AUTProxySettings } from './AUTProxySettings';
18
18
  import { BatchInfo, BatchInfoData } from './BatchInfo';
19
19
  import { PropertyData, PropertyDataData } from './PropertyData';
20
20
  import { ImageMatchSettings } from './ImageMatchSettings';
21
+ import { LatestCommitInfo } from './LatestCommitInfo';
21
22
  export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
22
23
  accessibilityValidation?: AccessibilitySettings;
23
24
  agentId?: string;
@@ -49,6 +50,7 @@ export type Configuration<TSpec extends Core.SpecType = Core.SpecType> = {
49
50
  environmentName?: string;
50
51
  forceFullPageScreenshot?: boolean;
51
52
  gitMergeBaseTimestamp?: string;
53
+ latestCommitInfo?: LatestCommitInfo;
52
54
  hideCaret?: boolean;
53
55
  hideScrollbars?: boolean;
54
56
  hostApp?: string;
@@ -234,6 +236,10 @@ export declare class ConfigurationData<TSpec extends Core.SpecType = Core.SpecTy
234
236
  set gitMergeBaseTimestamp(gitMergeBaseTimestamp: string);
235
237
  getGitMergeBaseTimestamp(): string;
236
238
  setGitMergeBaseTimestamp(gitMergeBaseTimestamp: string): this;
239
+ get latestCommitInfo(): LatestCommitInfo;
240
+ set latestCommitInfo(latestCommitInfo: LatestCommitInfo);
241
+ getLatestCommitInfo(): LatestCommitInfo;
242
+ setLatestCommitInfo(latestCommitInfo: LatestCommitInfo): this;
237
243
  get hideCaret(): boolean;
238
244
  set hideCaret(hideCaret: boolean);
239
245
  getHideCaret(): boolean;
@@ -0,0 +1,4 @@
1
+ export type LatestCommitInfo = {
2
+ timestamp: string;
3
+ sha: string;
4
+ };
@@ -4,6 +4,7 @@ export type RunnerOptions = {
4
4
  /** @internal */
5
5
  legacyConcurrency?: number;
6
6
  removeDuplicateTests?: boolean;
7
+ maskLog?: boolean;
7
8
  };
8
9
  /** @deprecated */
9
10
  export declare class RunnerOptionsFluent {