@push.rocks/smartpuppeteer 2.4.0 → 2.6.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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartpuppeteer',
6
- version: '2.4.0',
6
+ version: '2.6.0',
7
7
  description: 'Provides simplified access to Puppeteer for automation and testing purposes.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSw0QkFBNEI7SUFDbEMsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLDhFQUE4RTtDQUM1RixDQUFBIn0=
@@ -1,4 +1,4 @@
1
- import type { ILiveBrowserClickOptions, ILiveBrowserCreateTabOptions, ILiveBrowserEvaluateOptions, ILiveBrowserFillOptions, ILiveBrowserFrameAcknowledgement, ILiveBrowserFrameAcknowledgementRequest, ILiveBrowserInsertTextInput, ILiveBrowserKeyInput, ILiveBrowserMouseInput, ILiveBrowserNavigateOptions, ILiveBrowserNavigationOptions, ILiveBrowserObservation, ILiveBrowserObserveOptions, ILiveBrowserOperationOptions, ILiveBrowserPressOptions, ILiveBrowserProcessState, ILiveBrowserSessionOptions, ILiveBrowserSnapshot, ILiveBrowserSnapshotOptions, ILiveBrowserState, ILiveBrowserTabState, ILiveBrowserTerminationOptions, ILiveBrowserTerminationResult, ILiveBrowserViewport, ILiveBrowserWheelInput, TLiveBrowserEventListener, TLiveBrowserJsonValue } from './smartpuppeteer.interfaces.livebrowser.js';
1
+ import type { ILiveBrowserClickOptions, ILiveBrowserCreateTabOptions, ILiveBrowserEvaluateOptions, ILiveBrowserFillOptions, ILiveBrowserFrameAcknowledgement, ILiveBrowserFrameAcknowledgementRequest, ILiveBrowserFrameIdentity, ILiveBrowserInsertTextInput, ILiveBrowserKeyInput, ILiveBrowserMouseInput, ILiveBrowserNavigateOptions, ILiveBrowserNavigationOptions, ILiveBrowserObservation, ILiveBrowserObserveOptions, ILiveBrowserOperationOptions, ILiveBrowserPressOptions, ILiveBrowserProcessState, ILiveBrowserSessionOptions, ILiveBrowserSnapshot, ILiveBrowserSnapshotOptions, ILiveBrowserState, ILiveBrowserTabState, ILiveBrowserTerminationOptions, ILiveBrowserTerminationResult, ILiveBrowserViewport, ILiveBrowserWheelInput, TLiveBrowserEventListener, TLiveBrowserJsonValue } from './smartpuppeteer.interfaces.livebrowser.js';
2
2
  export declare class LiveBrowserSession {
3
3
  private readonly options;
4
4
  private readonly eventListeners;
@@ -15,8 +15,14 @@ export declare class LiveBrowserSession {
15
15
  private browserSecurityCdpSession?;
16
16
  private browserSecurityConnection?;
17
17
  private browserSecuritySessionAttachedListener?;
18
+ private browserSecurityOwnedSessionAttachedListener?;
18
19
  private browserSecuritySessionDetachedListener?;
20
+ private browserSecurityWorkerLifecycleCdpSession?;
21
+ private browserSecurityWorkerVersionUpdatedListener?;
19
22
  private readonly proxySecuritySessions;
23
+ private readonly ownedProxySecuritySessions;
24
+ private readonly browserSecurityParentOwnedSessions;
25
+ private readonly serviceWorkerTargetIdsByVersionId;
20
26
  private readonly proxySecurityOperations;
21
27
  private proxySecurityGeneration;
22
28
  private proxySecurityStopping;
@@ -49,6 +55,7 @@ export declare class LiveBrowserSession {
49
55
  start(operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
50
56
  stop(): Promise<void>;
51
57
  acknowledgeFrame(acknowledgement: ILiveBrowserFrameAcknowledgementRequest): Promise<ILiveBrowserFrameAcknowledgement>;
58
+ refreshScreencast(operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserFrameIdentity>;
52
59
  createTab(optionsArg?: ILiveBrowserCreateTabOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<ILiveBrowserTabState>;
53
60
  activateTab(tabId: string, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
54
61
  closeTab(tabId: string, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
@@ -88,9 +95,16 @@ export declare class LiveBrowserSession {
88
95
  private forceOwnedBrowserProcessGroup;
89
96
  private stopInternal;
90
97
  private configureBrowserSecurity;
98
+ private configureProxySecurityWorkerLifecycle;
91
99
  private configureProxySecuritySession;
92
100
  private verifyProxySecuritySessionDetached;
101
+ private waitForProxySecurityTargetCoverage;
93
102
  private removeProxySecuritySession;
103
+ private detachOwnedProxySecuritySession;
104
+ private forgetOwnedProxySecuritySession;
105
+ private detachCdpSessionWithTimeout;
106
+ private retireOwnedProxySecuritySession;
107
+ private detachTrackedOwnedProxySecuritySession;
94
108
  private allowOperationalCdpSessionDetach;
95
109
  private trackProxySecurityOperation;
96
110
  private handleProxySecurityFailure;
@@ -115,6 +129,12 @@ export declare class LiveBrowserSession {
115
129
  private createPuppeteerNavigationOptions;
116
130
  private refreshTab;
117
131
  private startScreencast;
132
+ private canRestoreScreencast;
133
+ private createScreencastAuthority;
134
+ private assertScreencastAuthority;
135
+ private waitForScreencastAuthority;
136
+ private invalidateScreencast;
137
+ private waitForScreencastFrame;
118
138
  private stopScreencast;
119
139
  private handleScreencastFrame;
120
140
  private acknowledgeCdpFrame;