mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: mark internal objects (#8984)
This commit is contained in:
parent
882c7ce63e
commit
181a148269
@ -12,6 +12,9 @@
|
|||||||
// 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.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export const pierceQuerySelector = (
|
export const pierceQuerySelector = (
|
||||||
root: Node,
|
root: Node,
|
||||||
selector: string
|
selector: string
|
||||||
@ -39,6 +42,9 @@ export const pierceQuerySelector = (
|
|||||||
return found;
|
return found;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export const pierceQuerySelectorAll = (
|
export const pierceQuerySelectorAll = (
|
||||||
element: Node,
|
element: Node,
|
||||||
selector: string
|
selector: string
|
||||||
|
@ -84,6 +84,9 @@ export class MutationPoller<T> implements Poller<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export class RAFPoller<T> implements Poller<T> {
|
export class RAFPoller<T> implements Poller<T> {
|
||||||
#fn: () => Promise<T>;
|
#fn: () => Promise<T>;
|
||||||
#promise?: DeferredPromise<T>;
|
#promise?: DeferredPromise<T>;
|
||||||
@ -127,6 +130,10 @@ export class RAFPoller<T> implements Poller<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
|
||||||
export class IntervalPoller<T> implements Poller<T> {
|
export class IntervalPoller<T> implements Poller<T> {
|
||||||
#fn: () => Promise<T>;
|
#fn: () => Promise<T>;
|
||||||
#ms: number;
|
#ms: number;
|
||||||
|
@ -22,6 +22,8 @@ const TRIVIAL_VALUE_INPUT_TYPES = new Set(['checkbox', 'image', 'radio']);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines if the node has a non-trivial value property.
|
* Determines if the node has a non-trivial value property.
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
*/
|
*/
|
||||||
const isNonTrivialValueNode = (node: Node): node is NonTrivialValueNode => {
|
const isNonTrivialValueNode = (node: Node): node is NonTrivialValueNode => {
|
||||||
if (node instanceof HTMLSelectElement) {
|
if (node instanceof HTMLSelectElement) {
|
||||||
|
@ -14,6 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export const xpathQuerySelector = (
|
export const xpathQuerySelector = (
|
||||||
root: Node,
|
root: Node,
|
||||||
selector: string
|
selector: string
|
||||||
@ -28,6 +31,9 @@ export const xpathQuerySelector = (
|
|||||||
return result.singleNodeValue;
|
return result.singleNodeValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export const xpathQuerySelectorAll = (root: Node, selector: string): Node[] => {
|
export const xpathQuerySelectorAll = (root: Node, selector: string): Node[] => {
|
||||||
const doc = root.ownerDocument || document;
|
const doc = root.ownerDocument || document;
|
||||||
const iterator = doc.evaluate(
|
const iterator = doc.evaluate(
|
||||||
|
@ -34,4 +34,7 @@ const PuppeteerUtil = Object.freeze({
|
|||||||
|
|
||||||
type PuppeteerUtil = typeof PuppeteerUtil;
|
type PuppeteerUtil = typeof PuppeteerUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
export default PuppeteerUtil;
|
export default PuppeteerUtil;
|
||||||
|
Loading…
Reference in New Issue
Block a user