Skip to content

Commit

Permalink
Release v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 27, 2024
1 parent 0036a8c commit 4e300ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/puppeteer-browser-ready.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! puppeteer-browser-ready v1.3.4 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
//! puppeteer-browser-ready v1.3.5 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License

import { Browser, HTTPResponse, Page } from 'puppeteer';
import { HTMLElement } from 'node-html-parser';
Expand Down
6 changes: 3 additions & 3 deletions dist/puppeteer-browser-ready.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! puppeteer-browser-ready v1.3.4 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
//! puppeteer-browser-ready v1.3.5 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License

import { parse } from 'node-html-parser';
import express from 'express';
Expand Down Expand Up @@ -48,7 +48,7 @@ const browserReady = {
console.log(' ', Date.now() % 100000, label + ':', msg);
const rootInfo = (root) => `${root.constructor.name}/${root.firstChild?.toString().trim()}`;
const web = async (browser) => {
log('Connected', browser.isConnected());
log('Connected', browser.connected);
try {
const page = await browser.newPage();
log('Page....', url);
Expand All @@ -67,7 +67,7 @@ const browserReady = {
return { browser, page, response, status, location, title, html, root };
}
catch (error) {
const status = browser.isConnected() ? 'connected' : 'not connected';
const status = browser.connected ? 'connected' : 'not connected';
console.log('[puppeteer-browser-ready]', settings, status);
console.log(error);
throw error;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppeteer-browser-ready",
"version": "1.3.4",
"version": "1.3.5",
"description": "Simple utility to go to a URL and wait for the HTTP response",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit 4e300ce

Please sign in to comment.