@types/puppeteer
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for puppeteer 1.2 | ||
// Type definitions for puppeteer 1.3 | ||
// Project: https://github.com/GoogleChrome/puppeteer#readme | ||
@@ -97,3 +97,3 @@ // Definitions by: Marvin Hagemeister <https://github.com/marvinhagemeister> | ||
start(options: TracingStartOptions): Promise<void>; | ||
stop(): Promise<void>; | ||
stop(): Promise<Buffer>; | ||
} | ||
@@ -140,2 +140,3 @@ | ||
export type PageEvents = | ||
| "close" | ||
| "console" | ||
@@ -435,2 +436,20 @@ | "dialog" | ||
export interface BoxModel { | ||
/** Content box, represented as an array of {x, y} points. */ | ||
content: Box[]; | ||
/** Padding box, represented as an array of {x, y} points. */ | ||
padding: Box[]; | ||
/** Border box, represented as an array of {x, y} points. */ | ||
border: Box[]; | ||
/** Margin box, represented as an array of {x, y} points. */ | ||
margin: Box[]; | ||
width: number; | ||
height: number; | ||
} | ||
export interface Box { | ||
x: number; | ||
y: number; | ||
} | ||
/** | ||
@@ -461,2 +480,7 @@ * Represents an in-page DOM element. ElementHandles can be created with the page.$ method. | ||
/** | ||
* This method returns boxes of the element, or null if the element is not visible. | ||
* Boxes are represented as an array of points; each Point is an object {x, y}. Box points are sorted clock-wise. | ||
*/ | ||
boxModel(): Promise<BoxModel | null>; | ||
/** | ||
* This method scrolls element into view if needed, and then uses page.mouse to click in the center of the element. | ||
@@ -849,2 +873,4 @@ * If the element is detached from DOM, the method throws an error. | ||
export interface PageEventObj { | ||
/** Emitted when the page closes. */ | ||
close: undefined; | ||
/** | ||
@@ -1069,2 +1095,10 @@ * Emitted when JavaScript within the page calls one of console API methods, e.g. console.log or console.dir. | ||
/** | ||
* Toggles bypassing page's Content-Security-Policy. | ||
* NOTE CSP bypassing happens at the moment of CSP initialization rather then evaluation. | ||
* Usually this means that page.setBypassCSP should be called before navigating to the domain. | ||
* @param enabled sets bypassing of page's Content-Security-Policy. | ||
*/ | ||
setBypassCSP(enabled: boolean): Promise<void>; | ||
/** | ||
* Determines whether cache is enabled on the page. | ||
@@ -1306,2 +1340,4 @@ * @param enabled Whether or not to enable cache on the page. | ||
devtools?: boolean; | ||
/** Connects to the browser over a pipe instead of a WebSocket. Defaults to false. */ | ||
pipe?: boolean; | ||
} | ||
@@ -1308,0 +1344,0 @@ |
{ | ||
"name": "@types/puppeteer", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "TypeScript definitions for puppeteer", | ||
@@ -33,4 +33,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "28c1aa437fed6ef6ae1d667e864272220e39997e5455ca6f93ade2115bf14470", | ||
"typesPublisherContentHash": "14eadb9768f221200433f8e7c8d31601f47cd9acfa6de5533cf2c3896b91c690", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 26 Apr 2018 22:50:08 GMT | ||
* Last updated: Tue, 01 May 2018 16:24:24 GMT | ||
* Dependencies: events, child_process, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
49655
1236