mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
chore(deps-dev): bump the dev-dependencies group across 1 directory with 20 updates (#15160)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Piotr Paulski <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Piotr Paulski
parent
63a8c1f4f3
commit
5a3effd057
+5
-5
@@ -3940,7 +3940,7 @@ Combined changelog for puppeteer and puppeteer-core.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- call \_detach on disconnect ([#9807](https://github.com/puppeteer/puppeteer/issues/9807)) ([bc1a04d](https://github.com/puppeteer/puppeteer/commit/bc1a04def8f699ad245c12ec69ac176e3e7e888d))
|
||||
- call _detach on disconnect ([#9807](https://github.com/puppeteer/puppeteer/issues/9807)) ([bc1a04d](https://github.com/puppeteer/puppeteer/commit/bc1a04def8f699ad245c12ec69ac176e3e7e888d))
|
||||
- restore rimraf for puppeteer-core code ([#9815](https://github.com/puppeteer/puppeteer/issues/9815)) ([cefc4ea](https://github.com/puppeteer/puppeteer/commit/cefc4eab4750d2c1209eb36ca44f6963a4a6bf4c))
|
||||
- update troubleshooting guide links in errors ([#9821](https://github.com/puppeteer/puppeteer/issues/9821)) ([0165f06](https://github.com/puppeteer/puppeteer/commit/0165f06deef9e45862fd127a205ade5ad30ddaa3))
|
||||
|
||||
@@ -4490,7 +4490,7 @@ Combined changelog for puppeteer and puppeteer-core.
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- ignore \*.tsbuildinfo ([#8662](https://github.com/puppeteer/puppeteer/issues/8662)) ([edcdf21](https://github.com/puppeteer/puppeteer/commit/edcdf217cefbf31aee5a2f571abac429dd81f3a0))
|
||||
- ignore *.tsbuildinfo ([#8662](https://github.com/puppeteer/puppeteer/issues/8662)) ([edcdf21](https://github.com/puppeteer/puppeteer/commit/edcdf217cefbf31aee5a2f571abac429dd81f3a0))
|
||||
|
||||
## [15.3.2](https://github.com/puppeteer/puppeteer/compare/v15.3.1...v15.3.2) (2022-07-08)
|
||||
|
||||
@@ -4690,7 +4690,7 @@ Combined changelog for puppeteer and puppeteer-core.
|
||||
- disable bfcache in the launcher ([#8196](https://github.com/puppeteer/puppeteer/issues/8196)) ([9ac7318](https://github.com/puppeteer/puppeteer/commit/9ac7318506ac858b3465e9b4ede8ad75fbbcee11)), closes [#8182](https://github.com/puppeteer/puppeteer/issues/8182)
|
||||
- enable page.spec event handler test for firefox ([#8214](https://github.com/puppeteer/puppeteer/issues/8214)) ([2b45027](https://github.com/puppeteer/puppeteer/commit/2b45027d256f85f21a0c824183696b237e00ad33))
|
||||
- forget queuedEventGroup when emitting response in responseReceivedExtraInfo ([#8234](https://github.com/puppeteer/puppeteer/issues/8234)) ([#8239](https://github.com/puppeteer/puppeteer/issues/8239)) ([91a8e73](https://github.com/puppeteer/puppeteer/commit/91a8e73b1196e4128b1e7c25e08080f2faaf3cf7))
|
||||
- forget request will be sent from the \_requestWillBeSentMap list. ([#8226](https://github.com/puppeteer/puppeteer/issues/8226)) ([4b786c9](https://github.com/puppeteer/puppeteer/commit/4b786c904cbfe3f059322292f3b788b8a5ebd9bf))
|
||||
- forget request will be sent from the _requestWillBeSentMap list. ([#8226](https://github.com/puppeteer/puppeteer/issues/8226)) ([4b786c9](https://github.com/puppeteer/puppeteer/commit/4b786c904cbfe3f059322292f3b788b8a5ebd9bf))
|
||||
- ignore favicon requests in page.spec event handler tests ([#8208](https://github.com/puppeteer/puppeteer/issues/8208)) ([04e5c88](https://github.com/puppeteer/puppeteer/commit/04e5c889973432c6163a8539cdec23c0e8726bff))
|
||||
- **network.spec.ts:** typo in the word should ([#8223](https://github.com/puppeteer/puppeteer/issues/8223)) ([e93faad](https://github.com/puppeteer/puppeteer/commit/e93faadc21b7fcb1e03b69c451c28b769f9cde51))
|
||||
|
||||
@@ -4738,14 +4738,14 @@ Combined changelog for puppeteer and puppeteer-core.
|
||||
- change kill to signal the whole process group to terminate ([#6859](https://github.com/puppeteer/puppeteer/issues/6859)) ([0eb9c78](https://github.com/puppeteer/puppeteer/commit/0eb9c7861717ebba7012c03e76b7a46063e4e5dd))
|
||||
- element screenshot issue in headful mode ([#8018](https://github.com/puppeteer/puppeteer/issues/8018)) ([5346e70](https://github.com/puppeteer/puppeteer/commit/5346e70ffc15b33c1949657cf1b465f1acc5d84d)), closes [#7999](https://github.com/puppeteer/puppeteer/issues/7999)
|
||||
- ensure dom binding is not called after detach ([#8024](https://github.com/puppeteer/puppeteer/issues/8024)) ([5c308b0](https://github.com/puppeteer/puppeteer/commit/5c308b0704123736ddb085f97596c201ea18cf4a)), closes [#7814](https://github.com/puppeteer/puppeteer/issues/7814)
|
||||
- use both \_\_dirname and require.resolve to support different bundlers ([#8046](https://github.com/puppeteer/puppeteer/issues/8046)) ([e6a6295](https://github.com/puppeteer/puppeteer/commit/e6a6295d9a7480bb59ee58a2cc7785171fa0fa2c)), closes [#8044](https://github.com/puppeteer/puppeteer/issues/8044)
|
||||
- use both __dirname and require.resolve to support different bundlers ([#8046](https://github.com/puppeteer/puppeteer/issues/8046)) ([e6a6295](https://github.com/puppeteer/puppeteer/commit/e6a6295d9a7480bb59ee58a2cc7785171fa0fa2c)), closes [#8044](https://github.com/puppeteer/puppeteer/issues/8044)
|
||||
|
||||
## [13.3.2](https://github.com/puppeteer/puppeteer/compare/v13.3.1...v13.3.2) (2022-02-14)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- always use ENV executable path when present ([#7985](https://github.com/puppeteer/puppeteer/issues/7985)) ([6d6ea9b](https://github.com/puppeteer/puppeteer/commit/6d6ea9bf59daa3fb851b3da8baa27887e0aa2c28))
|
||||
- use require.resolve instead of \_\_dirname ([#8003](https://github.com/puppeteer/puppeteer/issues/8003)) ([bbb186d](https://github.com/puppeteer/puppeteer/commit/bbb186d88cb99e4914299c983c822fa41a80f356))
|
||||
- use require.resolve instead of __dirname ([#8003](https://github.com/puppeteer/puppeteer/issues/8003)) ([bbb186d](https://github.com/puppeteer/puppeteer/commit/bbb186d88cb99e4914299c983c822fa41a80f356))
|
||||
|
||||
## [13.3.1](https://github.com/puppeteer/puppeteer/compare/v13.3.0...v13.3.1) (2022-02-10)
|
||||
|
||||
|
||||
+5
-5
@@ -1289,7 +1289,7 @@ Valid options to configure PDF generation via [Page.pdf()](./puppeteer.page.pdf.
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<span id="permissiondescriptor_2">[PermissionDescriptor_2](./puppeteer.permissiondescriptor_2.md)</span>
|
||||
<span id="permissiondescriptor_2">[PermissionDescriptor\_2](./puppeteer.permissiondescriptor_2.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -1358,7 +1358,7 @@ Required response data to fulfill a request with.
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<span id="screenorientation_2">[ScreenOrientation_2](./puppeteer.screenorientation_2.md)</span>
|
||||
<span id="screenorientation_2">[ScreenOrientation\_2](./puppeteer.screenorientation_2.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -1555,7 +1555,7 @@ Description
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
<span id="default_intercept_resolution_priority">[DEFAULT_INTERCEPT_RESOLUTION_PRIORITY](./puppeteer.default_intercept_resolution_priority.md)</span>
|
||||
<span id="default_intercept_resolution_priority">[DEFAULT\_INTERCEPT\_RESOLUTION\_PRIORITY](./puppeteer.default_intercept_resolution_priority.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -1701,7 +1701,7 @@ Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-wes
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<span id="cookiesamesite_2">[CookieSameSite_2](./puppeteer.cookiesamesite_2.md)</span>
|
||||
<span id="cookiesamesite_2">[CookieSameSite\_2](./puppeteer.cookiesamesite_2.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -1925,7 +1925,7 @@ in favor of .
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<span id="permissionstate_2">[PermissionState_2](./puppeteer.permissionstate_2.md)</span>
|
||||
<span id="permissionstate_2">[PermissionState\_2](./puppeteer.permissionstate_2.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ sidebar_label: CDPEvents
|
||||
|
||||
```typescript
|
||||
export type CDPEvents = {
|
||||
[Property in keyof ProtocolMapping.Events]: ProtocolMapping.Events[Property][0];
|
||||
[
|
||||
Property in keyof ProtocolMapping.Events
|
||||
]: ProtocolMapping.Events[Property][0];
|
||||
};
|
||||
```
|
||||
|
||||
@@ -8,8 +8,5 @@ sidebar_label: ChromeReleaseChannel
|
||||
|
||||
```typescript
|
||||
export type ChromeReleaseChannel =
|
||||
| 'chrome'
|
||||
| 'chrome-beta'
|
||||
| 'chrome-canary'
|
||||
| 'chrome-dev';
|
||||
'chrome' | 'chrome-beta' | 'chrome-canary' | 'chrome-dev';
|
||||
```
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: CookieSameSite_2
|
||||
---
|
||||
|
||||
# CookieSameSite_2 type
|
||||
# CookieSameSite\_2 type
|
||||
|
||||
Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: DEFAULT_INTERCEPT_RESOLUTION_PRIORITY
|
||||
---
|
||||
|
||||
# DEFAULT_INTERCEPT_RESOLUTION_PRIORITY variable
|
||||
# DEFAULT\_INTERCEPT\_RESOLUTION\_PRIORITY variable
|
||||
|
||||
The default cooperative request interception resolution priority
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: PermissionDescriptor_2
|
||||
---
|
||||
|
||||
# PermissionDescriptor_2 interface
|
||||
# PermissionDescriptor\_2 interface
|
||||
|
||||
### Signature
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: PermissionState_2
|
||||
---
|
||||
|
||||
# PermissionState_2 type
|
||||
# PermissionState\_2 type
|
||||
|
||||
### Signature
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@ sidebar_label: Predicate
|
||||
|
||||
```typescript
|
||||
export type Predicate<From, To extends From = From> =
|
||||
| ((value: From) => value is To)
|
||||
| ((value: From) => Awaitable<boolean>);
|
||||
((value: From) => value is To) | ((value: From) => Awaitable<boolean>);
|
||||
```
|
||||
|
||||
**References:** [Awaitable](./puppeteer.awaitable.md)
|
||||
|
||||
@@ -8,8 +8,5 @@ sidebar_label: ProtocolLifeCycleEvent
|
||||
|
||||
```typescript
|
||||
export type ProtocolLifeCycleEvent =
|
||||
| 'load'
|
||||
| 'DOMContentLoaded'
|
||||
| 'networkIdle'
|
||||
| 'networkAlmostIdle';
|
||||
'load' | 'DOMContentLoaded' | 'networkIdle' | 'networkAlmostIdle';
|
||||
```
|
||||
|
||||
@@ -189,7 +189,7 @@ Puppeteer can also be used to control the Chrome browser, but it works best with
|
||||
|
||||
</td><td>
|
||||
|
||||
Removes all non-current Firefox and Chrome binaries in the cache directory identified by the provided Puppeteer configuration. The current browser version is determined by resolving PUPPETEER_REVISIONS from Puppeteer unless `configuration.browserRevision` is provided.
|
||||
Removes all non-current Firefox and Chrome binaries in the cache directory identified by the provided Puppeteer configuration. The current browser version is determined by resolving PUPPETEER\_REVISIONS from Puppeteer unless `configuration.browserRevision` is provided.
|
||||
|
||||
**Remarks:**
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ sidebar_label: PuppeteerNode.trimCache
|
||||
|
||||
# PuppeteerNode.trimCache() method
|
||||
|
||||
Removes all non-current Firefox and Chrome binaries in the cache directory identified by the provided Puppeteer configuration. The current browser version is determined by resolving PUPPETEER_REVISIONS from Puppeteer unless `configuration.browserRevision` is provided.
|
||||
Removes all non-current Firefox and Chrome binaries in the cache directory identified by the provided Puppeteer configuration. The current browser version is determined by resolving PUPPETEER\_REVISIONS from Puppeteer unless `configuration.browserRevision` is provided.
|
||||
|
||||
### Signature
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: ScreenOrientation_2
|
||||
---
|
||||
|
||||
# ScreenOrientation_2 interface
|
||||
# ScreenOrientation\_2 interface
|
||||
|
||||
### Signature
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ Description
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
BACKGROUND_PAGE
|
||||
BACKGROUND\_PAGE
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -71,7 +71,7 @@ PAGE
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
SERVICE_WORKER
|
||||
SERVICE\_WORKER
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -82,7 +82,7 @@ SERVICE_WORKER
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
SHARED_WORKER
|
||||
SHARED\_WORKER
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ LINUX
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
LINUX_ARM
|
||||
LINUX\_ARM
|
||||
|
||||
</td><td>
|
||||
|
||||
@@ -62,7 +62,7 @@ MAC
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
MAC_ARM
|
||||
MAC\_ARM
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: CDP_WEBSOCKET_ENDPOINT_REGEX
|
||||
---
|
||||
|
||||
# CDP_WEBSOCKET_ENDPOINT_REGEX variable
|
||||
# CDP\_WEBSOCKET\_ENDPOINT\_REGEX variable
|
||||
|
||||
### Signature
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sidebar_label: WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX
|
||||
---
|
||||
|
||||
# WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX variable
|
||||
# WEBDRIVER\_BIDI\_WEBSOCKET\_ENDPOINT\_REGEX variable
|
||||
|
||||
### Signature
|
||||
|
||||
|
||||
@@ -542,14 +542,14 @@ Description
|
||||
</th></tr></thead>
|
||||
<tbody><tr><td>
|
||||
|
||||
<span id="cdp_websocket_endpoint_regex">[CDP_WEBSOCKET_ENDPOINT_REGEX](./browsers.cdp_websocket_endpoint_regex.md)</span>
|
||||
<span id="cdp_websocket_endpoint_regex">[CDP\_WEBSOCKET\_ENDPOINT\_REGEX](./browsers.cdp_websocket_endpoint_regex.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
|
||||
<span id="webdriver_bidi_websocket_endpoint_regex">[WEBDRIVER_BIDI_WEBSOCKET_ENDPOINT_REGEX](./browsers.webdriver_bidi_websocket_endpoint_regex.md)</span>
|
||||
<span id="webdriver_bidi_websocket_endpoint_regex">[WEBDRIVER\_BIDI\_WEBSOCKET\_ENDPOINT\_REGEX](./browsers.webdriver_bidi_websocket_endpoint_regex.md)</span>
|
||||
|
||||
</td><td>
|
||||
|
||||
|
||||
Generated
+1488
-1643
File diff suppressed because it is too large
Load Diff
+17
-13
@@ -163,13 +163,14 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@actions/core": "3.0.1",
|
||||
"@babel/plugin-transform-class-properties": "7.29.7",
|
||||
"@babel/plugin-transform-class-static-block": "7.29.7",
|
||||
"@babel/plugin-transform-dynamic-import": "7.29.7",
|
||||
"@babel/plugin-transform-modules-commonjs": "7.29.7",
|
||||
"@babel/plugin-transform-private-methods": "7.29.7",
|
||||
"@babel/plugin-transform-private-property-in-object": "7.29.7",
|
||||
"@microsoft/api-extractor": "7.58.7",
|
||||
"@babel/core": "8.0.1",
|
||||
"@babel/plugin-transform-class-properties": "8.0.1",
|
||||
"@babel/plugin-transform-class-static-block": "8.0.1",
|
||||
"@babel/plugin-transform-dynamic-import": "8.0.1",
|
||||
"@babel/plugin-transform-modules-commonjs": "8.0.1",
|
||||
"@babel/plugin-transform-private-methods": "8.0.1",
|
||||
"@babel/plugin-transform-private-property-in-object": "8.0.1",
|
||||
"@microsoft/api-extractor": "7.58.9",
|
||||
"@rollup/plugin-babel": "7.1.0",
|
||||
"@rollup/plugin-node-resolve": "16.0.3",
|
||||
"@stylistic/eslint-plugin": "5.10.0",
|
||||
@@ -177,7 +178,7 @@
|
||||
"@types/node": "22.13.10",
|
||||
"@types/semver": "7.7.1",
|
||||
"@types/sinon": "21.0.1",
|
||||
"typescript-eslint": "8.60.1",
|
||||
"typescript-eslint": "8.62.0",
|
||||
"esbuild": "0.28.1",
|
||||
"eslint-config-prettier": "10.1.8",
|
||||
"eslint-import-resolver-typescript": "4.4.5",
|
||||
@@ -189,24 +190,27 @@
|
||||
"eslint": "9.39.4",
|
||||
"execa": "9.6.1",
|
||||
"expect": "30.4.1",
|
||||
"globals": "17.6.0",
|
||||
"globals": "17.7.0",
|
||||
"hereby": "1.15.1",
|
||||
"license-checker": "25.0.1",
|
||||
"mocha": "11.7.6",
|
||||
"prettier": "3.8.3",
|
||||
"rollup": "4.61.1",
|
||||
"semver": "7.8.2",
|
||||
"prettier": "3.9.1",
|
||||
"rollup": "4.62.2",
|
||||
"semver": "7.8.5",
|
||||
"sinon": "22.0.0",
|
||||
"source-map-support": "0.5.21",
|
||||
"spdx-satisfies": "6.0.0",
|
||||
"tsd": "0.33.0",
|
||||
"typescript": "6.0.3",
|
||||
"wireit": "0.14.12",
|
||||
"wireit": "0.14.13",
|
||||
"yargs": "18.0.0"
|
||||
},
|
||||
"overrides": {
|
||||
"@microsoft/api-extractor": {
|
||||
"typescript": "$typescript"
|
||||
},
|
||||
"@rollup/plugin-babel": {
|
||||
"@babel/core": "$@babel/core"
|
||||
}
|
||||
},
|
||||
"workspaces": [
|
||||
|
||||
@@ -108,8 +108,7 @@ export async function getLastKnownGoodReleaseForMilestone(
|
||||
milestones: Record<string, {version: string; revision: string}>;
|
||||
};
|
||||
return data.milestones[milestone] as
|
||||
| {version: string; revision: string}
|
||||
| undefined;
|
||||
{version: string; revision: string} | undefined;
|
||||
}
|
||||
|
||||
export async function getLastKnownGoodReleaseForBuild(
|
||||
@@ -124,8 +123,7 @@ export async function getLastKnownGoodReleaseForBuild(
|
||||
builds: Record<string, {version: string; revision: string}>;
|
||||
};
|
||||
return data.builds[buildPrefix] as
|
||||
| {version: string; revision: string}
|
||||
| undefined;
|
||||
{version: string; revision: string} | undefined;
|
||||
}
|
||||
|
||||
export async function resolveBuildId(
|
||||
|
||||
@@ -79,8 +79,7 @@ export interface InstallOptions {
|
||||
* used.
|
||||
*/
|
||||
downloadProgressCallback?:
|
||||
| 'default'
|
||||
| ((downloadedBytes: number, totalBytes: number) => void);
|
||||
'default' | ((downloadedBytes: number, totalBytes: number) => void);
|
||||
/**
|
||||
* Determines the host that will be used for downloading.
|
||||
*
|
||||
|
||||
@@ -58,8 +58,8 @@
|
||||
"rxjs": "7.8.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular/cli": "^22.0.0",
|
||||
"@schematics/angular": "22.0.0"
|
||||
"@angular/cli": "^22.0.4",
|
||||
"@schematics/angular": "22.0.4"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
|
||||
@@ -156,11 +156,11 @@
|
||||
"ws": "^8.21.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "0.1.43",
|
||||
"@types/chrome": "0.2.0",
|
||||
"@types/node": "^18.17.15",
|
||||
"@types/ws": "8.18.1",
|
||||
"mitt": "3.0.1",
|
||||
"parsel-js": "1.2.2",
|
||||
"parsel-js": "1.2.3",
|
||||
"rxjs": "^7.8.2",
|
||||
"urlpattern-polyfill": "10.1.0"
|
||||
}
|
||||
|
||||
@@ -150,8 +150,7 @@ export abstract class BrowserContext extends EventEmitter<BrowserContextEvents>
|
||||
* @internal
|
||||
*/
|
||||
waitForScreenshotOperations():
|
||||
| Promise<InstanceType<typeof Mutex.Guard>>
|
||||
| undefined {
|
||||
Promise<InstanceType<typeof Mutex.Guard>> | undefined {
|
||||
return this.#pageScreenshotMutex?.acquire();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ import {EventEmitter, type EventType} from '../common/EventEmitter.js';
|
||||
* @public
|
||||
*/
|
||||
export type CDPEvents = {
|
||||
[Property in keyof ProtocolMapping.Events]: ProtocolMapping.Events[Property][0];
|
||||
[
|
||||
Property in keyof ProtocolMapping.Events
|
||||
]: ProtocolMapping.Events[Property][0];
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -176,8 +176,7 @@ export abstract class Realm {
|
||||
signal,
|
||||
},
|
||||
pageFunction as unknown as
|
||||
| ((...args: unknown[]) => Promise<Awaited<ReturnType<Func>>>)
|
||||
| string,
|
||||
((...args: unknown[]) => Promise<Awaited<ReturnType<Func>>>) | string,
|
||||
...args,
|
||||
);
|
||||
return await waitTask.result;
|
||||
|
||||
@@ -862,8 +862,7 @@ export class FunctionLocator<T> extends Locator<T> {
|
||||
* @public
|
||||
*/
|
||||
export type Predicate<From, To extends From = From> =
|
||||
| ((value: From) => value is To)
|
||||
| ((value: From) => Awaitable<boolean>);
|
||||
((value: From) => value is To) | ((value: From) => Awaitable<boolean>);
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
||||
@@ -231,9 +231,7 @@ export class WindowRealm extends Realm {
|
||||
* @internal
|
||||
*/
|
||||
export type DedicatedWorkerOwnerRealm =
|
||||
| DedicatedWorkerRealm
|
||||
| SharedWorkerRealm
|
||||
| WindowRealm;
|
||||
DedicatedWorkerRealm | SharedWorkerRealm | WindowRealm;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -47,10 +47,7 @@ export type PuppeteerLifeCycleEvent =
|
||||
* @public
|
||||
*/
|
||||
export type ProtocolLifeCycleEvent =
|
||||
| 'load'
|
||||
| 'DOMContentLoaded'
|
||||
| 'networkIdle'
|
||||
| 'networkAlmostIdle';
|
||||
'load' | 'DOMContentLoaded' | 'networkIdle' | 'networkAlmostIdle';
|
||||
|
||||
const puppeteerToProtocolLifecycle = new Map<
|
||||
PuppeteerLifeCycleEvent,
|
||||
|
||||
@@ -36,8 +36,7 @@ export class CdpTarget extends Target {
|
||||
#targetInfo: Protocol.Target.TargetInfo;
|
||||
#targetManager?: TargetManager;
|
||||
#sessionFactory:
|
||||
| ((isAutoAttachEmulated: boolean) => Promise<CdpCDPSession>)
|
||||
| undefined;
|
||||
((isAutoAttachEmulated: boolean) => Promise<CdpCDPSession>) | undefined;
|
||||
#childTargets = new Set<CdpTarget>();
|
||||
_initializedDeferred = Deferred.create<InitializationStatus>();
|
||||
_isClosedDeferred = Deferred.create<void>();
|
||||
@@ -57,8 +56,7 @@ export class CdpTarget extends Target {
|
||||
browserContext: BrowserContext | undefined,
|
||||
targetManager: TargetManager | undefined,
|
||||
sessionFactory:
|
||||
| ((isAutoAttachEmulated: boolean) => Promise<CdpCDPSession>)
|
||||
| undefined,
|
||||
((isAutoAttachEmulated: boolean) => Promise<CdpCDPSession>) | undefined,
|
||||
) {
|
||||
super();
|
||||
this.#session = session;
|
||||
|
||||
@@ -42,10 +42,7 @@ export interface SupportedWebDriverCapabilities {
|
||||
* @public
|
||||
*/
|
||||
export type ChromeReleaseChannel =
|
||||
| 'chrome'
|
||||
| 'chrome-beta'
|
||||
| 'chrome-canary'
|
||||
| 'chrome-dev';
|
||||
'chrome' | 'chrome-beta' | 'chrome-canary' | 'chrome-dev';
|
||||
|
||||
/**
|
||||
* Generic browser options that can be passed when launching any browser or when
|
||||
|
||||
@@ -79,14 +79,10 @@ export function getBrowserSetting(
|
||||
browser: 'chrome' | 'chrome-headless-shell' | 'firefox',
|
||||
configuration: Configuration,
|
||||
defaultConfig:
|
||||
| ChromeSettings
|
||||
| ChromeHeadlessShellSettings
|
||||
| FirefoxSettings = {},
|
||||
ChromeSettings | ChromeHeadlessShellSettings | FirefoxSettings = {},
|
||||
): ChromeSettings | ChromeHeadlessShellSettings | FirefoxSettings {
|
||||
const browserSetting:
|
||||
| ChromeSettings
|
||||
| ChromeHeadlessShellSettings
|
||||
| FirefoxSettings = {};
|
||||
ChromeSettings | ChromeHeadlessShellSettings | FirefoxSettings = {};
|
||||
const browserEnvName = browser.replaceAll('-', '_').toUpperCase();
|
||||
|
||||
browserSetting.version =
|
||||
|
||||
@@ -65,15 +65,12 @@ const product =
|
||||
process.env['PRODUCT'] || process.env['PUPPETEER_BROWSER'] || 'chrome';
|
||||
|
||||
const headless = (process.env['HEADLESS'] || 'true').trim().toLowerCase() as
|
||||
| 'true'
|
||||
| 'false'
|
||||
| 'shell';
|
||||
'true' | 'false' | 'shell';
|
||||
export const isHeadless = headless === 'true' || headless === 'shell';
|
||||
const isFirefox = product === 'firefox';
|
||||
const isChrome = product === 'chrome';
|
||||
const protocol = (process.env['PUPPETEER_PROTOCOL'] || 'cdp') as
|
||||
| 'cdp'
|
||||
| 'webDriverBiDi';
|
||||
'cdp' | 'webDriverBiDi';
|
||||
const pipeTransport = process.env['PUPPETEER_PIPE'] === 'true';
|
||||
|
||||
let extraLaunchOptions = {};
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/api-documenter": "7.30.5",
|
||||
"@microsoft/api-documenter": "7.30.7",
|
||||
"@microsoft/api-extractor-model": "7.33.8",
|
||||
"@microsoft/tsdoc": "0.16.0",
|
||||
"@rushstack/node-core-library": "5.22.0"
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@swc/core": "1.15.40",
|
||||
"@swc/core": "1.15.43",
|
||||
"@types/doctrine": "0.0.9",
|
||||
"@types/source-map-support": "0.5.10",
|
||||
"@types/yargs": "17.0.33",
|
||||
"acorn": "8.16.0",
|
||||
"acorn": "8.17.0",
|
||||
"doctrine": "3.0.0",
|
||||
"glob": "13.0.6",
|
||||
"package-directory": "8.2.0",
|
||||
|
||||
@@ -59,12 +59,13 @@ pattern to achieve.
|
||||
Pattern are defined with the use of `*` (using greedy method).
|
||||
|
||||
Examples:
|
||||
| Pattern | Description | Example Pattern | Example match |
|
||||
|------------------------|---------------------------------------------------------------------------------------------|-----------------------------------|-------------------------------------------------------------------------------------------------------------------------|
|
||||
| `*` | Match all tests | - | - |
|
||||
| `[test.spec] *` | Matches tests for the given file | `[jshandle.spec] *` | `[jshandle] JSHandle JSHandle.toString should work for primitives` |
|
||||
| `[test.spec] <text> *` | Matches tests with for a given test with a specific prefixed test (usually a describe node) | `[page.spec] Page Page.goto *` | `[page.spec] Page Page.goto should work`,<br>`[page.spec] Page Page.goto should work with anchor navigation` |
|
||||
| `[test.spec] * <text>` | Matches test with a surfix | `[navigation.spec] * should work` | `[navigation.spec] navigation Page.goto should work`,<br>`[navigation.spec] navigation Page.waitForNavigation should work` |
|
||||
|
||||
| Pattern | Description | Example Pattern | Example match |
|
||||
| ---------------------- | ------------------------------------------------------------------------------------------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `*` | Match all tests | - | - |
|
||||
| `[test.spec] *` | Matches tests for the given file | `[jshandle.spec] *` | `[jshandle] JSHandle JSHandle.toString should work for primitives` |
|
||||
| `[test.spec] <text> *` | Matches tests with for a given test with a specific prefixed test (usually a describe node) | `[page.spec] Page Page.goto *` | `[page.spec] Page Page.goto should work`,<br>`[page.spec] Page Page.goto should work with anchor navigation` |
|
||||
| `[test.spec] * <text>` | Matches test with a surfix | `[navigation.spec] * should work` | `[navigation.spec] navigation Page.goto should work`,<br>`[navigation.spec] navigation Page.waitForNavigation should work` |
|
||||
|
||||
## Updating Expectations
|
||||
|
||||
|
||||
Reference in New Issue
Block a user