@antiadmin/anticaptchaofficial
Advanced tools
Comparing version 1.0.46 to 1.0.47
17
index.js
@@ -34,3 +34,4 @@ | ||
hcaptchaUserAgent: null | ||
hcaptchaUserAgent: null, | ||
hcaptchaRespKey: null | ||
@@ -307,2 +308,4 @@ }, | ||
if (typeof userAgent === "undefined") userAgent = ''; | ||
this.settings.hcaptchaUserAgent = null; | ||
this.settings.hcaptchaRespKey = null; | ||
const taskPayLoad = { | ||
@@ -333,2 +336,5 @@ type: 'HCaptchaTaskProxyless', | ||
} | ||
if (solution.respKey) { | ||
this.settings.hcaptchaRespKey = solution.respKey; | ||
} | ||
return solution.gRecaptchaResponse; | ||
@@ -371,2 +377,4 @@ } else { | ||
} | ||
this.settings.hcaptchaUserAgent = null; | ||
this.settings.hcaptchaRespKey = null; | ||
const taskCreateResult = await | ||
@@ -384,2 +392,5 @@ this.JSONRequest('createTask', { | ||
} | ||
if (solution.respKey) { | ||
this.settings.hcaptchaRespKey = solution.respKey; | ||
} | ||
return solution.gRecaptchaResponse; | ||
@@ -851,2 +862,6 @@ } else { | ||
getHcaptchaRespKey() { | ||
return this.settings.hcaptchaRespKey; | ||
}, | ||
delay(time) { | ||
@@ -853,0 +868,0 @@ return new Promise(function(resolve) { |
{ | ||
"name": "@antiadmin/anticaptchaofficial", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"description": "Official Anti-Captcha.com npm library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -183,4 +183,9 @@ ## Official Anti-Captcha.com npm module ## | ||
const token = await ac.solveHCaptchaProxyless('http://DOMAIN.COM', 'WEBSITE_KEY', 'FULL USER AGENT HERE'); | ||
// use this userAgent for posting the form with token! | ||
const userAgent = ac.getHcaptchaUserAgent(); | ||
// use this userAgent for posting the form with token! | ||
//some Hcaptchas also produce "respkey" value, this is how to get it: | ||
const respKey = ac.getHcaptchaRespKey(); | ||
``` | ||
@@ -207,4 +212,8 @@ Report last solved Hcaptcha as incorrect: | ||
true); //set isEnterprise = true | ||
// use this userAgent for posting the form with token! | ||
const userAgent = ac.getHcaptchaUserAgent(); | ||
// use this userAgent for posting the form with token! | ||
//some Hcaptchas also produce "respkey" value, this is how to get it: | ||
const respKey = ac.getHcaptchaRespKey(); | ||
``` | ||
@@ -211,0 +220,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48536
804
422