Bump packages to fix linter

This commit is contained in:
Henry Mercer 2023-01-18 20:50:03 +00:00
parent ed9506bbaf
commit 0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions

View file

@ -156,7 +156,7 @@ function broadcastMessage(data) {
}
async function loadFactory() {
const {default: factory} = await import(workerData.filename); // eslint-disable-line node/no-unsupported-features/es-syntax
const {default: factory} = await import(workerData.filename);
return factory;
}
@ -166,7 +166,8 @@ let signalAvailable = () => {
};
let fatal;
loadFactory(workerData.filename).then(factory => {
try {
const factory = await loadFactory(workerData.filename);
if (typeof factory !== 'function') {
throw new TypeError(`Missing default factory function export for shared worker plugin at ${workerData.filename}`);
}
@ -236,14 +237,12 @@ loadFactory(workerData.filename).then(factory => {
};
},
});
}).catch(error => {
if (fatal === undefined) {
fatal = error;
}
}).finally(() => {
} catch (error) {
fatal = fatal ?? error;
} finally {
if (fatal !== undefined) {
process.nextTick(() => {
throw fatal;
});
}
});
}