build: update some build dependencies (#44069)

* build: update some build dependencies (#43882)

* build: update some build dependencies

* build: fix eslint issues after updating

* build: disable ts check on busted js example

* build: update internal types for stricter event handling

* restore url.parse behavior

* fix typing issues

* sigh

* build: update easy deps

* build: skip woa engines check

* build: s/colors/chalk
This commit is contained in:
Samuel Attard 2024-10-01 11:09:28 -07:00 committed by GitHub
parent ac10ddaa48
commit 8af5c6d130
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 2311 additions and 1338 deletions

View file

@ -649,7 +649,7 @@ describe('protocol module', () => {
const { url } = await listen(server);
interceptHttpProtocol('http', (request, callback) => {
const data: Electron.ProtocolResponse = {
url: url,
url,
method: 'POST',
uploadData: {
contentType: 'application/x-www-form-urlencoded',
@ -910,7 +910,7 @@ describe('protocol module', () => {
});
it('allows CORS requests by default', async () => {
await allowsCORSRequests('cors', 200, new RegExp(''), () => {
await allowsCORSRequests('cors', 200, /(?:)/, () => {
const { ipcRenderer } = require('electron');
fetch('cors://myhost').then(function (response) {
ipcRenderer.send('response', response.status);
@ -1695,7 +1695,7 @@ describe('protocol module', () => {
const filePath = path.join(fixturesPath, 'pages', 'form-with-data.html');
await contents.loadFile(filePath);
const loadPromise = new Promise((resolve, reject) => {
const loadPromise = new Promise<void>((resolve, reject) => {
contents.once('did-finish-load', resolve);
contents.once('did-fail-load', (_, errorCode, errorDescription) =>
reject(new Error(`did-fail-load: ${errorCode} ${errorDescription}. See AssertionError for details.`))