FIXED FAULTY PACKAGE.JSON REQUIREMENTSgit add -A! UPDATE RIGHT NOWgit add -A!

This commit is contained in:
eetnaviation
2024-04-04 18:02:21 +03:00
parent 7030d883e3
commit d72dbaf1cc
1483 changed files with 1 additions and 250218 deletions

View File

@ -1,16 +0,0 @@
import utils from "../utils.js";
const callbackify = (fn, reducer) => {
return utils.isAsyncFn(fn) ? function (...args) {
const cb = args.pop();
fn.apply(this, args).then((value) => {
try {
reducer ? cb(null, ...reducer(value)) : cb(null, value);
} catch (err) {
cb(err);
}
}, cb);
} : fn;
}
export default callbackify;