Socket
Socket
Sign inDemoInstall

2captcha

Package Overview
Dependencies
77
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.7 to 4.0.0

dist/structs/error.d.ts

4

dist/index.d.ts

@@ -1,3 +0,3 @@

export { Solver } from "./structs/2captcha";
export { APIError } from "./structs/2captchaError";
export { Solver } from "./structs/solver.js";
export { PingbackClient as Pingback } from "./structs/pingback.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,8 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.APIError = exports.Solver = void 0;
var _2captcha_1 = require("./structs/2captcha");
Object.defineProperty(exports, "Solver", { enumerable: true, get: function () { return _2captcha_1.Solver; } });
var _2captchaError_1 = require("./structs/2captchaError");
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return _2captchaError_1.APIError; } });
// export { Server } from "./structs/2captchaServer.js"
// Handle Re-Exports of the library
export { Solver } from "./structs/solver.js";
export { PingbackClient as Pingback } from "./structs/pingback.js";
{
"name": "2captcha",
"version": "3.0.7",
"version": "4.0.0",
"description": "An asynchronous wrapper around the 2captcha API.",
"main": "dist/index.js",
"repository": "https://github.com/furry/2captcha",
"author": "Furry <ender@thefluegges.com>",
"license": "MIT",
"types": "dist/index.d.ts",
"keywords": [
"captcha",
"2captcha",
"api",
"captchasolver",
"capmonster",
"recaptcha",
"hcaptcha",
"funcaptcha"
],
"type": "module",
"scripts": {
"go": "tsc && node ./dist/index.js",
"dev": "tsc && node ./issues/dev",
"jsdoc": "jsdoc",
"docgen": "tsc && yarn jsdoc ./dist -R \"./readme.md\" -P \"./package.json\" -t \"./node_modules/jaguarjs-jsdoc\" -d \"./docs\" -r"
"tsc": "tsc",
"mocha": "mocha",
"direct": "tsc && node ./dist/index.js",
"test": "yarn mocha --parallel --timeout 900000",
"pingbackTest": "tsc && node ./tests/pingbackTest.js"
},
"dependencies": {
"node-fetch": "^2.6.1"
"mocha": "^10.0.0",
"node-fetch": "^3.2.6"
},
"devDependencies": {
"@types/node": "^17.0.16",
"@types/node-fetch": "^2.5.7",
"jaguarjs-jsdoc": "^1.1.0",
"jsdoc": "^3.6.10"
"@types/events": "^3.0.0",
"@types/node-fetch": "^2.6.2",
"chai": "^4.3.6",
"dotenv": "^16.0.0",
"mocha-parallel-tests": "^2.3.0",
"ngrok": "^4.3.1",
"tunnel": "^0.0.6",
"typescript": "^4.7.0-dev.20220314"
}
}

@@ -20,16 +20,2 @@ <center>

<hr>
<center>
<h2> Captcha Solvers
</center>
<h3>
<center>
<b>CapSolver.com</b>
<br>
<a href="https://capsolver.com">
<img src="https://i.imgur.com/YaRmSt4.gif" alt="Capsolver's Banner">
</a>
</center>
</h3>
Supporting all common and well known captcha types and a success rate of over 99%, CapSolver allows for affordable AI-based captcha solving with JS/TS clients as well as HTTP support. Their packages are extremely affordable for projects of any size, offering a free trial to test out their service.
<hr>

@@ -50,18 +36,5 @@ ## Motive

Currently supports:
- google-recaptcha (v2 / v3),
- hcaptcha,
- FunCaptcha,
- base64 image captchas
## Planned Features
- ~~Account Interaction~~
- ~~Base64 image support~~
- ~~Documentation Site~~
- Built-in Rate-Limit handling
- ~~Proxy support~~
- ~~Invalid-Captcha reporting support~~
- And many other things.
- Pingback / Webhook support via express

@@ -71,6 +44,6 @@ ## Install

```sh
npm install 2captcha
npm install 2captcha@next
```
```sh
yarn add 2captcha
yarn add 2captcha@next
```

@@ -89,4 +62,3 @@

/* Example ReCaptcha Website */
solver.recaptcha("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/")
solver.recaptchaV2("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/")
.then((res) => {

@@ -125,7 +97,8 @@ console.log(res)

solver.recaptcha("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/", {
proxy: "login:password@21.214.43.26", // The (Username : Password @ Address) of our chosen proxy
proxytype: "HTTP" // The 'Type' of proxy, http, https, socks, ect.
solver.recaptchaV2("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/", true /* for proxied */, false /* not enterprise */, {
proxy: "21.214.43.26", // The (Username : Password @ Address) of our chosen proxy
proxyType: "HTTP", // The 'Type' of proxy, http, https, socks, ect.
proxyLogin: "username",
proxyPassword: "password123"
})
.then((res) => {

@@ -132,0 +105,0 @@ console.log(res)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc