initial commit

This commit is contained in:
Brandon4466
2025-03-31 04:45:14 -07:00
commit ff59c4c0b8
2298 changed files with 478992 additions and 0 deletions

19
node_modules/stubborn-fs/dist/attemptify.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
/* MAIN */
//FIXME: The return type of these functions is wrong, it doesn't account for returning "undefined", but a correct type cannot be written because generics cannot be extended properly, it seems
const attemptifyAsync = (fn, onError) => {
return function attemptified(...args) {
return fn.apply(undefined, args).catch(onError);
};
};
const attemptifySync = (fn, onError) => {
return function attemptified(...args) {
try {
return fn.apply(undefined, args);
}
catch (error) {
return onError(error);
}
};
};
/* EXPORT */
export { attemptifyAsync, attemptifySync };