UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

18 lines 352 B
/** * @license * Copyright 2024 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ /** * @internal */ export function createIncrementalIdGenerator() { let id = 0; return () => { if (id === Number.MAX_SAFE_INTEGER) { id = 0; } return ++id; }; } //# sourceMappingURL=incremental-id-generator.js.map