Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crawlee/browser-pool

Package Overview
Dependencies
Maintainers
1
Versions
1271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crawlee/browser-pool - npm Package Compare versions

Comparing version 3.0.0-beta.46 to 3.0.0-beta.47

6

abstract-classes/browser-controller.d.ts
import { TypedEmitter } from 'tiny-typed-emitter';
import { BROWSER_CONTROLLER_EVENTS } from '../events';
import { LaunchContext } from '../launch-context';
import { UnwrapPromise } from '../utils';
import { BrowserPlugin, CommonBrowser, CommonLibrary } from './browser-plugin';
import type { LaunchContext } from '../launch-context';
import type { UnwrapPromise } from '../utils';
import type { BrowserPlugin, CommonBrowser, CommonLibrary } from './browser-plugin';
export interface BrowserControllerEvents<Library extends CommonLibrary, LibraryOptions = Parameters<Library['launch']>[0], LaunchResult extends CommonBrowser = UnwrapPromise<ReturnType<Library['launch']>>, NewPageOptions = Parameters<LaunchResult['newPage']>[0], NewPageResult = UnwrapPromise<ReturnType<LaunchResult['newPage']>>> {

@@ -7,0 +7,0 @@ [BROWSER_CONTROLLER_EVENTS.BROWSER_CLOSED]: (controller: BrowserController<Library, LibraryOptions, LaunchResult, NewPageOptions, NewPageResult>) => void;

@@ -1,4 +0,5 @@

import { LaunchContext, LaunchContextOptions } from '../launch-context';
import { BrowserController } from './browser-controller';
import { UnwrapPromise } from '../utils';
import type { LaunchContextOptions } from '../launch-context';
import { LaunchContext } from '../launch-context';
import type { BrowserController } from './browser-controller';
import type { UnwrapPromise } from '../utils';
/**

@@ -5,0 +6,0 @@ * The default User Agent used by `PlaywrightCrawler`, `launchPlaywright`, 'PuppeteerCrawler' and 'launchPuppeteer'

import { TypedEmitter } from 'tiny-typed-emitter';
import { FingerprintInjector } from 'fingerprint-injector';
import { BrowserFingerprintWithHeaders, FingerprintGenerator } from 'fingerprint-generator';
import type { BrowserFingerprintWithHeaders } from 'fingerprint-generator';
import { FingerprintGenerator } from 'fingerprint-generator';
import QuickLRU from 'quick-lru';
import { BrowserController } from './abstract-classes/browser-controller';
import { BrowserPlugin } from './abstract-classes/browser-plugin';
import type { BrowserController } from './abstract-classes/browser-controller';
import type { BrowserPlugin } from './abstract-classes/browser-plugin';
import { BROWSER_POOL_EVENTS } from './events';
import { LaunchContext } from './launch-context';
import { InferBrowserPluginArray, UnwrapPromise } from './utils';
import type { LaunchContext } from './launch-context';
import type { InferBrowserPluginArray, UnwrapPromise } from './utils';
export interface BrowserPoolEvents<BC extends BrowserController, Page> {

@@ -11,0 +12,0 @@ [BROWSER_POOL_EVENTS.PAGE_CREATED]: (page: Page) => void | Promise<void>;

@@ -1,5 +0,5 @@

import { FingerprintInjector } from 'fingerprint-injector';
import { BrowserPool } from '..';
import { BrowserController } from '../abstract-classes/browser-controller';
import { LaunchContext } from '../launch-context';
import type { FingerprintInjector } from 'fingerprint-injector';
import type { BrowserPool } from '..';
import type { BrowserController } from '../abstract-classes/browser-controller';
import type { LaunchContext } from '../launch-context';
/**

@@ -6,0 +6,0 @@ * @internal

@@ -1,2 +0,2 @@

import { BrowserFingerprintWithHeaders as Fingerprint } from 'fingerprint-generator';
import type { BrowserFingerprintWithHeaders as Fingerprint } from 'fingerprint-generator';
export interface FingerprintGenerator {

@@ -3,0 +3,0 @@ getFingerprint: (fingerprintGeneratorOptions?: FingerprintGeneratorOptions) => GetFingerprintReturn;

@@ -1,4 +0,4 @@

import { LaunchContext } from '../launch-context';
import { FingerprintGeneratorOptions } from './types';
import type { LaunchContext } from '../launch-context';
import type { FingerprintGeneratorOptions } from './types';
export declare const getGeneratorDefaultOptions: (launchContext: LaunchContext) => FingerprintGeneratorOptions;
//# sourceMappingURL=utils.d.ts.map

@@ -1,4 +0,4 @@

import { BrowserFingerprintWithHeaders } from 'fingerprint-generator';
import type { BrowserFingerprintWithHeaders } from 'fingerprint-generator';
import type { BrowserPlugin, CommonBrowser, CommonLibrary } from './abstract-classes/browser-plugin';
import { UnwrapPromise } from './utils';
import type { UnwrapPromise } from './utils';
/**

@@ -5,0 +5,0 @@ * `LaunchContext` holds information about the launched browser. It's useful

{
"name": "@crawlee/browser-pool",
"version": "3.0.0-beta.46",
"version": "3.0.0-beta.47",
"description": "Rotate multiple browsers using popular automation libraries such as Playwright or Puppeteer.",

@@ -5,0 +5,0 @@ "engines": {

// @ts-ignore optional peer dependency
import type { Browser, BrowserType, Page } from 'playwright';
import { BrowserController, Cookie } from '../abstract-classes/browser-controller';
import type { Cookie } from '../abstract-classes/browser-controller';
import { BrowserController } from '../abstract-classes/browser-controller';
export declare class PlaywrightController extends BrowserController<BrowserType, Parameters<BrowserType['launch']>[0], Browser> {

@@ -5,0 +6,0 @@ normalizeProxyOptions(proxyUrl: string | undefined, pageOptions: any): Record<string, unknown>;

// @ts-ignore optional peer dependency
import type { Browser as PlaywrightBrowser, BrowserType } from 'playwright';
import { BrowserController } from '../abstract-classes/browser-controller';
import type { BrowserController } from '../abstract-classes/browser-controller';
import { BrowserPlugin } from '../abstract-classes/browser-plugin';
import { LaunchContext } from '../launch-context';
import type { LaunchContext } from '../launch-context';
export declare class PlaywrightPlugin extends BrowserPlugin<BrowserType, Parameters<BrowserType['launch']>[0], PlaywrightBrowser> {

@@ -7,0 +7,0 @@ private _browserVersion?;

import type Puppeteer from './puppeteer-proxy-per-page';
import { BrowserController, Cookie } from '../abstract-classes/browser-controller';
import type { Cookie } from '../abstract-classes/browser-controller';
import { BrowserController } from '../abstract-classes/browser-controller';
export declare class PuppeteerController extends BrowserController<typeof Puppeteer> {

@@ -4,0 +5,0 @@ normalizeProxyOptions(proxyUrl: string | undefined, pageOptions: any): Record<string, unknown>;

import type Puppeteer from './puppeteer-proxy-per-page';
import type { Browser } from './puppeteer-proxy-per-page';
import { BrowserController } from '../abstract-classes/browser-controller';
import type { BrowserController } from '../abstract-classes/browser-controller';
import { BrowserPlugin } from '../abstract-classes/browser-plugin';
import { LaunchContext } from '../launch-context';
import type { LaunchContext } from '../launch-context';
export declare class PuppeteerPlugin extends BrowserPlugin<typeof Puppeteer> {

@@ -7,0 +7,0 @@ protected _launch(launchContext: LaunchContext<typeof Puppeteer>): Promise<Browser>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc