1
0

run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 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 };