Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antiadmin/anticaptchaofficial

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antiadmin/anticaptchaofficial - npm Package Compare versions

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) {

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc