puppeteer-browser-ready 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! puppeteer-browser-ready v1.3.
|
|
1
|
+
//! puppeteer-browser-ready v1.3.6 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
|
|
2
2
|
|
|
3
3
|
import { Browser, HTTPResponse, Page } from 'puppeteer';
|
|
4
4
|
import { HTMLElement } from 'node-html-parser';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! puppeteer-browser-ready v1.3.
|
|
1
|
+
//! puppeteer-browser-ready v1.3.6 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
|
|
2
2
|
|
|
3
3
|
import { parse } from 'node-html-parser';
|
|
4
4
|
import express from 'express';
|
|
@@ -48,7 +48,7 @@ const browserReady = {
|
|
|
48
48
|
console.log(' ', Date.now() % 100000, label + ':', msg);
|
|
49
49
|
const rootInfo = (root) => `${root.constructor.name}/${root.firstChild?.toString().trim()}`;
|
|
50
50
|
const web = async (browser) => {
|
|
51
|
-
log('Connected', browser.
|
|
51
|
+
log('Connected', browser.connected);
|
|
52
52
|
try {
|
|
53
53
|
const page = await browser.newPage();
|
|
54
54
|
log('Page....', url);
|
|
@@ -67,7 +67,7 @@ const browserReady = {
|
|
|
67
67
|
return { browser, page, response, status, location, title, html, root };
|
|
68
68
|
}
|
|
69
69
|
catch (error) {
|
|
70
|
-
const status = browser.
|
|
70
|
+
const status = browser.connected ? 'connected' : 'not connected';
|
|
71
71
|
console.log('[puppeteer-browser-ready]', settings, status);
|
|
72
72
|
console.log(error);
|
|
73
73
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "puppeteer-browser-ready",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Simple utility to go to a URL and wait for the HTTP response",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -63,29 +63,29 @@
|
|
|
63
63
|
"puppeteer": "^15 || ^16 || ^17 || ^18 || ^19.7 || ^20 || ^21 || ^22.8 || ^23"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"express": "~4.
|
|
66
|
+
"express": "~4.21",
|
|
67
67
|
"http-terminator": "~3.2",
|
|
68
68
|
"node-html-parser": "~6.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@eslint/js": "~9.
|
|
72
|
-
"@types/express": "~
|
|
71
|
+
"@eslint/js": "~9.12",
|
|
72
|
+
"@types/express": "~5.0",
|
|
73
73
|
"@types/mocha": "~10.0",
|
|
74
|
-
"@types/node": "~22.
|
|
74
|
+
"@types/node": "~22.7",
|
|
75
75
|
"@types/ws": "~8.5",
|
|
76
76
|
"add-dist-header": "~1.4",
|
|
77
77
|
"assert-deep-strict-equal": "~1.2",
|
|
78
78
|
"copy-file-util": "~1.2",
|
|
79
79
|
"copy-folder-util": "~1.1",
|
|
80
|
-
"eslint": "~9.
|
|
80
|
+
"eslint": "~9.12",
|
|
81
81
|
"jshint": "~2.13",
|
|
82
82
|
"mocha": "~10.7",
|
|
83
83
|
"open": "~10.1",
|
|
84
|
-
"puppeteer": "~23.
|
|
84
|
+
"puppeteer": "~23.5",
|
|
85
85
|
"rimraf": "~6.0",
|
|
86
86
|
"run-scripts-util": "~1.3",
|
|
87
|
-
"typescript": "~5.
|
|
88
|
-
"typescript-eslint": "~8.
|
|
87
|
+
"typescript": "~5.6",
|
|
88
|
+
"typescript-eslint": "~8.8",
|
|
89
89
|
"w3c-html-validator": "~1.8"
|
|
90
90
|
}
|
|
91
91
|
}
|