@letsscrapedata/controller 0.0.34 → 0.0.35
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/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -419,7 +419,7 @@ interface LocalStorageOrigin {
|
|
|
419
419
|
origin: string;
|
|
420
420
|
localStorage: LocalStorageItem[];
|
|
421
421
|
}
|
|
422
|
-
interface
|
|
422
|
+
interface BrowserStateData {
|
|
423
423
|
cookies: CookieItem[];
|
|
424
424
|
localStorage: LocalStorageOrigin[];
|
|
425
425
|
}
|
|
@@ -875,14 +875,14 @@ interface LsdPage extends EventEmitter {
|
|
|
875
875
|
* Shortcut for LsdPage.browserContext().setStateData(stateData)
|
|
876
876
|
* @param stateData
|
|
877
877
|
*/
|
|
878
|
-
setStateData(stateData:
|
|
878
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
879
879
|
/**
|
|
880
880
|
* valid only in puppeteer
|
|
881
881
|
* @param userAgent
|
|
882
882
|
*/
|
|
883
883
|
setUserAgent(userAgent: string): Promise<boolean>;
|
|
884
884
|
setViewportSize(viewPortSize: ViewportSize): Promise<boolean>;
|
|
885
|
-
stateData(): Promise<
|
|
885
|
+
stateData(): Promise<BrowserStateData>;
|
|
886
886
|
status(): PageStatus;
|
|
887
887
|
title(): Promise<string>;
|
|
888
888
|
url(): string;
|
|
@@ -933,7 +933,7 @@ interface LsdBrowserContext extends EventEmitter {
|
|
|
933
933
|
page(pageIdx: number): LsdPage | null;
|
|
934
934
|
pages(): LsdPage[];
|
|
935
935
|
proxy(): ProxyInController | null;
|
|
936
|
-
setStateData(stateData:
|
|
936
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
937
937
|
_origBrowserContext(): AllBrowserContext;
|
|
938
938
|
}
|
|
939
939
|
interface LsdBrowser extends EventEmitter {
|
|
@@ -1054,7 +1054,7 @@ declare class PlaywrightBrowserContext extends EventEmitter implements LsdBrowse
|
|
|
1054
1054
|
page(pageIdx: number): LsdPage | null;
|
|
1055
1055
|
pages(): LsdPage[];
|
|
1056
1056
|
proxy(): ProxyInController | null;
|
|
1057
|
-
setStateData(stateData:
|
|
1057
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1058
1058
|
_origBrowserContext(): AllBrowserContext;
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
@@ -1098,10 +1098,10 @@ declare class PlaywrightPage extends EventEmitter implements LsdPage {
|
|
|
1098
1098
|
setPageInfo(pageInfo: UpdatablePageInfo): boolean;
|
|
1099
1099
|
setRequestInterception(options: RequestInterceptionOption | RequestInterceptionOption[]): Promise<boolean>;
|
|
1100
1100
|
setResponseInterception(options: ResponseInterceptionOption | ResponseInterceptionOption[]): Promise<boolean>;
|
|
1101
|
-
setStateData(stateData:
|
|
1101
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1102
1102
|
setUserAgent(userAgent: string): Promise<boolean>;
|
|
1103
1103
|
setViewportSize(viewPortSize: ViewportSize): Promise<boolean>;
|
|
1104
|
-
stateData(): Promise<
|
|
1104
|
+
stateData(): Promise<BrowserStateData>;
|
|
1105
1105
|
status(): PageStatus;
|
|
1106
1106
|
title(): Promise<string>;
|
|
1107
1107
|
url(): string;
|
|
@@ -1165,7 +1165,7 @@ declare class PuppeteerBrowserContext extends EventEmitter implements LsdBrowser
|
|
|
1165
1165
|
page(pageIdx: number): LsdPage | null;
|
|
1166
1166
|
pages(): LsdPage[];
|
|
1167
1167
|
proxy(): ProxyInController | null;
|
|
1168
|
-
setStateData(stateData:
|
|
1168
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1169
1169
|
_origBrowserContext(): AllBrowserContext;
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
@@ -1209,10 +1209,10 @@ declare class PuppeteerPage extends EventEmitter implements LsdPage {
|
|
|
1209
1209
|
setPageInfo(pageInfo: UpdatablePageInfo): boolean;
|
|
1210
1210
|
setRequestInterception(options: RequestInterceptionOption | RequestInterceptionOption[]): Promise<boolean>;
|
|
1211
1211
|
setResponseInterception(options: ResponseInterceptionOption | ResponseInterceptionOption[]): Promise<boolean>;
|
|
1212
|
-
setStateData(stateData:
|
|
1212
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1213
1213
|
setUserAgent(userAgent: string): Promise<boolean>;
|
|
1214
1214
|
setViewportSize(viewPortSize: ViewportSize): Promise<boolean>;
|
|
1215
|
-
stateData(): Promise<
|
|
1215
|
+
stateData(): Promise<BrowserStateData>;
|
|
1216
1216
|
status(): PageStatus;
|
|
1217
1217
|
title(): Promise<string>;
|
|
1218
1218
|
url(): string;
|
|
@@ -1293,7 +1293,7 @@ declare class CheerioPage extends EventEmitter implements LsdPage {
|
|
|
1293
1293
|
setStateData(): Promise<boolean>;
|
|
1294
1294
|
setUserAgent(): Promise<boolean>;
|
|
1295
1295
|
setViewportSize(): Promise<boolean>;
|
|
1296
|
-
stateData(): Promise<
|
|
1296
|
+
stateData(): Promise<BrowserStateData>;
|
|
1297
1297
|
status(): PageStatus;
|
|
1298
1298
|
title(): Promise<string>;
|
|
1299
1299
|
url(): string;
|
|
@@ -1336,4 +1336,4 @@ declare class LsdBrowserController implements LsdBrowserController$1 {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
declare const controller: LsdBrowserController;
|
|
1338
1338
|
|
|
1339
|
-
export { type AllApiRequestContext, type AllBrowser, type AllBrowserContext, type AllFrame, type AllPage, type AllResponse, type BrowserControllerOptions, type BrowserControllerType, type BrowserCreationMethod, type BrowserManager, CheerioElement, type CheerioNode, CheerioPage, type CookieItem, type GotoOptions, type IframeOption, type InputOptions, type KeyInput, type KeyPressOptions, type LocalStorageItem, type LocalStorageOrigin, type LowerCasePaperFormat, type LsdBrowser, type LsdBrowserContext, type LsdBrowserContextOptions, type LsdBrowserController$1 as LsdBrowserController, type LsdBrowserType, type LsdConnectOptions, type LsdElement, type LsdLaunchOptions, type LsdPage, type MouseClickOptions, type MouseClickType, type NavigationWaitUntil, type PDFMargin, type PDFOptions, type PageEvent, type PageExtInPlaywright, type PageExtInPuppeteer, type PageInfo, type PageOpenType, type PageStatus, type PaperFormat, PlaywrightBrowser, PlaywrightBrowserContext, type PlaywrightBrowserTypes, PlaywrightElement, PlaywrightPage, type ProxyInController, PuppeteerBrowser, PuppeteerBrowserContext, PuppeteerElement, PuppeteerPage, type RequestInterceptionAction, type RequestInterceptionOption, type RequestMatch, type RequestMethod, type RequestResourceType, type ResponseHandler, type ResponseHandlerOptions, type ResponseInterceptionItem, type ResponseInterceptionOption, type ResponseMatch, type ResponsePageData, type ScreenshotOptions, type SelectOptions, type
|
|
1339
|
+
export { type AllApiRequestContext, type AllBrowser, type AllBrowserContext, type AllFrame, type AllPage, type AllResponse, type BrowserControllerOptions, type BrowserControllerType, type BrowserCreationMethod, type BrowserManager, type BrowserStateData, CheerioElement, type CheerioNode, CheerioPage, type CookieItem, type GotoOptions, type IframeOption, type InputOptions, type KeyInput, type KeyPressOptions, type LocalStorageItem, type LocalStorageOrigin, type LowerCasePaperFormat, type LsdBrowser, type LsdBrowserContext, type LsdBrowserContextOptions, type LsdBrowserController$1 as LsdBrowserController, type LsdBrowserType, type LsdConnectOptions, type LsdElement, type LsdLaunchOptions, type LsdPage, type MouseClickOptions, type MouseClickType, type NavigationWaitUntil, type PDFMargin, type PDFOptions, type PageEvent, type PageExtInPlaywright, type PageExtInPuppeteer, type PageInfo, type PageOpenType, type PageStatus, type PaperFormat, PlaywrightBrowser, PlaywrightBrowserContext, type PlaywrightBrowserTypes, PlaywrightElement, PlaywrightPage, type ProxyInController, PuppeteerBrowser, PuppeteerBrowserContext, PuppeteerElement, PuppeteerPage, type RequestInterceptionAction, type RequestInterceptionOption, type RequestMatch, type RequestMethod, type RequestResourceType, type ResponseHandler, type ResponseHandlerOptions, type ResponseInterceptionItem, type ResponseInterceptionOption, type ResponseMatch, type ResponsePageData, type ScreenshotOptions, type SelectOptions, type UpdatablePageInfo, type ViewportSize, type WaitElementOptions, type WaitElementState, type WaitNavigationOptions, controller };
|
package/dist/index.d.ts
CHANGED
|
@@ -419,7 +419,7 @@ interface LocalStorageOrigin {
|
|
|
419
419
|
origin: string;
|
|
420
420
|
localStorage: LocalStorageItem[];
|
|
421
421
|
}
|
|
422
|
-
interface
|
|
422
|
+
interface BrowserStateData {
|
|
423
423
|
cookies: CookieItem[];
|
|
424
424
|
localStorage: LocalStorageOrigin[];
|
|
425
425
|
}
|
|
@@ -875,14 +875,14 @@ interface LsdPage extends EventEmitter {
|
|
|
875
875
|
* Shortcut for LsdPage.browserContext().setStateData(stateData)
|
|
876
876
|
* @param stateData
|
|
877
877
|
*/
|
|
878
|
-
setStateData(stateData:
|
|
878
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
879
879
|
/**
|
|
880
880
|
* valid only in puppeteer
|
|
881
881
|
* @param userAgent
|
|
882
882
|
*/
|
|
883
883
|
setUserAgent(userAgent: string): Promise<boolean>;
|
|
884
884
|
setViewportSize(viewPortSize: ViewportSize): Promise<boolean>;
|
|
885
|
-
stateData(): Promise<
|
|
885
|
+
stateData(): Promise<BrowserStateData>;
|
|
886
886
|
status(): PageStatus;
|
|
887
887
|
title(): Promise<string>;
|
|
888
888
|
url(): string;
|
|
@@ -933,7 +933,7 @@ interface LsdBrowserContext extends EventEmitter {
|
|
|
933
933
|
page(pageIdx: number): LsdPage | null;
|
|
934
934
|
pages(): LsdPage[];
|
|
935
935
|
proxy(): ProxyInController | null;
|
|
936
|
-
setStateData(stateData:
|
|
936
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
937
937
|
_origBrowserContext(): AllBrowserContext;
|
|
938
938
|
}
|
|
939
939
|
interface LsdBrowser extends EventEmitter {
|
|
@@ -1054,7 +1054,7 @@ declare class PlaywrightBrowserContext extends EventEmitter implements LsdBrowse
|
|
|
1054
1054
|
page(pageIdx: number): LsdPage | null;
|
|
1055
1055
|
pages(): LsdPage[];
|
|
1056
1056
|
proxy(): ProxyInController | null;
|
|
1057
|
-
setStateData(stateData:
|
|
1057
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1058
1058
|
_origBrowserContext(): AllBrowserContext;
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
@@ -1098,10 +1098,10 @@ declare class PlaywrightPage extends EventEmitter implements LsdPage {
|
|
|
1098
1098
|
setPageInfo(pageInfo: UpdatablePageInfo): boolean;
|
|
1099
1099
|
setRequestInterception(options: RequestInterceptionOption | RequestInterceptionOption[]): Promise<boolean>;
|
|
1100
1100
|
setResponseInterception(options: ResponseInterceptionOption | ResponseInterceptionOption[]): Promise<boolean>;
|
|
1101
|
-
setStateData(stateData:
|
|
1101
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1102
1102
|
setUserAgent(userAgent: string): Promise<boolean>;
|
|
1103
1103
|
setViewportSize(viewPortSize: ViewportSize): Promise<boolean>;
|
|
1104
|
-
stateData(): Promise<
|
|
1104
|
+
stateData(): Promise<BrowserStateData>;
|
|
1105
1105
|
status(): PageStatus;
|
|
1106
1106
|
title(): Promise<string>;
|
|
1107
1107
|
url(): string;
|
|
@@ -1165,7 +1165,7 @@ declare class PuppeteerBrowserContext extends EventEmitter implements LsdBrowser
|
|
|
1165
1165
|
page(pageIdx: number): LsdPage | null;
|
|
1166
1166
|
pages(): LsdPage[];
|
|
1167
1167
|
proxy(): ProxyInController | null;
|
|
1168
|
-
setStateData(stateData:
|
|
1168
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1169
1169
|
_origBrowserContext(): AllBrowserContext;
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
@@ -1209,10 +1209,10 @@ declare class PuppeteerPage extends EventEmitter implements LsdPage {
|
|
|
1209
1209
|
setPageInfo(pageInfo: UpdatablePageInfo): boolean;
|
|
1210
1210
|
setRequestInterception(options: RequestInterceptionOption | RequestInterceptionOption[]): Promise<boolean>;
|
|
1211
1211
|
setResponseInterception(options: ResponseInterceptionOption | ResponseInterceptionOption[]): Promise<boolean>;
|
|
1212
|
-
setStateData(stateData:
|
|
1212
|
+
setStateData(stateData: BrowserStateData): Promise<boolean>;
|
|
1213
1213
|
setUserAgent(userAgent: string): Promise<boolean>;
|
|
1214
1214
|
setViewportSize(viewPortSize: ViewportSize): Promise<boolean>;
|
|
1215
|
-
stateData(): Promise<
|
|
1215
|
+
stateData(): Promise<BrowserStateData>;
|
|
1216
1216
|
status(): PageStatus;
|
|
1217
1217
|
title(): Promise<string>;
|
|
1218
1218
|
url(): string;
|
|
@@ -1293,7 +1293,7 @@ declare class CheerioPage extends EventEmitter implements LsdPage {
|
|
|
1293
1293
|
setStateData(): Promise<boolean>;
|
|
1294
1294
|
setUserAgent(): Promise<boolean>;
|
|
1295
1295
|
setViewportSize(): Promise<boolean>;
|
|
1296
|
-
stateData(): Promise<
|
|
1296
|
+
stateData(): Promise<BrowserStateData>;
|
|
1297
1297
|
status(): PageStatus;
|
|
1298
1298
|
title(): Promise<string>;
|
|
1299
1299
|
url(): string;
|
|
@@ -1336,4 +1336,4 @@ declare class LsdBrowserController implements LsdBrowserController$1 {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
declare const controller: LsdBrowserController;
|
|
1338
1338
|
|
|
1339
|
-
export { type AllApiRequestContext, type AllBrowser, type AllBrowserContext, type AllFrame, type AllPage, type AllResponse, type BrowserControllerOptions, type BrowserControllerType, type BrowserCreationMethod, type BrowserManager, CheerioElement, type CheerioNode, CheerioPage, type CookieItem, type GotoOptions, type IframeOption, type InputOptions, type KeyInput, type KeyPressOptions, type LocalStorageItem, type LocalStorageOrigin, type LowerCasePaperFormat, type LsdBrowser, type LsdBrowserContext, type LsdBrowserContextOptions, type LsdBrowserController$1 as LsdBrowserController, type LsdBrowserType, type LsdConnectOptions, type LsdElement, type LsdLaunchOptions, type LsdPage, type MouseClickOptions, type MouseClickType, type NavigationWaitUntil, type PDFMargin, type PDFOptions, type PageEvent, type PageExtInPlaywright, type PageExtInPuppeteer, type PageInfo, type PageOpenType, type PageStatus, type PaperFormat, PlaywrightBrowser, PlaywrightBrowserContext, type PlaywrightBrowserTypes, PlaywrightElement, PlaywrightPage, type ProxyInController, PuppeteerBrowser, PuppeteerBrowserContext, PuppeteerElement, PuppeteerPage, type RequestInterceptionAction, type RequestInterceptionOption, type RequestMatch, type RequestMethod, type RequestResourceType, type ResponseHandler, type ResponseHandlerOptions, type ResponseInterceptionItem, type ResponseInterceptionOption, type ResponseMatch, type ResponsePageData, type ScreenshotOptions, type SelectOptions, type
|
|
1339
|
+
export { type AllApiRequestContext, type AllBrowser, type AllBrowserContext, type AllFrame, type AllPage, type AllResponse, type BrowserControllerOptions, type BrowserControllerType, type BrowserCreationMethod, type BrowserManager, type BrowserStateData, CheerioElement, type CheerioNode, CheerioPage, type CookieItem, type GotoOptions, type IframeOption, type InputOptions, type KeyInput, type KeyPressOptions, type LocalStorageItem, type LocalStorageOrigin, type LowerCasePaperFormat, type LsdBrowser, type LsdBrowserContext, type LsdBrowserContextOptions, type LsdBrowserController$1 as LsdBrowserController, type LsdBrowserType, type LsdConnectOptions, type LsdElement, type LsdLaunchOptions, type LsdPage, type MouseClickOptions, type MouseClickType, type NavigationWaitUntil, type PDFMargin, type PDFOptions, type PageEvent, type PageExtInPlaywright, type PageExtInPuppeteer, type PageInfo, type PageOpenType, type PageStatus, type PaperFormat, PlaywrightBrowser, PlaywrightBrowserContext, type PlaywrightBrowserTypes, PlaywrightElement, PlaywrightPage, type ProxyInController, PuppeteerBrowser, PuppeteerBrowserContext, PuppeteerElement, PuppeteerPage, type RequestInterceptionAction, type RequestInterceptionOption, type RequestMatch, type RequestMethod, type RequestResourceType, type ResponseHandler, type ResponseHandlerOptions, type ResponseInterceptionItem, type ResponseInterceptionOption, type ResponseMatch, type ResponsePageData, type ScreenshotOptions, type SelectOptions, type UpdatablePageInfo, type ViewportSize, type WaitElementOptions, type WaitElementState, type WaitNavigationOptions, controller };
|
package/package.json
CHANGED