@nuanu-ai/agentbrowse 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,14 +39,14 @@ export class CaptchaSolver {
|
|
|
39
39
|
throw new Error(`CAPTCHA solving timed out after ${Math.ceil(this.taskTimeoutMs / 1000)}s`);
|
|
40
40
|
}
|
|
41
41
|
async createTask(type, siteKey, pageUrl) {
|
|
42
|
-
return this.request('POST', '/
|
|
42
|
+
return this.request('POST', '/tools/captcha/tasks', {
|
|
43
43
|
type,
|
|
44
44
|
site_key: siteKey,
|
|
45
45
|
page_url: pageUrl,
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
async getTaskStatus(taskId) {
|
|
49
|
-
return this.request('GET', `/
|
|
49
|
+
return this.request('GET', `/tools/captcha/tasks/${encodeURIComponent(taskId)}`);
|
|
50
50
|
}
|
|
51
51
|
async request(method, path, body) {
|
|
52
52
|
const url = `${this.apiUrl}${path}`;
|