2025-04-02 06:50:39 -04:00

18 lines
412 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function promisify(fn) {
return function (req, opts) {
return new Promise((resolve, reject) => {
fn.call(this, req, opts, (err, rtn) => {
if (err) {
reject(err);
} else {
resolve(rtn);
}
});
});
};
}
exports.default = promisify;
//# sourceMappingURL=promisify.js.map