@antiadmin/anticaptchaofficial
Advanced tools
Comparing version 1.0.44 to 1.0.45
11
index.js
@@ -304,3 +304,3 @@ | ||
async solveHCaptchaProxyless(websiteURL, websiteKey, userAgent, enterprisePayload, isInvisible) { | ||
async solveHCaptchaProxyless(websiteURL, websiteKey, userAgent, enterprisePayload, isInvisible, isEnterprise) { | ||
if (typeof userAgent === "undefined") userAgent = ''; | ||
@@ -317,2 +317,5 @@ const taskPayLoad = { | ||
} | ||
if (typeof isEnterprise === "boolean") { | ||
if (isEnterprise === true) taskPayLoad['isEnterprise'] = true; | ||
} | ||
const taskCreateResult = await | ||
@@ -346,3 +349,4 @@ this.JSONRequest('createTask', { | ||
enterprisePayload, | ||
isInvisible) { | ||
isInvisible, | ||
isEnterprise) { | ||
const taskPayLoad = { | ||
@@ -364,2 +368,5 @@ type: 'HCaptchaTask', | ||
} | ||
if (typeof isEnterprise === "boolean") { | ||
if (isEnterprise === true) taskPayLoad['isEnterprise'] = true; | ||
} | ||
const taskCreateResult = await | ||
@@ -366,0 +373,0 @@ this.JSONRequest('createTask', { |
{ | ||
"name": "@antiadmin/anticaptchaofficial", | ||
"version": "1.0.44", | ||
"version": "1.0.45", | ||
"description": "Official Anti-Captcha.com npm library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -201,5 +201,7 @@ ## Official Anti-Captcha.com npm module ## | ||
'sentry': true, | ||
// set here parameters like rqdata, sentry, apiEndpoint, endpoint, reportapi, assethost, imghost | ||
// set here optional parameters like rqdata, sentry, apiEndpoint, endpoint, reportapi, assethost, imghost | ||
// for more info go to https://anti-captcha.com/apidoc/task-types/HCaptchaTaskProxyless | ||
}); | ||
}, | ||
false, //set isInvisible = false | ||
true); //set isEnterprise = true | ||
const userAgent = ac.getHcaptchaUserAgent(); | ||
@@ -227,5 +229,7 @@ // use this userAgent for posting the form with token! | ||
'sentry': true, | ||
// set here parameters like rqdata, sentry, apiEndpoint, endpoint, reportapi, assethost, imghost | ||
// set here optional parameters like rqdata, sentry, apiEndpoint, endpoint, reportapi, assethost, imghost | ||
// for more info go to https://anti-captcha.com/apidoc/task-types/HCaptchaTaskProxyless | ||
}); | ||
}, | ||
false, //set isInvisible = false | ||
true); //set isEnterprise = true | ||
const userAgent = ac.getHcaptchaUserAgent(); | ||
@@ -232,0 +236,0 @@ // use this userAgent for posting the form with token! |
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
47778
790
413