1234567891011121314151617181920212223242526272829303132333435363738 |
- const {helper} = require('./lib/helper');
- const api = require('./lib/api');
- for (const className in api) {
-
- if (typeof api[className] === 'function')
- helper.installAsyncStackHooks(api[className]);
- }
- const Puppeteer = require('./lib/Puppeteer');
- const packageJson = require('./package.json');
- const preferredRevision = packageJson.puppeteer.chromium_revision;
- const isPuppeteerCore = packageJson.name === 'puppeteer-core';
- const puppeteer = new Puppeteer(__dirname, preferredRevision, isPuppeteerCore);
- puppeteer._lazyLauncher = undefined;
- module.exports = puppeteer;
|