Fixed some build options for vite

This commit is contained in:
Simon Martens
2024-12-04 17:28:56 +01:00
parent 7f3e3d1926
commit 34ca6c15bf
892 changed files with 82651 additions and 27 deletions

14
node_modules/unicorn-magic/default.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
export async function delay({seconds, milliseconds} = {}) {
let duration;
if (typeof seconds === 'number') {
duration = seconds * 1000;
} else if (typeof milliseconds === 'number') {
duration = milliseconds;
} else {
throw new TypeError('Expected an object with either `seconds` or `milliseconds`.');
}
return new Promise(resolve => {
setTimeout(resolve, duration);
});
}