@push.rocks/smartpuppeteer 2.2.0 → 2.3.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.2.0',
6
+ version: '2.3.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, ILiveBrowserSessionOptions, ILiveBrowserSnapshot, ILiveBrowserSnapshotOptions, ILiveBrowserState, ILiveBrowserTabState, ILiveBrowserViewport, ILiveBrowserWheelInput, TLiveBrowserEventListener, TLiveBrowserJsonValue } from './smartpuppeteer.interfaces.livebrowser.js';
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';
2
2
  export declare class LiveBrowserSession {
3
3
  private readonly options;
4
4
  private readonly eventListeners;
@@ -9,6 +9,20 @@ export declare class LiveBrowserSession {
9
9
  private browserContext?;
10
10
  private browserLifetimeController?;
11
11
  private browserDisconnectedListener?;
12
+ private browserTargetCreatedListener?;
13
+ private browserSecurityCdpSession?;
14
+ private browserSecurityConnection?;
15
+ private browserSecuritySessionAttachedListener?;
16
+ private browserSecuritySessionDetachedListener?;
17
+ private readonly proxySecuritySessions;
18
+ private readonly proxySecurityOperations;
19
+ private proxySecurityGeneration;
20
+ private proxySecurityStopping;
21
+ private ownedBrowserProcess?;
22
+ private processGeneration;
23
+ private startRequestCount;
24
+ private terminationSettled;
25
+ private terminationPromise?;
12
26
  private readonly operationQueue;
13
27
  private activeOperation?;
14
28
  private operationRunning;
@@ -27,6 +41,8 @@ export declare class LiveBrowserSession {
27
41
  constructor(optionsArg?: ILiveBrowserSessionOptions);
28
42
  onEvent(listener: TLiveBrowserEventListener): () => void;
29
43
  getState(): ILiveBrowserState;
44
+ getProcessState(): ILiveBrowserProcessState;
45
+ terminate(optionsArg?: ILiveBrowserTerminationOptions): Promise<ILiveBrowserTerminationResult>;
30
46
  start(operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
31
47
  stop(): Promise<void>;
32
48
  acknowledgeFrame(acknowledgement: ILiveBrowserFrameAcknowledgementRequest): Promise<ILiveBrowserFrameAcknowledgement>;
@@ -49,6 +65,7 @@ export declare class LiveBrowserSession {
49
65
  fill(optionsArg: ILiveBrowserFillOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
50
66
  press(optionsArg: ILiveBrowserPressOptions, operationOptions?: ILiveBrowserOperationOptions): Promise<void>;
51
67
  private enqueuePublicOperation;
68
+ private assertProxySecurityReady;
52
69
  private enqueueInternalOperation;
53
70
  private enqueueQueuedOperation;
54
71
  private drainOperationQueue;
@@ -62,14 +79,27 @@ export declare class LiveBrowserSession {
62
79
  private emitState;
63
80
  private emitError;
64
81
  private createTabState;
82
+ private releaseExitedOwnedProcess;
83
+ private terminateInternal;
84
+ private killOwnedProcessGroupSurvivors;
85
+ private forceOwnedBrowserProcessGroup;
65
86
  private stopInternal;
66
87
  private configureBrowserSecurity;
88
+ private configureProxySecuritySession;
89
+ private verifyProxySecuritySessionDetached;
90
+ private removeProxySecuritySession;
91
+ private allowOperationalCdpSessionDetach;
92
+ private trackProxySecurityOperation;
93
+ private handleProxySecurityFailure;
94
+ private teardownProxySecurity;
67
95
  private requireBrowserContext;
68
96
  private requireTab;
69
97
  private requireActiveTab;
70
98
  private resolveActionTab;
71
99
  private resolveNavigationTab;
72
100
  private ensureTabViewport;
101
+ private scheduleDiscoveredPageRegistration;
102
+ private handleDiscoveredPageFailure;
73
103
  private registerPage;
74
104
  private removePageListeners;
75
105
  private retireFramesForTabInBackground;