2captcha
Advanced tools
Comparing version 3.0.7 to 4.0.0
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
123912
37
1576
0
Yes
2
8
3
70
120
1
7
+ Addedmocha@^10.0.0
+ Addedansi-colors@4.1.1(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedanymatch@3.1.3(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbinary-extensions@2.3.0(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedbrowser-stdout@1.3.1(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedchokidar@3.5.3(transitive)
+ Addedcliui@7.0.4(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addeddata-uri-to-buffer@4.0.1(transitive)
+ Addeddebug@4.3.4(transitive)
+ Addeddecamelize@4.0.0(transitive)
+ Addeddiff@5.0.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.1.2(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedfetch-blob@3.2.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedflat@5.0.2(transitive)
+ Addedformdata-polyfill@4.0.10(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-binary-path@2.1.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-obj@2.1.0(transitive)
+ Addedis-unicode-supported@0.1.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlog-symbols@4.1.0(transitive)
+ Addedminimatch@5.0.1(transitive)
+ Addedmocha@10.4.0(transitive)
+ Addedms@2.1.22.1.3(transitive)
+ Addednode-domexception@1.0.0(transitive)
+ Addednode-fetch@3.3.2(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedreaddirp@3.6.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedserialize-javascript@6.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addedsupports-color@7.2.08.1.1(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedweb-streams-polyfill@3.3.3(transitive)
+ Addedworkerpool@6.2.1(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.4(transitive)
+ Addedyargs-unparser@2.0.0(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)
Updatednode-fetch@^3.2.6