puppeteer-core
Advanced tools
Comparing version 22.7.0 to 22.7.1
@@ -1096,3 +1096,2 @@ "use strict"; | ||
const { scrollIntoView = true, clip } = options; | ||
let elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
const page = this.frame.page(); | ||
@@ -1102,5 +1101,4 @@ // Only scroll the element into view if the user wants it. | ||
await this.scrollIntoViewIfNeeded(); | ||
// We measure again just in case. | ||
elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
} | ||
const elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
const [pageLeft, pageTop] = await this.evaluate(() => { | ||
@@ -1107,0 +1105,0 @@ if (!window.visualViewport) { |
@@ -450,5 +450,3 @@ "use strict"; | ||
* ```ts | ||
* // if you don't provide HTMLInputElement here, TS will error | ||
* // as `value` is not on `Element` | ||
* await page.$$eval('input', (elements: HTMLInputElement[]) => { | ||
* await page.$$eval('input', elements => { | ||
* return elements.map(e => e.value); | ||
@@ -465,7 +463,4 @@ * }); | ||
* ```ts | ||
* // The compiler can infer the return type in this case, but if it can't | ||
* // or if you want to be more explicit, provide it as the generic type. | ||
* const allInputValues = await page.$$eval<string[]>( | ||
* 'input', | ||
* (elements: HTMLInputElement[]) => elements.map(e => e.textContent) | ||
* const allInputValues = await page.$$eval('input', elements => | ||
* elements.map(e => e.textContent) | ||
* ); | ||
@@ -472,0 +467,0 @@ * ``` |
/** | ||
* @internal | ||
*/ | ||
export declare const packageVersion = "22.7.0"; | ||
export declare const packageVersion = "22.7.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
*/ | ||
exports.packageVersion = '22.7.0'; | ||
exports.packageVersion = '22.7.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -10,6 +10,6 @@ /** | ||
export declare const PUPPETEER_REVISIONS: Readonly<{ | ||
chrome: "124.0.6367.60"; | ||
'chrome-headless-shell': "124.0.6367.60"; | ||
chrome: "124.0.6367.78"; | ||
'chrome-headless-shell': "124.0.6367.78"; | ||
firefox: "latest"; | ||
}>; | ||
//# sourceMappingURL=revisions.d.ts.map |
@@ -13,6 +13,6 @@ "use strict"; | ||
exports.PUPPETEER_REVISIONS = Object.freeze({ | ||
chrome: '124.0.6367.60', | ||
'chrome-headless-shell': '124.0.6367.60', | ||
chrome: '124.0.6367.78', | ||
'chrome-headless-shell': '124.0.6367.78', | ||
firefox: 'latest', | ||
}); | ||
//# sourceMappingURL=revisions.js.map |
@@ -1093,3 +1093,2 @@ /** | ||
const { scrollIntoView = true, clip } = options; | ||
let elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
const page = this.frame.page(); | ||
@@ -1099,5 +1098,4 @@ // Only scroll the element into view if the user wants it. | ||
await this.scrollIntoViewIfNeeded(); | ||
// We measure again just in case. | ||
elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
} | ||
const elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
const [pageLeft, pageTop] = await this.evaluate(() => { | ||
@@ -1104,0 +1102,0 @@ if (!window.visualViewport) { |
@@ -423,5 +423,3 @@ /** | ||
* ```ts | ||
* // if you don't provide HTMLInputElement here, TS will error | ||
* // as `value` is not on `Element` | ||
* await page.$$eval('input', (elements: HTMLInputElement[]) => { | ||
* await page.$$eval('input', elements => { | ||
* return elements.map(e => e.value); | ||
@@ -438,7 +436,4 @@ * }); | ||
* ```ts | ||
* // The compiler can infer the return type in this case, but if it can't | ||
* // or if you want to be more explicit, provide it as the generic type. | ||
* const allInputValues = await page.$$eval<string[]>( | ||
* 'input', | ||
* (elements: HTMLInputElement[]) => elements.map(e => e.textContent) | ||
* const allInputValues = await page.$$eval('input', elements => | ||
* elements.map(e => e.textContent) | ||
* ); | ||
@@ -445,0 +440,0 @@ * ``` |
/** | ||
* @internal | ||
*/ | ||
export declare const packageVersion = "22.7.0"; | ||
export declare const packageVersion = "22.7.1"; | ||
//# sourceMappingURL=version.d.ts.map |
/** | ||
* @internal | ||
*/ | ||
export const packageVersion = '22.7.0'; | ||
export const packageVersion = '22.7.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -10,6 +10,6 @@ /** | ||
export declare const PUPPETEER_REVISIONS: Readonly<{ | ||
chrome: "124.0.6367.60"; | ||
'chrome-headless-shell': "124.0.6367.60"; | ||
chrome: "124.0.6367.78"; | ||
'chrome-headless-shell': "124.0.6367.78"; | ||
firefox: "latest"; | ||
}>; | ||
//# sourceMappingURL=revisions.d.ts.map |
@@ -10,6 +10,6 @@ /** | ||
export const PUPPETEER_REVISIONS = Object.freeze({ | ||
chrome: '124.0.6367.60', | ||
'chrome-headless-shell': '124.0.6367.60', | ||
chrome: '124.0.6367.78', | ||
'chrome-headless-shell': '124.0.6367.78', | ||
firefox: 'latest', | ||
}); | ||
//# sourceMappingURL=revisions.js.map |
{ | ||
"name": "puppeteer-core", | ||
"version": "22.7.0", | ||
"version": "22.7.1", | ||
"description": "A high-level API to control headless Chrome over the DevTools Protocol", | ||
@@ -122,4 +122,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@puppeteer/browsers": "2.2.2", | ||
"chromium-bidi": "0.5.17", | ||
"@puppeteer/browsers": "2.2.3", | ||
"chromium-bidi": "0.5.19", | ||
"debug": "4.3.4", | ||
@@ -126,0 +126,0 @@ "devtools-protocol": "0.0.1273771", |
@@ -1255,4 +1255,2 @@ /** | ||
let elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
const page = this.frame.page(); | ||
@@ -1263,6 +1261,4 @@ | ||
await this.scrollIntoViewIfNeeded(); | ||
// We measure again just in case. | ||
elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
} | ||
const elementClip = await this.#nonEmptyVisibleBoundingBox(); | ||
@@ -1269,0 +1265,0 @@ const [pageLeft, pageTop] = await this.evaluate(() => { |
/** | ||
* @internal | ||
*/ | ||
export const packageVersion = '22.7.0'; | ||
export const packageVersion = '22.7.1'; |
@@ -11,5 +11,5 @@ /** | ||
export const PUPPETEER_REVISIONS = Object.freeze({ | ||
chrome: '124.0.6367.60', | ||
'chrome-headless-shell': '124.0.6367.60', | ||
chrome: '124.0.6367.78', | ||
'chrome-headless-shell': '124.0.6367.78', | ||
firefox: 'latest', | ||
}); |
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 too big to display
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 too big to display
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 too big to display
Sorry, the diff of this file is too big to display
6499114
133719
+ Added@puppeteer/browsers@2.2.3(transitive)
+ Addedchromium-bidi@0.5.19(transitive)
- Removed@puppeteer/browsers@2.2.2(transitive)
- Removedchromium-bidi@0.5.17(transitive)
Updated@puppeteer/browsers@2.2.3
Updatedchromium-bidi@0.5.19