diff --git a/dist/puppeteer-browser-ready.d.ts b/dist/puppeteer-browser-ready.d.ts index 3e35927..68b4ada 100644 --- a/dist/puppeteer-browser-ready.d.ts +++ b/dist/puppeteer-browser-ready.d.ts @@ -1,4 +1,4 @@ -//! puppeteer-browser-ready v1.3.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License +//! puppeteer-browser-ready v1.3.1 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License import { Browser, HTTPResponse, Page } from 'puppeteer'; import { HTMLElement } from 'node-html-parser'; diff --git a/dist/puppeteer-browser-ready.js b/dist/puppeteer-browser-ready.js index a9a428c..6b43e7b 100644 --- a/dist/puppeteer-browser-ready.js +++ b/dist/puppeteer-browser-ready.js @@ -1,4 +1,4 @@ -//! puppeteer-browser-ready v1.3.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License +//! puppeteer-browser-ready v1.3.1 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License import { parse } from 'node-html-parser'; import express from 'express'; @@ -46,7 +46,7 @@ const browserReady = { const settings = { ...defaults, ...options }; const log = (label, msg) => settings.verbose && console.log(' ', Date.now() % 100000, label + ':', msg); - const rootInfo = (root) => root.constructor.name + '/' + root.firstChild.toString(); + const rootInfo = (root) => root.constructor.name + '/' + root.firstChild?.toString(); const web = async (browser) => { log('Connected', browser.isConnected()); try { diff --git a/package.json b/package.json index 6755fc1..a764be6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "puppeteer-browser-ready", - "version": "1.3.0", + "version": "1.3.1", "description": "Simple utility to go to a URL and wait for the HTTP response", "license": "MIT", "type": "module",