tsonik
Version:
A TypeScript client library for the Iconik API based on Swagger documentation
18 lines • 601 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbortError = void 0;
// Mock for p-retry module to avoid ES module issues in Jest
async function mockRetry(fn, options) {
// For testing, just call the function directly without retries
return fn(1);
}
exports.default = mockRetry;
class AbortError extends Error {
constructor(message) {
super(typeof message === 'string' ? message : message.message);
this.name = 'AbortError';
}
}
exports.AbortError = AbortError;
mockRetry.AbortError = AbortError;
//# sourceMappingURL=p-retry.js.map