Remove .gitignore and add dist and node_modules (LFS for .exe)

Made-with: Cursor
This commit is contained in:
Michael-A-Sloan committed 2026-03-11 17:40:35 -04:00
1 parent 1fc4db96c8
commit 048ab8b980
5819 files changed
+1357436 -2

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { isPromise } from './is-promise.js';
export function maybeAsyncResult(getResult, resultHandler, errorHandler = (err) => {
throw err;
}) {
try {
const result = isFunction(getResult) ? getResult() : getResult;
return isPromise(result)
? result.then((result) => resultHandler(result))
: resultHandler(result);
}
catch (err) {
return errorHandler(err);
}
}
function isFunction(arg) {
return typeof arg === 'function';
}