New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bestcaptchasolver-client

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bestcaptchasolver-client - npm Package Compare versions

Comparing version

to
1.1.0

examples/funcaptcha.js

23

lib/bestcaptchasolver.js

@@ -105,3 +105,3 @@ window.bestcaptchasolver_config = {

/**
* Submit Capy
* Submit geetest
* @param data

@@ -124,2 +124,21 @@ * @returns {Promise<any>}

/**
* Submit FunCaptcha
* @param data
* @returns {Promise<any>}
*/
bestcaptchasolverapi.submit_funcaptcha = function (data) {
var bc = bestcaptchasolver_config; // get config obj
return new Promise((resolve, reject) => {
data.access_token = bc.access_token;
var url = bc.BASE_URL + '/captcha/funcaptcha';
$.post(url, data).done(function (resp) {
return resolve(resp.id);
}).fail(function (err) {
return reject(err.responseJSON.error);
});
});
};
/**
* Retrieve captcha text or gresponse using ID

@@ -165,2 +184,2 @@ * @param id

});
};
};

2

package.json
{
"name": "bestcaptchasolver-client",
"version": "1.0.9",
"version": "1.1.0",
"description": "bestcaptchasolver-javascript is a super easy to use bypass captcha JavaScript API wrapper for bestcaptchasolver.com captcha service",

@@ -5,0 +5,0 @@ "main": "lib/bestcaptchasolver.js",

@@ -130,2 +130,17 @@ bestcaptchasolver-client - Bestcaptchasolver JS client API library

**Submit FunCaptcha (Arkose Labs)**
- page_url
- s_url
- site_key
```javascript
bestcaptchasolverapi.submit_funcaptcha({
page_url: 'https://abc.com',
s_url: 'https://api.arkoselabs.com',
site_key: '11111111-1111-1111-1111-111111111111',
// data: '{"x":"y"}', // optional
// affiliate_id: 'ID of affiliate' // optional
}).then(function (id)) { /* use id to retrieve solution */ };
```
**Retrieve**

@@ -132,0 +147,0 @@

Sorry, the diff of this file is not supported yet