mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: add @typescript-eslint/no-import-type-side-effects (#11040)
This commit is contained in:
parent
e853e636d4
commit
bd6c246b18
12
.eslintrc.js
12
.eslintrc.js
@ -227,13 +227,11 @@ module.exports = {
|
|||||||
// This is more performant; see https://v8.dev/blog/fast-async.
|
// This is more performant; see https://v8.dev/blog/fast-async.
|
||||||
'@typescript-eslint/return-await': ['error', 'always'],
|
'@typescript-eslint/return-await': ['error', 'always'],
|
||||||
// This optimizes the dependency tracking for type-only files.
|
// This optimizes the dependency tracking for type-only files.
|
||||||
'@typescript-eslint/consistent-type-imports': [
|
'@typescript-eslint/consistent-type-imports': 'error',
|
||||||
'error',
|
// So type-only exports get elided.
|
||||||
{
|
'@typescript-eslint/consistent-type-exports': 'error',
|
||||||
disallowTypeAnnotations: false,
|
// Don't want to trigger unintended side-effects.
|
||||||
fixStyle: 'inline-type-imports',
|
'@typescript-eslint/no-import-type-side-effects': 'error',
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
@ -24,10 +24,10 @@ import {
|
|||||||
BrowserPlatform,
|
BrowserPlatform,
|
||||||
BrowserTag,
|
BrowserTag,
|
||||||
ChromeReleaseChannel,
|
ChromeReleaseChannel,
|
||||||
ProfileOptions,
|
type ProfileOptions,
|
||||||
} from './types.js';
|
} from './types.js';
|
||||||
|
|
||||||
export {ProfileOptions};
|
export type {ProfileOptions};
|
||||||
|
|
||||||
export const downloadUrls = {
|
export const downloadUrls = {
|
||||||
[Browser.CHROMEDRIVER]: chromedriver.resolveDownloadUrl,
|
[Browser.CHROMEDRIVER]: chromedriver.resolveDownloadUrl,
|
||||||
|
@ -14,35 +14,39 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export type {
|
||||||
|
LaunchOptions,
|
||||||
|
ComputeExecutablePathOptions as Options,
|
||||||
|
SystemOptions,
|
||||||
|
} from './launch.js';
|
||||||
export {
|
export {
|
||||||
launch,
|
launch,
|
||||||
computeExecutablePath,
|
computeExecutablePath,
|
||||||
computeSystemExecutablePath,
|
computeSystemExecutablePath,
|
||||||
TimeoutError,
|
TimeoutError,
|
||||||
LaunchOptions,
|
|
||||||
ComputeExecutablePathOptions as Options,
|
|
||||||
SystemOptions,
|
|
||||||
CDP_WEBSOCKET_ENDPOINT_REGEX,
|
CDP_WEBSOCKET_ENDPOINT_REGEX,
|
||||||
WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX,
|
WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX,
|
||||||
Process,
|
Process,
|
||||||
} from './launch.js';
|
} from './launch.js';
|
||||||
|
export type {
|
||||||
|
InstallOptions,
|
||||||
|
GetInstalledBrowsersOptions,
|
||||||
|
UninstallOptions,
|
||||||
|
} from './install.js';
|
||||||
export {
|
export {
|
||||||
install,
|
install,
|
||||||
getInstalledBrowsers,
|
getInstalledBrowsers,
|
||||||
canDownload,
|
canDownload,
|
||||||
uninstall,
|
uninstall,
|
||||||
InstallOptions,
|
|
||||||
GetInstalledBrowsersOptions,
|
|
||||||
UninstallOptions,
|
|
||||||
} from './install.js';
|
} from './install.js';
|
||||||
export {detectBrowserPlatform} from './detectPlatform.js';
|
export {detectBrowserPlatform} from './detectPlatform.js';
|
||||||
|
export type {ProfileOptions} from './browser-data/browser-data.js';
|
||||||
export {
|
export {
|
||||||
resolveBuildId,
|
resolveBuildId,
|
||||||
Browser,
|
Browser,
|
||||||
BrowserPlatform,
|
BrowserPlatform,
|
||||||
ChromeReleaseChannel,
|
ChromeReleaseChannel,
|
||||||
createProfile,
|
createProfile,
|
||||||
ProfileOptions,
|
|
||||||
} from './browser-data/browser-data.js';
|
} from './browser-data/browser-data.js';
|
||||||
export {CLI, makeProgressCallback} from './CLI.js';
|
export {CLI, makeProgressCallback} from './CLI.js';
|
||||||
export {Cache, InstalledBrowser} from './Cache.js';
|
export {Cache, InstalledBrowser} from './Cache.js';
|
||||||
|
@ -7,11 +7,11 @@ import {
|
|||||||
targetFromTargetString,
|
targetFromTargetString,
|
||||||
type BuilderRun,
|
type BuilderRun,
|
||||||
} from '@angular-devkit/architect';
|
} from '@angular-devkit/architect';
|
||||||
import {type JsonObject} from '@angular-devkit/core';
|
import type {JsonObject} from '@angular-devkit/core';
|
||||||
|
|
||||||
import {TestRunner} from '../../schematics/utils/types.js';
|
import {TestRunner} from '../../schematics/utils/types.js';
|
||||||
|
|
||||||
import {type PuppeteerBuilderOptions} from './types.js';
|
import type {PuppeteerBuilderOptions} from './types.js';
|
||||||
|
|
||||||
const terminalStyles = {
|
const terminalStyles = {
|
||||||
cyan: '\u001b[36;1m',
|
cyan: '\u001b[36;1m',
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type JsonObject} from '@angular-devkit/core';
|
import type {JsonObject} from '@angular-devkit/core';
|
||||||
|
|
||||||
import {type TestRunner} from '../../schematics/utils/types.js';
|
import type {TestRunner} from '../../schematics/utils/types.js';
|
||||||
|
|
||||||
export interface PuppeteerBuilderOptions extends JsonObject {
|
export interface PuppeteerBuilderOptions extends JsonObject {
|
||||||
testRunner: TestRunner;
|
testRunner: TestRunner;
|
||||||
|
@ -28,7 +28,7 @@ import {
|
|||||||
url,
|
url,
|
||||||
} from '@angular-devkit/schematics';
|
} from '@angular-devkit/schematics';
|
||||||
|
|
||||||
import {type AngularProject, type TestRunner} from './types.js';
|
import type {AngularProject, TestRunner} from './types.js';
|
||||||
|
|
||||||
export interface FilesOptions {
|
export interface FilesOptions {
|
||||||
options: {
|
options: {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import {get} from 'https';
|
import {get} from 'https';
|
||||||
|
|
||||||
import {type Tree} from '@angular-devkit/schematics';
|
import type {Tree} from '@angular-devkit/schematics';
|
||||||
|
|
||||||
import {getNgCommandName} from './files.js';
|
import {getNgCommandName} from './files.js';
|
||||||
import {
|
import {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import https from 'https';
|
import https from 'https';
|
||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
|
|
||||||
import {type JsonObject} from '@angular-devkit/core';
|
import type {JsonObject} from '@angular-devkit/core';
|
||||||
import {
|
import {
|
||||||
SchematicTestRunner,
|
SchematicTestRunner,
|
||||||
type UnitTestTree,
|
type UnitTestTree,
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type ChildProcess} from 'child_process';
|
import type {ChildProcess} from 'child_process';
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||||
import {debugError, waitWithTimeout} from '../common/util.js';
|
import {debugError, waitWithTimeout} from '../common/util.js';
|
||||||
|
@ -19,7 +19,7 @@ import {debugError} from '../common/util.js';
|
|||||||
import {asyncDisposeSymbol, disposeSymbol} from '../util/disposable.js';
|
import {asyncDisposeSymbol, disposeSymbol} from '../util/disposable.js';
|
||||||
|
|
||||||
import type {Browser, Permission} from './Browser.js';
|
import type {Browser, Permission} from './Browser.js';
|
||||||
import {type Page} from './Page.js';
|
import type {Page} from './Page.js';
|
||||||
import type {Target} from './Target.js';
|
import type {Target} from './Target.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
|
||||||
|
@ -14,31 +14,31 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type Frame} from '../api/Frame.js';
|
import type {Frame} from '../api/Frame.js';
|
||||||
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
||||||
import {LazyArg} from '../common/LazyArg.js';
|
import {LazyArg} from '../common/LazyArg.js';
|
||||||
import {
|
import type {
|
||||||
type ElementFor,
|
ElementFor,
|
||||||
type EvaluateFuncWith,
|
EvaluateFuncWith,
|
||||||
type HandleFor,
|
HandleFor,
|
||||||
type HandleOr,
|
HandleOr,
|
||||||
type NodeFor,
|
NodeFor,
|
||||||
} from '../common/types.js';
|
} from '../common/types.js';
|
||||||
import {type KeyInput} from '../common/USKeyboardLayout.js';
|
import type {KeyInput} from '../common/USKeyboardLayout.js';
|
||||||
import {isString, withSourcePuppeteerURLIfNone} from '../common/util.js';
|
import {isString, withSourcePuppeteerURLIfNone} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js';
|
import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js';
|
||||||
import {throwIfDisposed} from '../util/decorators.js';
|
import {throwIfDisposed} from '../util/decorators.js';
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
type KeyboardTypeOptions,
|
KeyboardTypeOptions,
|
||||||
type KeyPressOptions,
|
KeyPressOptions,
|
||||||
type MouseClickOptions,
|
MouseClickOptions,
|
||||||
} from './Input.js';
|
} from './Input.js';
|
||||||
import {JSHandle} from './JSHandle.js';
|
import {JSHandle} from './JSHandle.js';
|
||||||
import {type ScreenshotOptions, type WaitForSelectorOptions} from './Page.js';
|
import type {ScreenshotOptions, WaitForSelectorOptions} from './Page.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type CDPSession} from './CDPSession.js';
|
import type {CDPSession} from './CDPSession.js';
|
||||||
import {type Realm} from './Realm.js';
|
import type {Realm} from './Realm.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -16,26 +16,26 @@
|
|||||||
|
|
||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {type ClickOptions, type ElementHandle} from '../api/ElementHandle.js';
|
import type {ClickOptions, ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {type HTTPResponse} from '../api/HTTPResponse.js';
|
import type {HTTPResponse} from '../api/HTTPResponse.js';
|
||||||
import {
|
import type {
|
||||||
type Page,
|
Page,
|
||||||
type WaitForSelectorOptions,
|
WaitForSelectorOptions,
|
||||||
type WaitTimeoutOptions,
|
WaitTimeoutOptions,
|
||||||
} from '../api/Page.js';
|
} from '../api/Page.js';
|
||||||
import {type DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
||||||
import {type IsolatedWorldChart} from '../cdp/IsolatedWorld.js';
|
import type {IsolatedWorldChart} from '../cdp/IsolatedWorld.js';
|
||||||
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
||||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||||
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
import {getQueryHandlerAndSelector} from '../common/GetQueryHandler.js';
|
||||||
import {transposeIterableHandle} from '../common/HandleIterator.js';
|
import {transposeIterableHandle} from '../common/HandleIterator.js';
|
||||||
import {LazyArg} from '../common/LazyArg.js';
|
import {LazyArg} from '../common/LazyArg.js';
|
||||||
import {
|
import type {
|
||||||
type Awaitable,
|
Awaitable,
|
||||||
type EvaluateFunc,
|
EvaluateFunc,
|
||||||
type EvaluateFuncWith,
|
EvaluateFuncWith,
|
||||||
type HandleFor,
|
HandleFor,
|
||||||
type NodeFor,
|
NodeFor,
|
||||||
} from '../common/types.js';
|
} from '../common/types.js';
|
||||||
import {
|
import {
|
||||||
getPageContent,
|
getPageContent,
|
||||||
@ -45,14 +45,14 @@ import {
|
|||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {throwIfDisposed} from '../util/decorators.js';
|
import {throwIfDisposed} from '../util/decorators.js';
|
||||||
|
|
||||||
import {type CDPSession} from './CDPSession.js';
|
import type {CDPSession} from './CDPSession.js';
|
||||||
import {type KeyboardTypeOptions} from './Input.js';
|
import type {KeyboardTypeOptions} from './Input.js';
|
||||||
import {
|
import {
|
||||||
FunctionLocator,
|
FunctionLocator,
|
||||||
type Locator,
|
type Locator,
|
||||||
NodeLocator,
|
NodeLocator,
|
||||||
} from './locators/locators.js';
|
} from './locators/locators.js';
|
||||||
import {type Realm} from './Realm.js';
|
import type {Realm} from './Realm.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from './CDPSession.js';
|
import type {CDPSession} from './CDPSession.js';
|
||||||
import {type Frame} from './Frame.js';
|
import type {Frame} from './Frame.js';
|
||||||
import {type HTTPResponse} from './HTTPResponse.js';
|
import type {HTTPResponse} from './HTTPResponse.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {type SecurityDetails} from '../common/SecurityDetails.js';
|
import type {SecurityDetails} from '../common/SecurityDetails.js';
|
||||||
|
|
||||||
import {type Frame} from './Frame.js';
|
import type {Frame} from './Frame.js';
|
||||||
import {type HTTPRequest} from './HTTPRequest.js';
|
import type {HTTPRequest} from './HTTPRequest.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type KeyInput} from '../common/USKeyboardLayout.js';
|
import type {KeyInput} from '../common/USKeyboardLayout.js';
|
||||||
|
|
||||||
import {type Point} from './ElementHandle.js';
|
import type {Point} from './ElementHandle.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -16,17 +16,13 @@
|
|||||||
|
|
||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {
|
import type {EvaluateFuncWith, HandleFor, HandleOr} from '../common/types.js';
|
||||||
type EvaluateFuncWith,
|
|
||||||
type HandleFor,
|
|
||||||
type HandleOr,
|
|
||||||
} from '../common/types.js';
|
|
||||||
import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js';
|
import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js';
|
||||||
import {moveable, throwIfDisposed} from '../util/decorators.js';
|
import {moveable, throwIfDisposed} from '../util/decorators.js';
|
||||||
import {disposeSymbol, asyncDisposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol, asyncDisposeSymbol} from '../util/disposable.js';
|
||||||
|
|
||||||
import {type ElementHandle} from './ElementHandle.js';
|
import type {ElementHandle} from './ElementHandle.js';
|
||||||
import {type Realm} from './Realm.js';
|
import type {Realm} from './Realm.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a reference to a JavaScript object. Instances can be created using
|
* Represents a reference to a JavaScript object. Instances can be created using
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import type {Readable} from 'stream';
|
import type {Readable} from 'stream';
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
delay,
|
delay,
|
||||||
@ -39,7 +39,7 @@ import type {HTTPResponse} from '../api/HTTPResponse.js';
|
|||||||
import type {BidiNetworkManager} from '../bidi/NetworkManager.js';
|
import type {BidiNetworkManager} from '../bidi/NetworkManager.js';
|
||||||
import type {Accessibility} from '../cdp/Accessibility.js';
|
import type {Accessibility} from '../cdp/Accessibility.js';
|
||||||
import type {Coverage} from '../cdp/Coverage.js';
|
import type {Coverage} from '../cdp/Coverage.js';
|
||||||
import {type DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
import type {DeviceRequestPrompt} from '../cdp/DeviceRequestPrompt.js';
|
||||||
import {
|
import {
|
||||||
NetworkManagerEvent,
|
NetworkManagerEvent,
|
||||||
type NetworkManager as CdpNetworkManager,
|
type NetworkManager as CdpNetworkManager,
|
||||||
@ -49,7 +49,7 @@ import {
|
|||||||
import type {Tracing} from '../cdp/Tracing.js';
|
import type {Tracing} from '../cdp/Tracing.js';
|
||||||
import type {WebWorker} from '../cdp/WebWorker.js';
|
import type {WebWorker} from '../cdp/WebWorker.js';
|
||||||
import type {ConsoleMessage} from '../common/ConsoleMessage.js';
|
import type {ConsoleMessage} from '../common/ConsoleMessage.js';
|
||||||
import {type Device} from '../common/Device.js';
|
import type {Device} from '../common/Device.js';
|
||||||
import {TargetCloseError} from '../common/Errors.js';
|
import {TargetCloseError} from '../common/Errors.js';
|
||||||
import {
|
import {
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
@ -82,7 +82,7 @@ import {
|
|||||||
import type {Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {guarded} from '../util/decorators.js';
|
import {guarded} from '../util/decorators.js';
|
||||||
import {type Deferred} from '../util/Deferred.js';
|
import type {Deferred} from '../util/Deferred.js';
|
||||||
import {
|
import {
|
||||||
AsyncDisposableStack,
|
AsyncDisposableStack,
|
||||||
asyncDisposeSymbol,
|
asyncDisposeSymbol,
|
||||||
@ -102,11 +102,11 @@ import type {
|
|||||||
GoToOptions,
|
GoToOptions,
|
||||||
WaitForOptions,
|
WaitForOptions,
|
||||||
} from './Frame.js';
|
} from './Frame.js';
|
||||||
import {
|
import type {
|
||||||
type Keyboard,
|
Keyboard,
|
||||||
type KeyboardTypeOptions,
|
KeyboardTypeOptions,
|
||||||
type Mouse,
|
Mouse,
|
||||||
type Touchscreen,
|
Touchscreen,
|
||||||
} from './Input.js';
|
} from './Input.js';
|
||||||
import type {JSHandle} from './JSHandle.js';
|
import type {JSHandle} from './JSHandle.js';
|
||||||
import {
|
import {
|
||||||
@ -481,7 +481,7 @@ export interface PageEvents extends Record<EventType, unknown> {
|
|||||||
[PageEvent.WorkerDestroyed]: WebWorker;
|
[PageEvent.WorkerDestroyed]: WebWorker;
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export type {
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link PageEvents}.
|
* @deprecated Use {@link PageEvents}.
|
||||||
*/
|
*/
|
||||||
|
@ -14,18 +14,18 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
|
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {
|
import type {
|
||||||
type EvaluateFunc,
|
EvaluateFunc,
|
||||||
type HandleFor,
|
HandleFor,
|
||||||
type InnerLazyParams,
|
InnerLazyParams,
|
||||||
} from '../common/types.js';
|
} from '../common/types.js';
|
||||||
import {TaskManager, WaitTask} from '../common/WaitTask.js';
|
import {TaskManager, WaitTask} from '../common/WaitTask.js';
|
||||||
import {disposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol} from '../util/disposable.js';
|
||||||
|
|
||||||
import {type ElementHandle} from './ElementHandle.js';
|
import type {ElementHandle} from './ElementHandle.js';
|
||||||
import {type Environment} from './Environment.js';
|
import type {Environment} from './Environment.js';
|
||||||
import {type JSHandle} from './JSHandle.js';
|
import type {JSHandle} from './JSHandle.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
import type {Browser} from '../api/Browser.js';
|
import type {Browser} from '../api/Browser.js';
|
||||||
import type {BrowserContext} from '../api/BrowserContext.js';
|
import type {BrowserContext} from '../api/BrowserContext.js';
|
||||||
import {type Page} from '../api/Page.js';
|
import type {Page} from '../api/Page.js';
|
||||||
import {type WebWorker} from '../cdp/WebWorker.js';
|
import type {WebWorker} from '../cdp/WebWorker.js';
|
||||||
|
|
||||||
import {type CDPSession} from './CDPSession.js';
|
import type {CDPSession} from './CDPSession.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Observable} from '../../../third_party/rxjs/rxjs.js';
|
import type {Observable} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {type HandleFor} from '../../common/types.js';
|
import type {HandleFor} from '../../common/types.js';
|
||||||
|
|
||||||
import {Locator, type VisibilityOption} from './locators.js';
|
import {Locator, type VisibilityOption} from './locators.js';
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ import {
|
|||||||
mergeMap,
|
mergeMap,
|
||||||
throwIfEmpty,
|
throwIfEmpty,
|
||||||
} from '../../../third_party/rxjs/rxjs.js';
|
} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {type Awaitable, type HandleFor} from '../../common/types.js';
|
import type {Awaitable, HandleFor} from '../../common/types.js';
|
||||||
|
|
||||||
import {DelegatedLocator} from './DelegatedLocator.js';
|
import {DelegatedLocator} from './DelegatedLocator.js';
|
||||||
import {type ActionOptions, type Locator} from './locators.js';
|
import type {ActionOptions, Locator} from './locators.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -20,9 +20,9 @@ import {
|
|||||||
from,
|
from,
|
||||||
throwIfEmpty,
|
throwIfEmpty,
|
||||||
} from '../../../third_party/rxjs/rxjs.js';
|
} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {type Awaitable, type HandleFor} from '../../common/types.js';
|
import type {Awaitable, HandleFor} from '../../common/types.js';
|
||||||
import {type Frame} from '../Frame.js';
|
import type {Frame} from '../Frame.js';
|
||||||
import {type Page} from '../Page.js';
|
import type {Page} from '../Page.js';
|
||||||
|
|
||||||
import {type ActionOptions, Locator} from './locators.js';
|
import {type ActionOptions, Locator} from './locators.js';
|
||||||
|
|
||||||
|
@ -38,12 +38,12 @@ import {
|
|||||||
tap,
|
tap,
|
||||||
} from '../../../third_party/rxjs/rxjs.js';
|
} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {EventEmitter, type EventType} from '../../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../../common/EventEmitter.js';
|
||||||
import {type HandleFor} from '../../common/types.js';
|
import type {HandleFor} from '../../common/types.js';
|
||||||
import {debugError, timeout} from '../../common/util.js';
|
import {debugError, timeout} from '../../common/util.js';
|
||||||
import {
|
import type {
|
||||||
type BoundingBox,
|
BoundingBox,
|
||||||
type ClickOptions,
|
ClickOptions,
|
||||||
type ElementHandle,
|
ElementHandle,
|
||||||
} from '../ElementHandle.js';
|
} from '../ElementHandle.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@ -155,7 +155,7 @@ export interface LocatorEvents extends Record<EventType, unknown> {
|
|||||||
[LocatorEvent.Action]: undefined;
|
[LocatorEvent.Action]: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
export type {
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link LocatorEvents}.
|
* @deprecated Use {@link LocatorEvents}.
|
||||||
*/
|
*/
|
||||||
|
@ -19,7 +19,7 @@ import {
|
|||||||
from,
|
from,
|
||||||
mergeMap,
|
mergeMap,
|
||||||
} from '../../../third_party/rxjs/rxjs.js';
|
} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {type Awaitable, type HandleFor} from '../../common/types.js';
|
import type {Awaitable, HandleFor} from '../../common/types.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type ActionOptions,
|
type ActionOptions,
|
||||||
|
@ -26,9 +26,9 @@ import {
|
|||||||
retry,
|
retry,
|
||||||
throwIfEmpty,
|
throwIfEmpty,
|
||||||
} from '../../../third_party/rxjs/rxjs.js';
|
} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {type HandleFor, type NodeFor} from '../../common/types.js';
|
import type {HandleFor, NodeFor} from '../../common/types.js';
|
||||||
import {type Frame} from '../Frame.js';
|
import type {Frame} from '../Frame.js';
|
||||||
import {type Page} from '../Page.js';
|
import type {Page} from '../Page.js';
|
||||||
|
|
||||||
import {type ActionOptions, Locator, RETRY_DELAY} from './locators.js';
|
import {type ActionOptions, Locator, RETRY_DELAY} from './locators.js';
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Observable, race} from '../../../third_party/rxjs/rxjs.js';
|
import {type Observable, race} from '../../../third_party/rxjs/rxjs.js';
|
||||||
import {type HandleFor} from '../../common/types.js';
|
import type {HandleFor} from '../../common/types.js';
|
||||||
|
|
||||||
import {type ActionOptions, Locator} from './locators.js';
|
import {type ActionOptions, Locator} from './locators.js';
|
||||||
|
|
||||||
|
@ -18,10 +18,10 @@ import * as BidiMapper from 'chromium-bidi/lib/cjs/bidiMapper/bidiMapper.js';
|
|||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
|
import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
|
||||||
|
|
||||||
import {type CDPEvents, type CDPSession} from '../api/CDPSession.js';
|
import type {CDPEvents, CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Connection as CdpConnection} from '../cdp/Connection.js';
|
import type {Connection as CdpConnection} from '../cdp/Connection.js';
|
||||||
import {TargetCloseError} from '../common/Errors.js';
|
import {TargetCloseError} from '../common/Errors.js';
|
||||||
import {type Handler} from '../common/EventEmitter.js';
|
import type {Handler} from '../common/EventEmitter.js';
|
||||||
|
|
||||||
import {BidiConnection} from './Connection.js';
|
import {BidiConnection} from './Connection.js';
|
||||||
|
|
||||||
|
@ -14,26 +14,26 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type ChildProcess} from 'child_process';
|
import type {ChildProcess} from 'child_process';
|
||||||
|
|
||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Browser,
|
Browser,
|
||||||
|
BrowserEvent,
|
||||||
type BrowserCloseCallback,
|
type BrowserCloseCallback,
|
||||||
type BrowserContextOptions,
|
type BrowserContextOptions,
|
||||||
BrowserEvent,
|
|
||||||
} from '../api/Browser.js';
|
} from '../api/Browser.js';
|
||||||
import {BrowserContextEvent} from '../api/BrowserContext.js';
|
import {BrowserContextEvent} from '../api/BrowserContext.js';
|
||||||
import {type Page} from '../api/Page.js';
|
import type {Page} from '../api/Page.js';
|
||||||
import {type Target} from '../api/Target.js';
|
import type {Target} from '../api/Target.js';
|
||||||
import {type Handler} from '../common/EventEmitter.js';
|
import type {Handler} from '../common/EventEmitter.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
|
|
||||||
import {BidiBrowserContext} from './BrowserContext.js';
|
import {BidiBrowserContext} from './BrowserContext.js';
|
||||||
import {BrowsingContext, BrowsingContextEvent} from './BrowsingContext.js';
|
import {BrowsingContext, BrowsingContextEvent} from './BrowsingContext.js';
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {
|
import {
|
||||||
BiDiBrowserTarget,
|
BiDiBrowserTarget,
|
||||||
BiDiBrowsingContextTarget,
|
BiDiBrowsingContextTarget,
|
||||||
|
@ -17,13 +17,13 @@
|
|||||||
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {BrowserContext} from '../api/BrowserContext.js';
|
import {BrowserContext} from '../api/BrowserContext.js';
|
||||||
import {type Page} from '../api/Page.js';
|
import type {Page} from '../api/Page.js';
|
||||||
import {type Target} from '../api/Target.js';
|
import type {Target} from '../api/Target.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
|
|
||||||
import {type BidiBrowser} from './Browser.js';
|
import type {BidiBrowser} from './Browser.js';
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {type BidiPage} from './Page.js';
|
import type {BidiPage} from './Page.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -2,15 +2,15 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
|||||||
import type ProtocolMapping from 'devtools-protocol/types/protocol-mapping.js';
|
import type ProtocolMapping from 'devtools-protocol/types/protocol-mapping.js';
|
||||||
|
|
||||||
import {CDPSession} from '../api/CDPSession.js';
|
import {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Connection as CdpConnection} from '../cdp/Connection.js';
|
import type {Connection as CdpConnection} from '../cdp/Connection.js';
|
||||||
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
||||||
import {TargetCloseError} from '../common/Errors.js';
|
import {TargetCloseError} from '../common/Errors.js';
|
||||||
import {type EventType} from '../common/EventEmitter.js';
|
import type {EventType} from '../common/EventEmitter.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {BidiRealm} from './Realm.js';
|
import {BidiRealm} from './Realm.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ import {describe, it} from 'node:test';
|
|||||||
|
|
||||||
import expect from 'expect';
|
import expect from 'expect';
|
||||||
|
|
||||||
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
|
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||||
|
|
||||||
import {BidiConnection} from './Connection.js';
|
import {BidiConnection} from './Connection.js';
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {CallbackRegistry} from '../cdp/Connection.js';
|
import {CallbackRegistry} from '../cdp/Connection.js';
|
||||||
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
|
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||||
import {debug} from '../common/Debug.js';
|
import {debug} from '../common/Debug.js';
|
||||||
import {EventEmitter} from '../common/EventEmitter.js';
|
import {EventEmitter} from '../common/EventEmitter.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
|
@ -18,7 +18,7 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
|||||||
|
|
||||||
import {Dialog} from '../api/Dialog.js';
|
import {Dialog} from '../api/Dialog.js';
|
||||||
|
|
||||||
import {type BrowsingContext} from './BrowsingContext.js';
|
import type {BrowsingContext} from './BrowsingContext.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -19,10 +19,10 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
|||||||
import {type AutofillData, ElementHandle} from '../api/ElementHandle.js';
|
import {type AutofillData, ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {throwIfDisposed} from '../util/decorators.js';
|
import {throwIfDisposed} from '../util/decorators.js';
|
||||||
|
|
||||||
import {type BidiFrame} from './Frame.js';
|
import type {BidiFrame} from './Frame.js';
|
||||||
import {BidiJSHandle} from './JSHandle.js';
|
import {BidiJSHandle} from './JSHandle.js';
|
||||||
import {type BidiRealm} from './Realm.js';
|
import type {BidiRealm} from './Realm.js';
|
||||||
import {type Sandbox} from './Sandbox.js';
|
import type {Sandbox} from './Sandbox.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {type BrowsingContext} from './BrowsingContext.js';
|
import type {BrowsingContext} from './BrowsingContext.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -16,14 +16,14 @@
|
|||||||
|
|
||||||
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {type Awaitable, type FlattenHandle} from '../common/types.js';
|
import type {Awaitable, FlattenHandle} from '../common/types.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
import {interpolateFunction, stringifyFunction} from '../util/Function.js';
|
import {interpolateFunction, stringifyFunction} from '../util/Function.js';
|
||||||
|
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {type BidiFrame} from './Frame.js';
|
import type {BidiFrame} from './Frame.js';
|
||||||
import {BidiSerializer} from './Serializer.js';
|
import {BidiSerializer} from './Serializer.js';
|
||||||
|
|
||||||
type SendArgsChannel<Args> = (value: [id: number, args: Args]) => void;
|
type SendArgsChannel<Args> = (value: [id: number, args: Args]) => void;
|
||||||
|
@ -25,17 +25,17 @@ import {
|
|||||||
raceWith,
|
raceWith,
|
||||||
switchMap,
|
switchMap,
|
||||||
} from '../../third_party/rxjs/rxjs.js';
|
} from '../../third_party/rxjs/rxjs.js';
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {
|
import {
|
||||||
Frame,
|
Frame,
|
||||||
type GoToOptions,
|
type GoToOptions,
|
||||||
type WaitForOptions,
|
type WaitForOptions,
|
||||||
throwIfDetached,
|
throwIfDetached,
|
||||||
} from '../api/Frame.js';
|
} from '../api/Frame.js';
|
||||||
import {type PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
import type {PuppeteerLifeCycleEvent} from '../cdp/LifecycleWatcher.js';
|
||||||
import {ProtocolError, TimeoutError} from '../common/Errors.js';
|
import {ProtocolError, TimeoutError} from '../common/Errors.js';
|
||||||
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
|
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {type Awaitable} from '../common/types.js';
|
import type {Awaitable} from '../common/types.js';
|
||||||
import {
|
import {
|
||||||
UTILITY_WORLD_NAME,
|
UTILITY_WORLD_NAME,
|
||||||
setPageContent,
|
setPageContent,
|
||||||
@ -51,8 +51,8 @@ import {
|
|||||||
type BrowsingContext,
|
type BrowsingContext,
|
||||||
} from './BrowsingContext.js';
|
} from './BrowsingContext.js';
|
||||||
import {ExposeableFunction} from './ExposedFunction.js';
|
import {ExposeableFunction} from './ExposedFunction.js';
|
||||||
import {type BidiHTTPResponse} from './HTTPResponse.js';
|
import type {BidiHTTPResponse} from './HTTPResponse.js';
|
||||||
import {type BidiPage} from './Page.js';
|
import type {BidiPage} from './Page.js';
|
||||||
import {
|
import {
|
||||||
MAIN_SANDBOX,
|
MAIN_SANDBOX,
|
||||||
PUPPETEER_SANDBOX,
|
PUPPETEER_SANDBOX,
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
*/
|
*/
|
||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {type Frame} from '../api/Frame.js';
|
import type {Frame} from '../api/Frame.js';
|
||||||
import {HTTPRequest, type ResourceType} from '../api/HTTPRequest.js';
|
import {HTTPRequest, type ResourceType} from '../api/HTTPRequest.js';
|
||||||
|
|
||||||
import {type BidiHTTPResponse} from './HTTPResponse.js';
|
import type {BidiHTTPResponse} from './HTTPResponse.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {type Frame} from '../api/Frame.js';
|
import type {Frame} from '../api/Frame.js';
|
||||||
import {
|
import {
|
||||||
HTTPResponse as HTTPResponse,
|
HTTPResponse as HTTPResponse,
|
||||||
type RemoteAddress,
|
type RemoteAddress,
|
||||||
} from '../api/HTTPResponse.js';
|
} from '../api/HTTPResponse.js';
|
||||||
|
|
||||||
import {type BidiHTTPRequest} from './HTTPRequest.js';
|
import type {BidiHTTPRequest} from './HTTPRequest.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {type Point} from '../api/ElementHandle.js';
|
import type {Point} from '../api/ElementHandle.js';
|
||||||
import {
|
import {
|
||||||
Keyboard,
|
Keyboard,
|
||||||
Mouse,
|
Mouse,
|
||||||
@ -30,10 +30,10 @@ import {
|
|||||||
type MouseOptions,
|
type MouseOptions,
|
||||||
type MouseWheelOptions,
|
type MouseWheelOptions,
|
||||||
} from '../api/Input.js';
|
} from '../api/Input.js';
|
||||||
import {type KeyInput} from '../common/USKeyboardLayout.js';
|
import type {KeyInput} from '../common/USKeyboardLayout.js';
|
||||||
|
|
||||||
import {type BrowsingContext} from './BrowsingContext.js';
|
import type {BrowsingContext} from './BrowsingContext.js';
|
||||||
import {type BidiPage} from './Page.js';
|
import type {BidiPage} from './Page.js';
|
||||||
|
|
||||||
const enum InputId {
|
const enum InputId {
|
||||||
Mouse = '__puppeteer_mouse',
|
Mouse = '__puppeteer_mouse',
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
|
|
||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
|
|
||||||
import {type ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {JSHandle} from '../api/JSHandle.js';
|
import {JSHandle} from '../api/JSHandle.js';
|
||||||
|
|
||||||
import {type BidiRealm} from './Realm.js';
|
import type {BidiRealm} from './Realm.js';
|
||||||
import {type Sandbox} from './Sandbox.js';
|
import type {Sandbox} from './Sandbox.js';
|
||||||
import {BidiSerializer} from './Serializer.js';
|
import {BidiSerializer} from './Serializer.js';
|
||||||
import {releaseReference} from './util.js';
|
import {releaseReference} from './util.js';
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ import {
|
|||||||
} from '../common/EventEmitter.js';
|
} from '../common/EventEmitter.js';
|
||||||
import {DisposableStack} from '../util/disposable.js';
|
import {DisposableStack} from '../util/disposable.js';
|
||||||
|
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {type BidiFrame} from './Frame.js';
|
import type {BidiFrame} from './Frame.js';
|
||||||
import {BidiHTTPRequest} from './HTTPRequest.js';
|
import {BidiHTTPRequest} from './HTTPRequest.js';
|
||||||
import {BidiHTTPResponse} from './HTTPResponse.js';
|
import {BidiHTTPResponse} from './HTTPResponse.js';
|
||||||
import {type BidiPage} from './Page.js';
|
import type {BidiPage} from './Page.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -19,8 +19,8 @@ import type {Readable} from 'stream';
|
|||||||
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type WaitForOptions} from '../api/Frame.js';
|
import type {WaitForOptions} from '../api/Frame.js';
|
||||||
import {
|
import {
|
||||||
Page,
|
Page,
|
||||||
PageEvent,
|
PageEvent,
|
||||||
@ -44,10 +44,10 @@ import {
|
|||||||
TargetCloseError,
|
TargetCloseError,
|
||||||
TimeoutError,
|
TimeoutError,
|
||||||
} from '../common/Errors.js';
|
} from '../common/Errors.js';
|
||||||
import {type Handler} from '../common/EventEmitter.js';
|
import type {Handler} from '../common/EventEmitter.js';
|
||||||
import {type PDFOptions} from '../common/PDFOptions.js';
|
import type {PDFOptions} from '../common/PDFOptions.js';
|
||||||
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {type Awaitable} from '../common/types.js';
|
import type {Awaitable} from '../common/types.js';
|
||||||
import {
|
import {
|
||||||
debugError,
|
debugError,
|
||||||
evaluationString,
|
evaluationString,
|
||||||
@ -56,28 +56,28 @@ import {
|
|||||||
waitForEvent,
|
waitForEvent,
|
||||||
waitWithTimeout,
|
waitWithTimeout,
|
||||||
} from '../common/util.js';
|
} from '../common/util.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
import {disposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol} from '../util/disposable.js';
|
||||||
|
|
||||||
import {type BidiBrowser} from './Browser.js';
|
import type {BidiBrowser} from './Browser.js';
|
||||||
import {type BidiBrowserContext} from './BrowserContext.js';
|
import type {BidiBrowserContext} from './BrowserContext.js';
|
||||||
import {
|
import {
|
||||||
BrowsingContextEvent,
|
BrowsingContextEvent,
|
||||||
CdpSessionWrapper,
|
CdpSessionWrapper,
|
||||||
getWaitUntilSingle,
|
getWaitUntilSingle,
|
||||||
type BrowsingContext,
|
type BrowsingContext,
|
||||||
} from './BrowsingContext.js';
|
} from './BrowsingContext.js';
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {BidiDialog} from './Dialog.js';
|
import {BidiDialog} from './Dialog.js';
|
||||||
import {BidiElementHandle} from './ElementHandle.js';
|
import {BidiElementHandle} from './ElementHandle.js';
|
||||||
import {EmulationManager} from './EmulationManager.js';
|
import {EmulationManager} from './EmulationManager.js';
|
||||||
import {BidiFrame, lifeCycleToReadinessState} from './Frame.js';
|
import {BidiFrame, lifeCycleToReadinessState} from './Frame.js';
|
||||||
import {type BidiHTTPRequest} from './HTTPRequest.js';
|
import type {BidiHTTPRequest} from './HTTPRequest.js';
|
||||||
import {type BidiHTTPResponse} from './HTTPResponse.js';
|
import type {BidiHTTPResponse} from './HTTPResponse.js';
|
||||||
import {BidiKeyboard, BidiMouse, BidiTouchscreen} from './Input.js';
|
import {BidiKeyboard, BidiMouse, BidiTouchscreen} from './Input.js';
|
||||||
import {type BidiJSHandle} from './JSHandle.js';
|
import type {BidiJSHandle} from './JSHandle.js';
|
||||||
import {BidiNetworkManager} from './NetworkManager.js';
|
import {BidiNetworkManager} from './NetworkManager.js';
|
||||||
import {createBidiHandle} from './Realm.js';
|
import {createBidiHandle} from './Realm.js';
|
||||||
import {BidiSerializer} from './Serializer.js';
|
import {BidiSerializer} from './Serializer.js';
|
||||||
|
@ -2,7 +2,7 @@ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
|||||||
|
|
||||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||||
import {scriptInjector} from '../common/ScriptInjector.js';
|
import {scriptInjector} from '../common/ScriptInjector.js';
|
||||||
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
|
import type {EvaluateFunc, HandleFor} from '../common/types.js';
|
||||||
import {
|
import {
|
||||||
PuppeteerURL,
|
PuppeteerURL,
|
||||||
SOURCE_URL_REGEX,
|
SOURCE_URL_REGEX,
|
||||||
@ -14,10 +14,10 @@ import type PuppeteerUtil from '../injected/injected.js';
|
|||||||
import {disposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol} from '../util/disposable.js';
|
||||||
import {stringifyFunction} from '../util/Function.js';
|
import {stringifyFunction} from '../util/Function.js';
|
||||||
|
|
||||||
import {type BidiConnection} from './Connection.js';
|
import type {BidiConnection} from './Connection.js';
|
||||||
import {BidiElementHandle} from './ElementHandle.js';
|
import {BidiElementHandle} from './ElementHandle.js';
|
||||||
import {BidiJSHandle} from './JSHandle.js';
|
import {BidiJSHandle} from './JSHandle.js';
|
||||||
import {type Sandbox} from './Sandbox.js';
|
import type {Sandbox} from './Sandbox.js';
|
||||||
import {BidiSerializer} from './Serializer.js';
|
import {BidiSerializer} from './Serializer.js';
|
||||||
import {createEvaluationError} from './util.js';
|
import {createEvaluationError} from './util.js';
|
||||||
|
|
||||||
|
@ -14,16 +14,16 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import {Realm} from '../api/Realm.js';
|
import {Realm} from '../api/Realm.js';
|
||||||
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
|
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
|
import type {EvaluateFunc, HandleFor} from '../common/types.js';
|
||||||
import {withSourcePuppeteerURLIfNone} from '../common/util.js';
|
import {withSourcePuppeteerURLIfNone} from '../common/util.js';
|
||||||
|
|
||||||
import {type BrowsingContext} from './BrowsingContext.js';
|
import type {BrowsingContext} from './BrowsingContext.js';
|
||||||
import {BidiElementHandle} from './ElementHandle.js';
|
import {BidiElementHandle} from './ElementHandle.js';
|
||||||
import {type BidiFrame} from './Frame.js';
|
import type {BidiFrame} from './Frame.js';
|
||||||
import {type BidiRealm as BidiRealm} from './Realm.js';
|
import type {BidiRealm as BidiRealm} from './Realm.js';
|
||||||
/**
|
/**
|
||||||
* A unique key for {@link SandboxChart} to denote the default world.
|
* A unique key for {@link SandboxChart} to denote the default world.
|
||||||
* Realms are automatically created in the default sandbox.
|
* Realms are automatically created in the default sandbox.
|
||||||
|
@ -21,7 +21,7 @@ import {debugError, isDate, isPlainObject, isRegExp} from '../common/util.js';
|
|||||||
|
|
||||||
import {BidiElementHandle} from './ElementHandle.js';
|
import {BidiElementHandle} from './ElementHandle.js';
|
||||||
import {BidiJSHandle} from './JSHandle.js';
|
import {BidiJSHandle} from './JSHandle.js';
|
||||||
import {type Sandbox} from './Sandbox.js';
|
import type {Sandbox} from './Sandbox.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {Target, TargetType} from '../api/Target.js';
|
import {Target, TargetType} from '../api/Target.js';
|
||||||
|
|
||||||
import {type BidiBrowser} from './Browser.js';
|
import type {BidiBrowser} from './Browser.js';
|
||||||
import {type BidiBrowserContext} from './BrowserContext.js';
|
import type {BidiBrowserContext} from './BrowserContext.js';
|
||||||
import {type BrowsingContext, CdpSessionWrapper} from './BrowsingContext.js';
|
import {type BrowsingContext, CdpSessionWrapper} from './BrowsingContext.js';
|
||||||
import {BidiPage} from './Page.js';
|
import {BidiPage} from './Page.js';
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js';
|
|||||||
|
|
||||||
import {PuppeteerURL, debugError} from '../common/util.js';
|
import {PuppeteerURL, debugError} from '../common/util.js';
|
||||||
|
|
||||||
import {type BidiRealm} from './Realm.js';
|
import type {BidiRealm} from './Realm.js';
|
||||||
import {BidiSerializer} from './Serializer.js';
|
import {BidiSerializer} from './Serializer.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a Node and the properties of it that are relevant to Accessibility.
|
* Represents a Node and the properties of it that are relevant to Accessibility.
|
||||||
|
@ -14,12 +14,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {QueryHandler, type QuerySelector} from '../common/QueryHandler.js';
|
import {QueryHandler, type QuerySelector} from '../common/QueryHandler.js';
|
||||||
import {type AwaitableIterable} from '../common/types.js';
|
import type {AwaitableIterable} from '../common/types.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js';
|
import {AsyncIterableUtil} from '../util/AsyncIterableUtil.js';
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import {debugError} from '../common/util.js';
|
|||||||
import {DisposableStack} from '../util/disposable.js';
|
import {DisposableStack} from '../util/disposable.js';
|
||||||
import {isErrorLike} from '../util/ErrorLike.js';
|
import {isErrorLike} from '../util/ErrorLike.js';
|
||||||
|
|
||||||
import {type ExecutionContext} from './ExecutionContext.js';
|
import type {ExecutionContext} from './ExecutionContext.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type ChildProcess} from 'child_process';
|
import type {ChildProcess} from 'child_process';
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Browser as BrowserBase,
|
Browser as BrowserBase,
|
||||||
@ -30,14 +30,14 @@ import {
|
|||||||
} from '../api/Browser.js';
|
} from '../api/Browser.js';
|
||||||
import {BrowserContext, BrowserContextEvent} from '../api/BrowserContext.js';
|
import {BrowserContext, BrowserContextEvent} from '../api/BrowserContext.js';
|
||||||
import {CDPSessionEvent, type CDPSession} from '../api/CDPSession.js';
|
import {CDPSessionEvent, type CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Page} from '../api/Page.js';
|
import type {Page} from '../api/Page.js';
|
||||||
import {type Target} from '../api/Target.js';
|
import type {Target} from '../api/Target.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {USE_TAB_TARGET} from '../environment.js';
|
import {USE_TAB_TARGET} from '../environment.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
|
||||||
import {ChromeTargetManager} from './ChromeTargetManager.js';
|
import {ChromeTargetManager} from './ChromeTargetManager.js';
|
||||||
import {type Connection} from './Connection.js';
|
import type {Connection} from './Connection.js';
|
||||||
import {FirefoxTargetManager} from './FirefoxTargetManager.js';
|
import {FirefoxTargetManager} from './FirefoxTargetManager.js';
|
||||||
import {
|
import {
|
||||||
DevToolsTarget,
|
DevToolsTarget,
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
type IsPageTargetCallback,
|
IsPageTargetCallback,
|
||||||
type TargetFilterCallback,
|
TargetFilterCallback,
|
||||||
} from '../api/Browser.js';
|
} from '../api/Browser.js';
|
||||||
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
|
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||||
import {getFetch} from '../common/fetch.js';
|
import {getFetch} from '../common/fetch.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {isNode} from '../environment.js';
|
import {isNode} from '../environment.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {isErrorLike} from '../util/ErrorLike.js';
|
import {isErrorLike} from '../util/ErrorLike.js';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {type ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
|
import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type CDPEvents,
|
type CDPEvents,
|
||||||
@ -13,7 +13,7 @@ import {
|
|||||||
type Connection,
|
type Connection,
|
||||||
createProtocolErrorMessage,
|
createProtocolErrorMessage,
|
||||||
} from './Connection.js';
|
} from './Connection.js';
|
||||||
import {type CdpTarget} from './Target.js';
|
import type {CdpTarget} from './Target.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type TargetFilterCallback} from '../api/Browser.js';
|
import type {TargetFilterCallback} from '../api/Browser.js';
|
||||||
import {CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
import {CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
||||||
import {TargetType} from '../api/Target.js';
|
import {TargetType} from '../api/Target.js';
|
||||||
import {EventEmitter} from '../common/EventEmitter.js';
|
import {EventEmitter} from '../common/EventEmitter.js';
|
||||||
@ -24,8 +24,8 @@ import {debugError} from '../common/util.js';
|
|||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
import {type CdpCDPSession} from './CDPSession.js';
|
import type {CdpCDPSession} from './CDPSession.js';
|
||||||
import {type Connection} from './Connection.js';
|
import type {Connection} from './Connection.js';
|
||||||
import {CdpTarget, InitializationStatus} from './Target.js';
|
import {CdpTarget, InitializationStatus} from './Target.js';
|
||||||
import {
|
import {
|
||||||
type TargetFactory,
|
type TargetFactory,
|
||||||
|
@ -14,15 +14,15 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
import {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
|
import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type CDPSession,
|
|
||||||
CDPSessionEvent,
|
CDPSessionEvent,
|
||||||
|
type CDPSession,
|
||||||
type CDPSessionEvents,
|
type CDPSessionEvents,
|
||||||
} from '../api/CDPSession.js';
|
} from '../api/CDPSession.js';
|
||||||
import {ConnectionTransport} from '../common/ConnectionTransport.js';
|
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||||
import {debug} from '../common/Debug.js';
|
import {debug} from '../common/Debug.js';
|
||||||
import {ProtocolError, TargetCloseError} from '../common/Errors.js';
|
import {ProtocolError, TargetCloseError} from '../common/Errors.js';
|
||||||
import {EventEmitter} from '../common/EventEmitter.js';
|
import {EventEmitter} from '../common/EventEmitter.js';
|
||||||
@ -37,7 +37,7 @@ const debugProtocolReceive = debug('puppeteer:protocol:RECV ◀');
|
|||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export {ConnectionTransport, ProtocolMapping};
|
export type {ConnectionTransport, ProtocolMapping};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {EventSubscription} from '../common/EventEmitter.js';
|
import {EventSubscription} from '../common/EventEmitter.js';
|
||||||
import {debugError, PuppeteerURL} from '../common/util.js';
|
import {debugError, PuppeteerURL} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
@ -18,7 +18,7 @@ import {describe, it} from 'node:test';
|
|||||||
|
|
||||||
import expect from 'expect';
|
import expect from 'expect';
|
||||||
|
|
||||||
import {type CDPSessionEvents} from '../api/CDPSession.js';
|
import type {CDPSessionEvents} from '../api/CDPSession.js';
|
||||||
import {TimeoutError} from '../common/Errors.js';
|
import {TimeoutError} from '../common/Errors.js';
|
||||||
import {EventEmitter} from '../common/EventEmitter.js';
|
import {EventEmitter} from '../common/EventEmitter.js';
|
||||||
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
|
|
||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type WaitTimeoutOptions} from '../api/Page.js';
|
import type {WaitTimeoutOptions} from '../api/Page.js';
|
||||||
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
|
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {Dialog} from '../api/Dialog.js';
|
import {Dialog} from '../api/Dialog.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,17 +14,19 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type Path from 'path';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {ElementHandle, type AutofillData} from '../api/ElementHandle.js';
|
import {ElementHandle, type AutofillData} from '../api/ElementHandle.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {throwIfDisposed} from '../util/decorators.js';
|
import {throwIfDisposed} from '../util/decorators.js';
|
||||||
|
|
||||||
import {type CdpFrame} from './Frame.js';
|
import type {CdpFrame} from './Frame.js';
|
||||||
import {type FrameManager} from './FrameManager.js';
|
import type {FrameManager} from './FrameManager.js';
|
||||||
import {type IsolatedWorld} from './IsolatedWorld.js';
|
import type {IsolatedWorld} from './IsolatedWorld.js';
|
||||||
import {CdpJSHandle} from './JSHandle.js';
|
import {CdpJSHandle} from './JSHandle.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -113,7 +115,7 @@ export class CdpElementHandle<
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Locate all files and confirm that they exist.
|
// Locate all files and confirm that they exist.
|
||||||
let path: typeof import('path');
|
let path: typeof Path;
|
||||||
try {
|
try {
|
||||||
path = await import('path');
|
path = await import('path');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
||||||
import {type GeolocationOptions, type MediaFeature} from '../api/Page.js';
|
import type {GeolocationOptions, MediaFeature} from '../api/Page.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {invokeAtMostOnceForArguments} from '../util/decorators.js';
|
import {invokeAtMostOnceForArguments} from '../util/decorators.js';
|
||||||
import {isErrorLike} from '../util/ErrorLike.js';
|
import {isErrorLike} from '../util/ErrorLike.js';
|
||||||
|
@ -14,14 +14,14 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import type {ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import {LazyArg} from '../common/LazyArg.js';
|
import {LazyArg} from '../common/LazyArg.js';
|
||||||
import {scriptInjector} from '../common/ScriptInjector.js';
|
import {scriptInjector} from '../common/ScriptInjector.js';
|
||||||
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
|
import type {EvaluateFunc, HandleFor} from '../common/types.js';
|
||||||
import {
|
import {
|
||||||
PuppeteerURL,
|
PuppeteerURL,
|
||||||
SOURCE_URL_REGEX,
|
SOURCE_URL_REGEX,
|
||||||
@ -39,7 +39,7 @@ import {stringifyFunction} from '../util/Function.js';
|
|||||||
import {ARIAQueryHandler} from './AriaQueryHandler.js';
|
import {ARIAQueryHandler} from './AriaQueryHandler.js';
|
||||||
import {Binding} from './Binding.js';
|
import {Binding} from './Binding.js';
|
||||||
import {CdpElementHandle} from './ElementHandle.js';
|
import {CdpElementHandle} from './ElementHandle.js';
|
||||||
import {type IsolatedWorld} from './IsolatedWorld.js';
|
import type {IsolatedWorld} from './IsolatedWorld.js';
|
||||||
import {CdpJSHandle} from './JSHandle.js';
|
import {CdpJSHandle} from './JSHandle.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,16 +14,16 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type TargetFilterCallback} from '../api/Browser.js';
|
import type {TargetFilterCallback} from '../api/Browser.js';
|
||||||
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
||||||
import {EventEmitter} from '../common/EventEmitter.js';
|
import {EventEmitter} from '../common/EventEmitter.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
import {type Connection} from './Connection.js';
|
import type {Connection} from './Connection.js';
|
||||||
import {type CdpTarget} from './Target.js';
|
import type {CdpTarget} from './Target.js';
|
||||||
import {
|
import {
|
||||||
type TargetFactory,
|
type TargetFactory,
|
||||||
TargetManagerEvent,
|
TargetManagerEvent,
|
||||||
|
@ -14,23 +14,23 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {Frame, FrameEvent, throwIfDetached} from '../api/Frame.js';
|
import {Frame, FrameEvent, throwIfDetached} from '../api/Frame.js';
|
||||||
import {type HTTPResponse} from '../api/HTTPResponse.js';
|
import type {HTTPResponse} from '../api/HTTPResponse.js';
|
||||||
import {type Page, type WaitTimeoutOptions} from '../api/Page.js';
|
import type {Page, WaitTimeoutOptions} from '../api/Page.js';
|
||||||
import {setPageContent} from '../common/util.js';
|
import {setPageContent} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
import {disposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol} from '../util/disposable.js';
|
||||||
import {isErrorLike} from '../util/ErrorLike.js';
|
import {isErrorLike} from '../util/ErrorLike.js';
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
type DeviceRequestPrompt,
|
DeviceRequestPrompt,
|
||||||
type DeviceRequestPromptManager,
|
DeviceRequestPromptManager,
|
||||||
} from './DeviceRequestPrompt.js';
|
} from './DeviceRequestPrompt.js';
|
||||||
import {type FrameManager} from './FrameManager.js';
|
import type {FrameManager} from './FrameManager.js';
|
||||||
import {IsolatedWorld} from './IsolatedWorld.js';
|
import {IsolatedWorld} from './IsolatedWorld.js';
|
||||||
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
||||||
import {
|
import {
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
import {type CDPSession, CDPSessionEvent} from '../api/CDPSession.js';
|
||||||
import {FrameEvent} from '../api/Frame.js';
|
import {FrameEvent} from '../api/Frame.js';
|
||||||
import {type Page} from '../api/Page.js';
|
import type {Page} from '../api/Page.js';
|
||||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||||
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
|
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {debugError, PuppeteerURL, UTILITY_WORLD_NAME} from '../common/util.js';
|
import {debugError, PuppeteerURL, UTILITY_WORLD_NAME} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
@ -33,10 +33,10 @@ import {DeviceRequestPromptManager} from './DeviceRequestPrompt.js';
|
|||||||
import {ExecutionContext} from './ExecutionContext.js';
|
import {ExecutionContext} from './ExecutionContext.js';
|
||||||
import {CdpFrame} from './Frame.js';
|
import {CdpFrame} from './Frame.js';
|
||||||
import {FrameTree} from './FrameTree.js';
|
import {FrameTree} from './FrameTree.js';
|
||||||
import {type IsolatedWorld} from './IsolatedWorld.js';
|
import type {IsolatedWorld} from './IsolatedWorld.js';
|
||||||
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
import {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
||||||
import {NetworkManager} from './NetworkManager.js';
|
import {NetworkManager} from './NetworkManager.js';
|
||||||
import {type CdpTarget} from './Target.js';
|
import type {CdpTarget} from './Target.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We use symbols to prevent external parties listening to these events.
|
* We use symbols to prevent external parties listening to these events.
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Frame} from '../api/Frame.js';
|
import type {Frame} from '../api/Frame.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,10 +13,10 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Frame} from '../api/Frame.js';
|
import type {Frame} from '../api/Frame.js';
|
||||||
import {
|
import {
|
||||||
type ContinueRequestOverrides,
|
type ContinueRequestOverrides,
|
||||||
type ErrorCode,
|
type ErrorCode,
|
||||||
@ -28,8 +28,8 @@ import {
|
|||||||
type ResponseForRequest,
|
type ResponseForRequest,
|
||||||
STATUS_TEXTS,
|
STATUS_TEXTS,
|
||||||
} from '../api/HTTPRequest.js';
|
} from '../api/HTTPRequest.js';
|
||||||
import {type HTTPResponse} from '../api/HTTPResponse.js';
|
import type {HTTPResponse} from '../api/HTTPResponse.js';
|
||||||
import {type ProtocolError} from '../common/Errors.js';
|
import type {ProtocolError} from '../common/Errors.js';
|
||||||
import {debugError, isString} from '../common/util.js';
|
import {debugError, isString} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
|
||||||
|
@ -13,16 +13,16 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Frame} from '../api/Frame.js';
|
import type {Frame} from '../api/Frame.js';
|
||||||
import {HTTPResponse, type RemoteAddress} from '../api/HTTPResponse.js';
|
import {HTTPResponse, type RemoteAddress} from '../api/HTTPResponse.js';
|
||||||
import {ProtocolError} from '../common/Errors.js';
|
import {ProtocolError} from '../common/Errors.js';
|
||||||
import {SecurityDetails} from '../common/SecurityDetails.js';
|
import {SecurityDetails} from '../common/SecurityDetails.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
import {type CdpHTTPRequest} from './HTTPRequest.js';
|
import type {CdpHTTPRequest} from './HTTPRequest.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Point} from '../api/ElementHandle.js';
|
import type {Point} from '../api/ElementHandle.js';
|
||||||
import {
|
import {
|
||||||
Keyboard,
|
Keyboard,
|
||||||
type KeyDownOptions,
|
type KeyDownOptions,
|
||||||
|
@ -14,17 +14,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import {Realm} from '../api/Realm.js';
|
import {Realm} from '../api/Realm.js';
|
||||||
import {type TimeoutSettings} from '../common/TimeoutSettings.js';
|
import type {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {
|
import type {BindingPayload, EvaluateFunc, HandleFor} from '../common/types.js';
|
||||||
type BindingPayload,
|
|
||||||
type EvaluateFunc,
|
|
||||||
type HandleFor,
|
|
||||||
} from '../common/types.js';
|
|
||||||
import {
|
import {
|
||||||
addPageBinding,
|
addPageBinding,
|
||||||
debugError,
|
debugError,
|
||||||
@ -34,11 +30,11 @@ import {Deferred} from '../util/Deferred.js';
|
|||||||
import {disposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol} from '../util/disposable.js';
|
||||||
import {Mutex} from '../util/Mutex.js';
|
import {Mutex} from '../util/Mutex.js';
|
||||||
|
|
||||||
import {type Binding} from './Binding.js';
|
import type {Binding} from './Binding.js';
|
||||||
import {type ExecutionContext, createCdpHandle} from './ExecutionContext.js';
|
import {type ExecutionContext, createCdpHandle} from './ExecutionContext.js';
|
||||||
import {CdpFrame} from './Frame.js';
|
import {CdpFrame} from './Frame.js';
|
||||||
import {type MAIN_WORLD, type PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
import type {MAIN_WORLD, PUPPETEER_WORLD} from './IsolatedWorlds.js';
|
||||||
import {type WebWorker} from './WebWorker.js';
|
import type {WebWorker} from './WebWorker.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,15 +14,15 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {JSHandle} from '../api/JSHandle.js';
|
import {JSHandle} from '../api/JSHandle.js';
|
||||||
import {valueFromRemoteObject} from '../common/util.js';
|
import {valueFromRemoteObject} from '../common/util.js';
|
||||||
|
|
||||||
import type {CdpElementHandle} from './ElementHandle.js';
|
import type {CdpElementHandle} from './ElementHandle.js';
|
||||||
import {releaseObject} from './ExecutionContext.js';
|
import {releaseObject} from './ExecutionContext.js';
|
||||||
import {type IsolatedWorld} from './IsolatedWorld.js';
|
import type {IsolatedWorld} from './IsolatedWorld.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -17,16 +17,16 @@
|
|||||||
import type Protocol from 'devtools-protocol';
|
import type Protocol from 'devtools-protocol';
|
||||||
|
|
||||||
import {type Frame, FrameEvent} from '../api/Frame.js';
|
import {type Frame, FrameEvent} from '../api/Frame.js';
|
||||||
import {type HTTPResponse} from '../api/HTTPResponse.js';
|
import type {HTTPResponse} from '../api/HTTPResponse.js';
|
||||||
import {type TimeoutError} from '../common/Errors.js';
|
import type {TimeoutError} from '../common/Errors.js';
|
||||||
import {EventSubscription} from '../common/EventEmitter.js';
|
import {EventSubscription} from '../common/EventEmitter.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
import {DisposableStack} from '../util/disposable.js';
|
import {DisposableStack} from '../util/disposable.js';
|
||||||
|
|
||||||
import {type CdpFrame} from './Frame.js';
|
import type {CdpFrame} from './Frame.js';
|
||||||
import {FrameManagerEvent} from './FrameManager.js';
|
import {FrameManagerEvent} from './FrameManager.js';
|
||||||
import {type CdpHTTPRequest} from './HTTPRequest.js';
|
import type {CdpHTTPRequest} from './HTTPRequest.js';
|
||||||
import {type NetworkManager, NetworkManagerEvent} from './NetworkManager.js';
|
import {type NetworkManager, NetworkManagerEvent} from './NetworkManager.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CdpHTTPRequest} from './HTTPRequest.js';
|
import type {CdpHTTPRequest} from './HTTPRequest.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -18,12 +18,12 @@ import {describe, it} from 'node:test';
|
|||||||
|
|
||||||
import expect from 'expect';
|
import expect from 'expect';
|
||||||
|
|
||||||
import {type CDPSessionEvents} from '../api/CDPSession.js';
|
import type {CDPSessionEvents} from '../api/CDPSession.js';
|
||||||
import {type HTTPRequest} from '../api/HTTPRequest.js';
|
import type {HTTPRequest} from '../api/HTTPRequest.js';
|
||||||
import {type HTTPResponse} from '../api/HTTPResponse.js';
|
import type {HTTPResponse} from '../api/HTTPResponse.js';
|
||||||
import {EventEmitter} from '../common/EventEmitter.js';
|
import {EventEmitter} from '../common/EventEmitter.js';
|
||||||
|
|
||||||
import {type CdpFrame} from './Frame.js';
|
import type {CdpFrame} from './Frame.js';
|
||||||
import {NetworkManager, NetworkManagerEvent} from './NetworkManager.js';
|
import {NetworkManager, NetworkManagerEvent} from './NetworkManager.js';
|
||||||
|
|
||||||
// TODO: develop a helper to generate fake network events for attributes that
|
// TODO: develop a helper to generate fake network events for attributes that
|
||||||
|
@ -16,16 +16,16 @@
|
|||||||
|
|
||||||
import type {Readable} from 'stream';
|
import type {Readable} from 'stream';
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type Browser} from '../api/Browser.js';
|
import type {Browser} from '../api/Browser.js';
|
||||||
import type {BrowserContext} from '../api/BrowserContext.js';
|
import type {BrowserContext} from '../api/BrowserContext.js';
|
||||||
import {CDPSessionEvent, type CDPSession} from '../api/CDPSession.js';
|
import {CDPSessionEvent, type CDPSession} from '../api/CDPSession.js';
|
||||||
import {type ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {type Frame, type WaitForOptions} from '../api/Frame.js';
|
import type {Frame, WaitForOptions} from '../api/Frame.js';
|
||||||
import {type HTTPRequest} from '../api/HTTPRequest.js';
|
import type {HTTPRequest} from '../api/HTTPRequest.js';
|
||||||
import {type HTTPResponse} from '../api/HTTPResponse.js';
|
import type {HTTPResponse} from '../api/HTTPResponse.js';
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import {
|
import {
|
||||||
Page,
|
Page,
|
||||||
PageEvent,
|
PageEvent,
|
||||||
@ -43,9 +43,9 @@ import {
|
|||||||
} from '../common/ConsoleMessage.js';
|
} from '../common/ConsoleMessage.js';
|
||||||
import {TargetCloseError} from '../common/Errors.js';
|
import {TargetCloseError} from '../common/Errors.js';
|
||||||
import {FileChooser} from '../common/FileChooser.js';
|
import {FileChooser} from '../common/FileChooser.js';
|
||||||
import {type PDFOptions} from '../common/PDFOptions.js';
|
import type {PDFOptions} from '../common/PDFOptions.js';
|
||||||
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {type BindingPayload, type HandleFor} from '../common/types.js';
|
import type {BindingPayload, HandleFor} from '../common/types.js';
|
||||||
import {
|
import {
|
||||||
createClientError,
|
createClientError,
|
||||||
debugError,
|
debugError,
|
||||||
@ -59,7 +59,7 @@ import {
|
|||||||
waitForEvent,
|
waitForEvent,
|
||||||
waitWithTimeout,
|
waitWithTimeout,
|
||||||
} from '../common/util.js';
|
} from '../common/util.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
import {AsyncDisposableStack} from '../util/disposable.js';
|
import {AsyncDisposableStack} from '../util/disposable.js';
|
||||||
@ -70,12 +70,12 @@ import {Binding} from './Binding.js';
|
|||||||
import {CdpCDPSession} from './CDPSession.js';
|
import {CdpCDPSession} from './CDPSession.js';
|
||||||
import {isTargetClosedError} from './Connection.js';
|
import {isTargetClosedError} from './Connection.js';
|
||||||
import {Coverage} from './Coverage.js';
|
import {Coverage} from './Coverage.js';
|
||||||
import {type DeviceRequestPrompt} from './DeviceRequestPrompt.js';
|
import type {DeviceRequestPrompt} from './DeviceRequestPrompt.js';
|
||||||
import {CdpDialog} from './Dialog.js';
|
import {CdpDialog} from './Dialog.js';
|
||||||
import {EmulationManager} from './EmulationManager.js';
|
import {EmulationManager} from './EmulationManager.js';
|
||||||
import {createCdpHandle, releaseObject} from './ExecutionContext.js';
|
import {createCdpHandle, releaseObject} from './ExecutionContext.js';
|
||||||
import {FirefoxTargetManager} from './FirefoxTargetManager.js';
|
import {FirefoxTargetManager} from './FirefoxTargetManager.js';
|
||||||
import {type CdpFrame} from './Frame.js';
|
import type {CdpFrame} from './Frame.js';
|
||||||
import {FrameManager, FrameManagerEvent} from './FrameManager.js';
|
import {FrameManager, FrameManagerEvent} from './FrameManager.js';
|
||||||
import {CdpKeyboard, CdpMouse, CdpTouchscreen} from './Input.js';
|
import {CdpKeyboard, CdpMouse, CdpTouchscreen} from './Input.js';
|
||||||
import {MAIN_WORLD} from './IsolatedWorlds.js';
|
import {MAIN_WORLD} from './IsolatedWorlds.js';
|
||||||
@ -84,7 +84,7 @@ import {
|
|||||||
type Credentials,
|
type Credentials,
|
||||||
type NetworkConditions,
|
type NetworkConditions,
|
||||||
} from './NetworkManager.js';
|
} from './NetworkManager.js';
|
||||||
import {type CdpTarget} from './Target.js';
|
import type {CdpTarget} from './Target.js';
|
||||||
import {TargetManagerEvent} from './TargetManager.js';
|
import {TargetManagerEvent} from './TargetManager.js';
|
||||||
import {Tracing} from './Tracing.js';
|
import {Tracing} from './Tracing.js';
|
||||||
import {WebWorker} from './WebWorker.js';
|
import {WebWorker} from './WebWorker.js';
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type NetworkConditions} from './NetworkManager.js';
|
import type {NetworkConditions} from './NetworkManager.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of network conditions to be used with
|
* A list of network conditions to be used with
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Browser} from '../api/Browser.js';
|
import type {Browser} from '../api/Browser.js';
|
||||||
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
|
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||||
import {
|
import {
|
||||||
type CustomQueryHandler,
|
type CustomQueryHandler,
|
||||||
customQueryHandlers,
|
customQueryHandlers,
|
||||||
|
@ -14,20 +14,20 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import type {Browser} from '../api/Browser.js';
|
import type {Browser} from '../api/Browser.js';
|
||||||
import type {BrowserContext} from '../api/BrowserContext.js';
|
import type {BrowserContext} from '../api/BrowserContext.js';
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {PageEvent, type Page} from '../api/Page.js';
|
import {PageEvent, type Page} from '../api/Page.js';
|
||||||
import {Target, TargetType} from '../api/Target.js';
|
import {Target, TargetType} from '../api/Target.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {type Viewport} from '../common/Viewport.js';
|
import type {Viewport} from '../common/Viewport.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
|
|
||||||
import {CdpCDPSession} from './CDPSession.js';
|
import {CdpCDPSession} from './CDPSession.js';
|
||||||
import {CdpPage} from './Page.js';
|
import {CdpPage} from './Page.js';
|
||||||
import {type TargetManager} from './TargetManager.js';
|
import type {TargetManager} from './TargetManager.js';
|
||||||
import {WebWorker} from './WebWorker.js';
|
import {WebWorker} from './WebWorker.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,12 +14,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import type {EventEmitter, EventType} from '../common/EventEmitter.js';
|
||||||
|
|
||||||
import {type CdpTarget} from './Target.js';
|
import type {CdpTarget} from './Target.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {
|
import {
|
||||||
getReadableAsBuffer,
|
getReadableAsBuffer,
|
||||||
getReadableFromProtocolStream,
|
getReadableFromProtocolStream,
|
||||||
|
@ -13,14 +13,14 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Realm} from '../api/Realm.js';
|
import type {Realm} from '../api/Realm.js';
|
||||||
import {type ConsoleMessageType} from '../common/ConsoleMessage.js';
|
import type {ConsoleMessageType} from '../common/ConsoleMessage.js';
|
||||||
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||||
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
import {TimeoutSettings} from '../common/TimeoutSettings.js';
|
||||||
import {type EvaluateFunc, type HandleFor} from '../common/types.js';
|
import type {EvaluateFunc, HandleFor} from '../common/types.js';
|
||||||
import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js';
|
import {debugError, withSourcePuppeteerURLIfNone} from '../common/util.js';
|
||||||
|
|
||||||
import {ExecutionContext} from './ExecutionContext.js';
|
import {ExecutionContext} from './ExecutionContext.js';
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {type ConnectionTransport} from './ConnectionTransport.js';
|
import type {ConnectionTransport} from './ConnectionTransport.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Product} from './Product.js';
|
import type {Product} from './Product.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines experiment options for Puppeteer.
|
* Defines experiment options for Puppeteer.
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import type Debug from 'debug';
|
||||||
|
|
||||||
import {isNode} from '../environment.js';
|
import {isNode} from '../environment.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
@ -24,11 +26,11 @@ declare global {
|
|||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
let debugModule: typeof import('debug') | null = null;
|
let debugModule: typeof Debug | null = null;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
export async function importDebug(): Promise<typeof import('debug')> {
|
export async function importDebug(): Promise<typeof Debug> {
|
||||||
if (!debugModule) {
|
if (!debugModule) {
|
||||||
debugModule = (await import('debug')).default;
|
debugModule = (await import('debug')).default;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Viewport} from './Viewport.js';
|
import type {Viewport} from './Viewport.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
|
@ -21,7 +21,7 @@ import mitt, {
|
|||||||
} from '../../third_party/mitt/index.js';
|
} from '../../third_party/mitt/index.js';
|
||||||
import {disposeSymbol} from '../util/disposable.js';
|
import {disposeSymbol} from '../util/disposable.js';
|
||||||
|
|
||||||
export {
|
export type {
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
import {type ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import {DisposableStack, disposeSymbol} from '../util/disposable.js';
|
import {DisposableStack, disposeSymbol} from '../util/disposable.js';
|
||||||
|
|
||||||
import {type AwaitableIterable, type HandleFor} from './types.js';
|
import type {AwaitableIterable, HandleFor} from './types.js';
|
||||||
|
|
||||||
const DEFAULT_BATCH_SIZE = 20;
|
const DEFAULT_BATCH_SIZE = 20;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import type PuppeteerUtil from '../injected/injected.js';
|
import type PuppeteerUtil from '../injected/injected.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The SecurityDetails class represents the security details of a
|
* The SecurityDetails class represents the security details of a
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type ElementHandle} from '../api/ElementHandle.js';
|
import type {ElementHandle} from '../api/ElementHandle.js';
|
||||||
import {type JSHandle} from '../api/JSHandle.js';
|
import type {JSHandle} from '../api/JSHandle.js';
|
||||||
import {type Realm} from '../api/Realm.js';
|
import type {Realm} from '../api/Realm.js';
|
||||||
import type {Poller} from '../injected/Poller.js';
|
import type {Poller} from '../injected/Poller.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
import {isErrorLike} from '../util/ErrorLike.js';
|
import {isErrorLike} from '../util/ErrorLike.js';
|
||||||
@ -24,7 +24,7 @@ import {stringifyFunction} from '../util/Function.js';
|
|||||||
|
|
||||||
import {TimeoutError} from './Errors.js';
|
import {TimeoutError} from './Errors.js';
|
||||||
import {LazyArg} from './LazyArg.js';
|
import {LazyArg} from './LazyArg.js';
|
||||||
import {type HandleFor} from './types.js';
|
import type {HandleFor} from './types.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import type FS from 'fs/promises';
|
||||||
import type {Readable} from 'stream';
|
import type {Readable} from 'stream';
|
||||||
|
|
||||||
import type {Protocol} from 'devtools-protocol';
|
import type {Protocol} from 'devtools-protocol';
|
||||||
@ -25,7 +26,7 @@ import {
|
|||||||
type Observable,
|
type Observable,
|
||||||
} from '../../third_party/rxjs/rxjs.js';
|
} from '../../third_party/rxjs/rxjs.js';
|
||||||
import type {CDPSession} from '../api/CDPSession.js';
|
import type {CDPSession} from '../api/CDPSession.js';
|
||||||
import {type Page} from '../api/Page.js';
|
import type {Page} from '../api/Page.js';
|
||||||
import {isNode} from '../environment.js';
|
import {isNode} from '../environment.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
import {Deferred} from '../util/Deferred.js';
|
import {Deferred} from '../util/Deferred.js';
|
||||||
@ -34,7 +35,7 @@ import {isErrorLike} from '../util/ErrorLike.js';
|
|||||||
import {debug} from './Debug.js';
|
import {debug} from './Debug.js';
|
||||||
import {TimeoutError} from './Errors.js';
|
import {TimeoutError} from './Errors.js';
|
||||||
import {EventSubscription} from './EventEmitter.js';
|
import {EventSubscription} from './EventEmitter.js';
|
||||||
import {type Awaitable} from './types.js';
|
import type {Awaitable} from './types.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@ -455,13 +456,11 @@ export async function waitWithTimeout<T>(
|
|||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
let fs: typeof import('fs/promises') | null = null;
|
let fs: typeof FS | null = null;
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
export async function importFSPromises(): Promise<
|
export async function importFSPromises(): Promise<typeof FS> {
|
||||||
typeof import('fs/promises')
|
|
||||||
> {
|
|
||||||
if (!fs) {
|
if (!fs) {
|
||||||
try {
|
try {
|
||||||
fs = await import('fs/promises');
|
fs = await import('fs/promises');
|
||||||
|
@ -23,18 +23,18 @@ import {
|
|||||||
ChromeReleaseChannel as BrowsersChromeReleaseChannel,
|
ChromeReleaseChannel as BrowsersChromeReleaseChannel,
|
||||||
} from '@puppeteer/browsers';
|
} from '@puppeteer/browsers';
|
||||||
|
|
||||||
import {type Browser} from '../api/Browser.js';
|
import type {Browser} from '../api/Browser.js';
|
||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {USE_TAB_TARGET} from '../environment.js';
|
import {USE_TAB_TARGET} from '../environment.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
type BrowserLaunchArgumentOptions,
|
BrowserLaunchArgumentOptions,
|
||||||
type ChromeReleaseChannel,
|
ChromeReleaseChannel,
|
||||||
type PuppeteerNodeLaunchOptions,
|
PuppeteerNodeLaunchOptions,
|
||||||
} from './LaunchOptions.js';
|
} from './LaunchOptions.js';
|
||||||
import {ProductLauncher, type ResolvedLaunchArgs} from './ProductLauncher.js';
|
import {ProductLauncher, type ResolvedLaunchArgs} from './ProductLauncher.js';
|
||||||
import {type PuppeteerNode} from './PuppeteerNode.js';
|
import type {PuppeteerNode} from './PuppeteerNode.js';
|
||||||
import {rm} from './util/fs.js';
|
import {rm} from './util/fs.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,12 +30,12 @@ import {
|
|||||||
import {debugError} from '../common/util.js';
|
import {debugError} from '../common/util.js';
|
||||||
import {assert} from '../util/assert.js';
|
import {assert} from '../util/assert.js';
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
type BrowserLaunchArgumentOptions,
|
BrowserLaunchArgumentOptions,
|
||||||
type PuppeteerNodeLaunchOptions,
|
PuppeteerNodeLaunchOptions,
|
||||||
} from './LaunchOptions.js';
|
} from './LaunchOptions.js';
|
||||||
import {ProductLauncher, type ResolvedLaunchArgs} from './ProductLauncher.js';
|
import {ProductLauncher, type ResolvedLaunchArgs} from './ProductLauncher.js';
|
||||||
import {type PuppeteerNode} from './PuppeteerNode.js';
|
import type {PuppeteerNode} from './PuppeteerNode.js';
|
||||||
import {rm} from './util/fs.js';
|
import {rm} from './util/fs.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {type BrowserConnectOptions} from '../cdp/BrowserConnector.js';
|
import type {BrowserConnectOptions} from '../cdp/BrowserConnector.js';
|
||||||
import {type Product} from '../common/Product.js';
|
import type {Product} from '../common/Product.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Launcher options that only apply to Chrome.
|
* Launcher options that only apply to Chrome.
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
import NodeWebSocket from 'ws';
|
import NodeWebSocket from 'ws';
|
||||||
|
|
||||||
import {type ConnectionTransport} from '../common/ConnectionTransport.js';
|
import type {ConnectionTransport} from '../common/ConnectionTransport.js';
|
||||||
import {packageVersion} from '../generated/version.js';
|
import {packageVersion} from '../generated/version.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user