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
This commit is contained in:
parent
15db63e26d
commit
74af96da16
49 changed files with 1797 additions and 1276 deletions
|
@ -709,7 +709,7 @@ describe('chromium features', () => {
|
|||
it('should register for intercepted file scheme', (done) => {
|
||||
const customSession = session.fromPartition('intercept-file');
|
||||
customSession.protocol.interceptBufferProtocol('file', (request, callback) => {
|
||||
let file = url.parse(request.url).pathname!;
|
||||
let file = new URL(request.url).pathname!;
|
||||
if (file[0] === '/' && process.platform === 'win32') file = file.slice(1);
|
||||
|
||||
const content = fs.readFileSync(path.normalize(file));
|
||||
|
@ -750,7 +750,7 @@ describe('chromium features', () => {
|
|||
it('should register for custom scheme', (done) => {
|
||||
const customSession = session.fromPartition('custom-scheme');
|
||||
customSession.protocol.registerFileProtocol(serviceWorkerScheme, (request, callback) => {
|
||||
let file = url.parse(request.url).pathname!;
|
||||
let file = new URL(request.url).pathname!;
|
||||
if (file[0] === '/' && process.platform === 'win32') file = file.slice(1);
|
||||
|
||||
callback({ path: path.normalize(file) } as any);
|
||||
|
@ -2004,7 +2004,7 @@ describe('chromium features', () => {
|
|||
let contents: WebContents;
|
||||
before(() => {
|
||||
protocol.registerFileProtocol(protocolName, (request, callback) => {
|
||||
const parsedUrl = url.parse(request.url);
|
||||
const parsedUrl = new URL(request.url);
|
||||
let filename;
|
||||
switch (parsedUrl.pathname) {
|
||||
case '/localStorage' : filename = 'local_storage.html'; break;
|
||||
|
@ -2459,7 +2459,7 @@ describe('chromium features', () => {
|
|||
it('has user agent', async () => {
|
||||
const server = http.createServer();
|
||||
const { port } = await listen(server);
|
||||
const wss = new ws.Server({ server: server });
|
||||
const wss = new ws.Server({ server });
|
||||
const finished = new Promise<string | undefined>((resolve, reject) => {
|
||||
wss.on('error', reject);
|
||||
wss.on('connection', (ws, upgradeReq) => {
|
||||
|
@ -3444,6 +3444,7 @@ describe('navigator.hid', () => {
|
|||
haveDevices = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
if (foundDevice) {
|
||||
callback(foundDevice.deviceId);
|
||||
|
@ -3491,6 +3492,7 @@ describe('navigator.hid', () => {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
callback();
|
||||
|
@ -3670,6 +3672,7 @@ describe('navigator.usb', () => {
|
|||
haveDevices = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
if (foundDevice) {
|
||||
callback(foundDevice.deviceId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue