puppeteer-core
Advanced tools
Comparing version 13.4.1 to 13.5.0
@@ -150,3 +150,3 @@ "use strict"; | ||
async createIncognitoBrowserContext(options = {}) { | ||
const { proxyServer = '', proxyBypassList = [] } = options; | ||
const { proxyServer, proxyBypassList } = options; | ||
const { browserContextId } = await this._connection.send('Target.createBrowserContext', { | ||
@@ -153,0 +153,0 @@ proxyServer, |
@@ -291,7 +291,9 @@ "use strict"; | ||
.filter((frame) => frame._client === session) | ||
.map((frame) => session.send('Page.createIsolatedWorld', { | ||
.map((frame) => session | ||
.send('Page.createIsolatedWorld', { | ||
frameId: frame._id, | ||
worldName: name, | ||
grantUniveralAccess: true, | ||
}))); | ||
}) | ||
.catch(helper_js_1.debugError))); | ||
} | ||
@@ -298,0 +300,0 @@ _onFrameNavigatedWithinDocument(frameId, url) { |
@@ -20,5 +20,5 @@ "use strict"; | ||
exports.PUPPETEER_REVISIONS = { | ||
chromium: '961656', | ||
chromium: '970485', | ||
firefox: 'latest', | ||
}; | ||
//# sourceMappingURL=revisions.js.map |
@@ -147,3 +147,3 @@ /** | ||
async createIncognitoBrowserContext(options = {}) { | ||
const { proxyServer = '', proxyBypassList = [] } = options; | ||
const { proxyServer, proxyBypassList } = options; | ||
const { browserContextId } = await this._connection.send('Target.createBrowserContext', { | ||
@@ -150,0 +150,0 @@ proxyServer, |
@@ -18,3 +18,3 @@ /** | ||
import { assert } from './assert.js'; | ||
import { helper } from './helper.js'; | ||
import { helper, debugError } from './helper.js'; | ||
import { ExecutionContext, EVALUATION_SCRIPT_URL } from './ExecutionContext.js'; | ||
@@ -289,7 +289,9 @@ import { LifecycleWatcher, } from './LifecycleWatcher.js'; | ||
.filter((frame) => frame._client === session) | ||
.map((frame) => session.send('Page.createIsolatedWorld', { | ||
.map((frame) => session | ||
.send('Page.createIsolatedWorld', { | ||
frameId: frame._id, | ||
worldName: name, | ||
grantUniveralAccess: true, | ||
}))); | ||
}) | ||
.catch(debugError))); | ||
} | ||
@@ -296,0 +298,0 @@ _onFrameNavigatedWithinDocument(frameId, url) { |
@@ -17,5 +17,5 @@ /** | ||
export const PUPPETEER_REVISIONS = { | ||
chromium: '961656', | ||
chromium: '970485', | ||
firefox: 'latest', | ||
}; | ||
//# sourceMappingURL=revisions.js.map |
{ | ||
"name": "puppeteer-core", | ||
"version": "13.4.1", | ||
"version": "13.5.0", | ||
"description": "A high-level API to control headless Chrome over the DevTools Protocol", | ||
@@ -63,3 +63,3 @@ "main": "./cjs-entry-core.js", | ||
"debug": "4.3.3", | ||
"devtools-protocol": "0.0.960912", | ||
"devtools-protocol": "0.0.969999", | ||
"extract-zip": "2.0.1", | ||
@@ -89,3 +89,3 @@ "https-proxy-agent": "5.0.0", | ||
"@types/tar-fs": "2.0.1", | ||
"@types/ws": "8.2.3", | ||
"@types/ws": "8.5.2", | ||
"@typescript-eslint/eslint-plugin": "5.12.1", | ||
@@ -97,3 +97,3 @@ "@typescript-eslint/parser": "5.12.1", | ||
"eslint": "8.9.0", | ||
"eslint-config-prettier": "8.4.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.25.4", | ||
@@ -118,5 +118,5 @@ "eslint-plugin-mocha": "10.0.3", | ||
"text-diff": "1.0.1", | ||
"ts-node": "10.5.0", | ||
"ts-node": "10.7.0", | ||
"typescript": "4.5.5" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # Puppeteer | ||
###### [API](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md) | [FAQ](#faq) | [Contributing](https://github.com/puppeteer/puppeteer/blob/main/CONTRIBUTING.md) | [Troubleshooting](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md) | ||
###### [API](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md) | [FAQ](#faq) | [Contributing](https://github.com/puppeteer/puppeteer/blob/main/CONTRIBUTING.md) | [Troubleshooting](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md) | ||
@@ -43,3 +43,3 @@ > Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the [DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/). Puppeteer runs [headless](https://developers.google.com/web/updates/2017/04/headless-chrome) by default, but can be configured to run full (non-headless) Chrome or Chromium. | ||
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. To skip the download, download into another path, or download a different browser, see [Environment variables](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#environment-variables). | ||
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170MB Mac, ~282MB Linux, ~280MB Win) that is guaranteed to work with the API. To skip the download, download into another path, or download a different browser, see [Environment variables](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#environment-variables). | ||
@@ -69,3 +69,3 @@ ### puppeteer-core | ||
Puppeteer will be familiar to people using other browser testing frameworks. You create an instance | ||
of `Browser`, open pages, and then manipulate them with [Puppeteer's API](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#). | ||
of `Browser`, open pages, and then manipulate them with [Puppeteer's API](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#). | ||
@@ -95,3 +95,3 @@ **Example** - navigating to https://example.com and saving a screenshot as _example.png_: | ||
Puppeteer sets an initial page size to 800×600px, which defines the screenshot size. The page size can be customized with [`Page.setViewport()`](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#pagesetviewportviewport). | ||
Puppeteer sets an initial page size to 800×600px, which defines the screenshot size. The page size can be customized with [`Page.setViewport()`](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#pagesetviewportviewport). | ||
@@ -123,3 +123,3 @@ **Example** - create a PDF. | ||
See [`Page.pdf()`](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#pagepdfoptions) for more information about creating pdfs. | ||
See [`Page.pdf()`](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#pagepdfoptions) for more information about creating pdfs. | ||
@@ -159,3 +159,3 @@ **Example** - evaluate script in the context of the page | ||
See [`Page.evaluate()`](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#pageevaluatepagefunction-args) for more information on `evaluate` and related methods like `evaluateOnNewDocument` and `exposeFunction`. | ||
See [`Page.evaluate()`](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#pageevaluatepagefunction-args) for more information on `evaluate` and related methods like `evaluateOnNewDocument` and `exposeFunction`. | ||
@@ -170,3 +170,3 @@ <!-- [END getstarted] --> | ||
Puppeteer launches Chromium in [headless mode](https://developers.google.com/web/updates/2017/04/headless-chrome). To launch a full version of Chromium, set the [`headless` option](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#puppeteerlaunchoptions) when launching a browser: | ||
Puppeteer launches Chromium in [headless mode](https://developers.google.com/web/updates/2017/04/headless-chrome). To launch a full version of Chromium, set the [`headless` option](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#puppeteerlaunchoptions) when launching a browser: | ||
@@ -187,3 +187,3 @@ ```js | ||
You can also use Puppeteer with Firefox Nightly (experimental support). See [`Puppeteer.launch()`](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#puppeteerlaunchoptions) for more information. | ||
You can also use Puppeteer with Firefox Nightly (experimental support). See [`Puppeteer.launch()`](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#puppeteerlaunchoptions) for more information. | ||
@@ -200,3 +200,3 @@ See [`this article`](https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/) for a description of the differences between Chromium and Chrome. [`This article`](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/chromium_browser_vs_google_chrome.md) describes some differences for Linux users. | ||
- [API Documentation](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md) | ||
- [API Documentation](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md) | ||
- [Examples](https://github.com/puppeteer/puppeteer/tree/main/examples/) | ||
@@ -343,3 +343,3 @@ - [Community list of Puppeteer resources](https://github.com/transitive-bullshit/awesome-puppeteer) | ||
From Puppeteer v2.1.0 onwards you can specify [`puppeteer.launch({product: 'firefox'})`](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#puppeteerlaunchoptions) to run your Puppeteer scripts in Firefox Nightly, without any additional custom patches. While [an older experiment](https://www.npmjs.com/package/puppeteer-firefox) required a patched version of Firefox, [the current approach](https://wiki.mozilla.org/Remote) works with “stock” Firefox. | ||
From Puppeteer v2.1.0 onwards you can specify [`puppeteer.launch({product: 'firefox'})`](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#puppeteerlaunchoptions) to run your Puppeteer scripts in Firefox Nightly, without any additional custom patches. While [an older experiment](https://www.npmjs.com/package/puppeteer-firefox) required a patched version of Firefox, [the current approach](https://wiki.mozilla.org/Remote) works with “stock” Firefox. | ||
@@ -447,3 +447,3 @@ We will continue to collaborate with other browser vendors to bring Puppeteer support to browsers such as Safari. | ||
- Puppeteer is bundled with Chromium — not Chrome — and so by default, it inherits all of [Chromium's media-related limitations](https://www.chromium.org/audio-video). This means that Puppeteer does not support licensed formats such as AAC or H.264. (However, it is possible to force Puppeteer to use a separately-installed version Chrome instead of Chromium via the [`executablePath` option to `puppeteer.launch`](https://github.com/puppeteer/puppeteer/blob/v13.4.1/docs/api.md#puppeteerlaunchoptions). You should only use this configuration if you need an official release of Chrome that supports these media formats.) | ||
- Puppeteer is bundled with Chromium — not Chrome — and so by default, it inherits all of [Chromium's media-related limitations](https://www.chromium.org/audio-video). This means that Puppeteer does not support licensed formats such as AAC or H.264. (However, it is possible to force Puppeteer to use a separately-installed version Chrome instead of Chromium via the [`executablePath` option to `puppeteer.launch`](https://github.com/puppeteer/puppeteer/blob/v13.5.0/docs/api.md#puppeteerlaunchoptions). You should only use this configuration if you need an official release of Chrome that supports these media formats.) | ||
- Since Puppeteer (in all configurations) controls a desktop version of Chromium/Chrome, features that are only supported by the mobile version of Chrome are not supported. This means that Puppeteer [does not support HTTP Live Streaming (HLS)](https://caniuse.com/#feat=http-live-streaming). | ||
@@ -450,0 +450,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2969014
54272
+ Addeddevtools-protocol@0.0.969999(transitive)
- Removeddevtools-protocol@0.0.960912(transitive)
Updateddevtools-protocol@0.0.969999