✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
684 B
JavaScript
36 lines
684 B
JavaScript
'use strict'
|
|
|
|
const Dispatcher = require('./dispatcher')
|
|
const RetryHandler = require('../handler/retry-handler')
|
|
|
|
class RetryAgent extends Dispatcher {
|
|
#agent = null
|
|
#options = null
|
|
constructor (agent, options = {}) {
|
|
super(options)
|
|
this.#agent = agent
|
|
this.#options = options
|
|
}
|
|
|
|
dispatch (opts, handler) {
|
|
const retry = new RetryHandler({
|
|
...opts,
|
|
retryOptions: this.#options
|
|
}, {
|
|
dispatch: this.#agent.dispatch.bind(this.#agent),
|
|
handler
|
|
})
|
|
return this.#agent.dispatch(opts, retry)
|
|
}
|
|
|
|
close () {
|
|
return this.#agent.close()
|
|
}
|
|
|
|
destroy () {
|
|
return this.#agent.destroy()
|
|
}
|
|
}
|
|
|
|
module.exports = RetryAgent
|