Skip to content

Commit

Permalink
Bump puppeteer from 21.9.0 to 22.0.0 in /graylog2-web-interface (#18167)
Browse files Browse the repository at this point in the history
* Bump puppeteer from 21.9.0 to 22.0.0 in /graylog2-web-interface

Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 21.9.0 to 22.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json)
- [Commits](puppeteer/puppeteer@puppeteer-v21.9.0...puppeteer-v22.0.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Adjusting console message logging.

* Fixing up logging, adding route for favicon.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dennis Oelkers <[email protected]>
  • Loading branch information
dependabot[bot] and dennisoelkers authored Feb 19, 2024
1 parent f5a38a4 commit addbb2a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 30 deletions.
11 changes: 7 additions & 4 deletions graylog2-web-interface/checkProductionBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function bootstrapExpress(buildDir, config, pluginMounts, indexHtml = '<html><bo
const app = express();
app.get('/', (req, res) => res.send(indexHtml));
app.get('/assets/config.js', (req, res) => res.send(config));
app.use('/favicon.ico', express.static('public/images/favicon.png'));
app.use('/assets', express.static(buildDir));

Object.entries(pluginMounts)
Expand Down Expand Up @@ -146,10 +147,12 @@ const pageErrors = [];
const consoleLogs = [];

const trackEvent = (evt, arr) => {
console.error(evt);
arr.push(evt);
const msg = { type: evt?.type(), message: evt?.text(), stack: JSON.stringify(evt?.stackTrace(), null, 2) };
arr.push(msg);
};

const formatLog = (msg) => `${msg.type}: ${msg.message}\n${msg.stack}`;

const pagePromise = loadPage(url, (msg) => trackEvent(msg, pageErrors), (msg) => trackEvent(msg, consoleLogs));

pagePromise
Expand All @@ -162,12 +165,12 @@ pagePromise

if (pageErrors.length > 0) {
console.log('Errors:');
console.log(pageErrors);
console.log(pageErrors.map(formatLog).join('\n'));
}

if (consoleLogs.length > 0) {
console.log('Console Logs:');
console.log(consoleLogs);
console.log(consoleLogs.map(formatLog).join('\n'));
}

console.log(`\n${isSuccess ? 'Success' : 'Failure'}: Encountered ${pageErrors.length} errors and ${consoleLogs.length} messages on the console during loading.`);
Expand Down
2 changes: 1 addition & 1 deletion graylog2-web-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"less": "^4.1.2",
"less-loader": "^12.0.0",
"node-fetch": "^2.6.1",
"puppeteer": "^21.0.3",
"puppeteer": "^22.0.0",
"react-bootstrap": "0.33.1",
"style-loader": "3.3.4",
"stylelint-config-graylog": "file:packages/stylelint-config-graylog",
Expand Down
50 changes: 25 additions & 25 deletions graylog2-web-interface/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2601,10 +2601,10 @@
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==

"@puppeteer/browsers@1.9.1":
version "1.9.1"
resolved "https://registry.yarnpkg.com/@puppeteer/browsers/-/browsers-1.9.1.tgz#384ee8b09786f0e8f62b1925e4c492424cb549ee"
integrity sha512-PuvK6xZzGhKPvlx3fpfdM2kYY3P/hB1URtK8wA7XUJ6prn6pp22zvJHu48th0SGcHL9SutbPHrFuQgfXTFobWA==
"@puppeteer/browsers@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@puppeteer/browsers/-/browsers-2.0.0.tgz#3646d2a465c112eac21510d43b21c828612118f9"
integrity sha512-3PS82/5+tnpEaUWonjAFFvlf35QHF15xqyGd34GBa5oP5EPVfFXRsbSxIGYf1M+vZlqBZ3oxT1kRg9OYhtt8ng==
dependencies:
debug "4.3.4"
extract-zip "2.0.1"
Expand Down Expand Up @@ -5090,13 +5090,13 @@ chrome-trace-event@^1.0.2:
dependencies:
tslib "^1.9.0"

[email protected].4:
version "0.5.4"
resolved "https://registry.yarnpkg.com/chromium-bidi/-/chromium-bidi-0.5.4.tgz#dcf60bbc510a0a1d19b35012d7bb53f82bb5f2ba"
integrity sha512-p9CdiHl0xNh4P7oVa44zXgJJw+pvnHXFDB+tVdo25xaPLgQDVf2kQO+TDxD2fp2Evqi7vs/vGRINMzl1qJrWiw==
[email protected].8:
version "0.5.8"
resolved "https://registry.yarnpkg.com/chromium-bidi/-/chromium-bidi-0.5.8.tgz#5053038425c062ed34b9bc973e84e79de0a5cef0"
integrity sha512-blqh+1cEQbHBKmok3rVJkBlBxt9beKBgOsxbFgs7UJcoVbbeZ+K7+6liAsjgpc8l1Xd55cQUy14fXZdGSb4zIw==
dependencies:
mitt "3.0.1"
urlpattern-polyfill "9.0.0"
urlpattern-polyfill "10.0.0"

ci-info@^2.0.0:
version "2.0.0"
Expand Down Expand Up @@ -12354,26 +12354,26 @@ punycode@^2.1.0, punycode@^2.1.1:
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==

puppeteer-core@21.9.0:
version "21.9.0"
resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-21.9.0.tgz#7462d5dd0571cd1e0580cc3729d7951cc6fe2505"
integrity sha512-QgowcczLAoLWlV38s3y3VuEvjJGfKU5rR6Q23GUbiGOaiQi+QpaWQ+aXdzP9LHVSUPmHdAaWhcvMztYSw3f8gQ==
puppeteer-core@22.0.0:
version "22.0.0"
resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-22.0.0.tgz#f46420adac6f7be076a1f7a751c8d829461b55d2"
integrity sha512-S3s91rLde0A86PWVeNY82h+P0fdS7CTiNWAicCVH/bIspRP4nS2PnO5j+VTFqCah0ZJizGzpVPAmxVYbLxTc9w==
dependencies:
"@puppeteer/browsers" "1.9.1"
chromium-bidi "0.5.4"
"@puppeteer/browsers" "2.0.0"
chromium-bidi "0.5.8"
cross-fetch "4.0.0"
debug "4.3.4"
devtools-protocol "0.0.1232444"
ws "8.16.0"

puppeteer@^21.0.3:
version "21.9.0"
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-21.9.0.tgz#ff6cb321f6d43c1f39ba74bbdfccf2b5ef0121af"
integrity sha512-vcLR81Rp+MBrgqhiXZfpwEBbyKTa88Hd+8Al3+emWzcJb9evLLSfUYli0QUqhofPFrXsO2A/dAF9OunyOivL6w==
puppeteer@^22.0.0:
version "22.0.0"
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-22.0.0.tgz#e2eb456c667ffb165079f4fb0b6936dd6c9ccf36"
integrity sha512-zYVnjwJngnSB4dbkWp7DHFSIc3nqHvZzrdHyo9+ugV1nq1Lm8obOMcmCFaGfR3PJs0EmYNz+/skBeO45yvASCQ==
dependencies:
"@puppeteer/browsers" "1.9.1"
"@puppeteer/browsers" "2.0.0"
cosmiconfig "9.0.0"
puppeteer-core "21.9.0"
puppeteer-core "22.0.0"

pure-rand@^6.0.0:
version "6.0.1"
Expand Down Expand Up @@ -15172,10 +15172,10 @@ urix@^0.1.0:
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=

urlpattern-polyfill@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-9.0.0.tgz#bc7e386bb12fd7898b58d1509df21d3c29ab3460"
integrity sha512-WHN8KDQblxd32odxeIgo83rdVDE2bvdkb86it7bMhYZwWKJz0+O0RK/eZiHYnM+zgt/U7hAHOlCQGfjjvSkw2g==
urlpattern-polyfill@10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz#f0a03a97bfb03cdf33553e5e79a2aadd22cac8ec"
integrity sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==

use-callback-ref@^1.3.0:
version "1.3.0"
Expand Down

0 comments on commit addbb2a

Please sign in to comment.