File: /var/www/vhosts/textpony-prod.2amigos.us/docroot/node_modules/@zmotivat0r/o0/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function oO(promise, options = { retry: 0 }) {
return promise
.then((d) => [undefined, d])
.catch((e) => {
if (options.retry) {
options.attempt =
typeof options.attempt === 'undefined'
? 0
: options.attempt + 1;
if (options.attempt < options.retry) {
return oO(promise, options);
}
}
return [options.err ? options.err : e, undefined];
});
}
exports.oO = oO;
//# sourceMappingURL=index.js.map