Socket
Socket
Sign inDemoInstall

puppeteer-extra-plugin-recaptcha

Package Overview
Dependencies
139
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.17 to 3.1.18

1

dist/content.d.ts

@@ -13,2 +13,3 @@ import * as types from './types';

private _pick;
private _isVisible;
private _flattenObject;

@@ -15,0 +16,0 @@ private _getKeyByValue;

5

dist/content.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RecaptchaContentScript = exports.ContentScriptDefaultData = exports.ContentScriptDefaultOpts = void 0;
exports.ContentScriptDefaultOpts = {

@@ -17,2 +18,4 @@ visualFeedback: true

this._pick = (props) => (o) => props.reduce((a, e) => (Object.assign(Object.assign({}, a), { [e]: o[e] })), {});
// make sure the element is visible - this is equivalent to jquery's is(':visible')
this._isVisible = (elem) => !!(elem.offsetWidth || elem.offsetHeight || (typeof elem.getClientRects === 'function' && elem.getClientRects().length));
this.opts = opts;

@@ -112,3 +115,3 @@ this.data = data;

return this._findVisibleIframeNodes()
.filter($f => !$f.src.includes('invisible'))
.filter($f => this._isVisible($f))
.map($f => this._paintCaptchaBusy($f))

@@ -115,0 +118,0 @@ .filter($f => $f && $f.getAttribute('name'))

/*!
* puppeteer-extra-plugin-recaptcha v3.1.12 by berstend
* puppeteer-extra-plugin-recaptcha v3.1.17 by berstend
* https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-recaptcha

@@ -29,2 +29,4 @@ * @license MIT

this._pick = (props) => (o) => props.reduce((a, e) => (Object.assign(Object.assign({}, a), { [e]: o[e] })), {});
// make sure the element is visible - this is equivalent to jquery's is(':visible')
this._isVisible = (elem) => !!(elem.offsetWidth || elem.offsetHeight || (typeof elem.getClientRects === 'function' && elem.getClientRects().length));
this.opts = opts;

@@ -124,3 +126,3 @@ this.data = data;

return this._findVisibleIframeNodes()
.filter($f => !$f.src.includes('invisible'))
.filter($f => this._isVisible($f))
.map($f => this._paintCaptchaBusy($f))

@@ -594,3 +596,3 @@ .filter($f => $f && $f.getAttribute('name'))

// we add some extra waiting logic for developer convenience.
const hasRecaptchaScriptTag = await page.$(`script[src^="https://www.google.com/recaptcha/api.js"]`);
const hasRecaptchaScriptTag = await page.$(`script[src*="/recaptcha/api.js"]`);
this.debug('hasRecaptchaScriptTag', !!hasRecaptchaScriptTag);

@@ -597,0 +599,0 @@ if (hasRecaptchaScriptTag) {

/*!
* puppeteer-extra-plugin-recaptcha v3.1.12 by berstend
* puppeteer-extra-plugin-recaptcha v3.1.17 by berstend
* https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-recaptcha

@@ -23,2 +23,4 @@ * @license MIT

this._pick = (props) => (o) => props.reduce((a, e) => (Object.assign(Object.assign({}, a), { [e]: o[e] })), {});
// make sure the element is visible - this is equivalent to jquery's is(':visible')
this._isVisible = (elem) => !!(elem.offsetWidth || elem.offsetHeight || (typeof elem.getClientRects === 'function' && elem.getClientRects().length));
this.opts = opts;

@@ -118,3 +120,3 @@ this.data = data;

return this._findVisibleIframeNodes()
.filter($f => !$f.src.includes('invisible'))
.filter($f => this._isVisible($f))
.map($f => this._paintCaptchaBusy($f))

@@ -588,3 +590,3 @@ .filter($f => $f && $f.getAttribute('name'))

// we add some extra waiting logic for developer convenience.
const hasRecaptchaScriptTag = await page.$(`script[src^="https://www.google.com/recaptcha/api.js"]`);
const hasRecaptchaScriptTag = await page.$(`script[src*="/recaptcha/api.js"]`);
this.debug('hasRecaptchaScriptTag', !!hasRecaptchaScriptTag);

@@ -591,0 +593,0 @@ if (hasRecaptchaScriptTag) {

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PuppeteerExtraPluginRecaptcha = exports.BuiltinSolutionProviders = void 0;
const puppeteer_extra_plugin_1 = require("puppeteer-extra-plugin");

@@ -58,3 +71,3 @@ const content_1 = require("./content");

// we add some extra waiting logic for developer convenience.
const hasRecaptchaScriptTag = await page.$(`script[src^="https://www.google.com/recaptcha/api.js"]`);
const hasRecaptchaScriptTag = await page.$(`script[src*="/recaptcha/api.js"]`);
this.debug('hasRecaptchaScriptTag', !!hasRecaptchaScriptTag);

@@ -61,0 +74,0 @@ if (hasRecaptchaScriptTag) {

@@ -19,3 +19,3 @@ "use strict";

args: PUPPETEER_ARGS,
headless: true
headless: true,
});

@@ -22,0 +22,0 @@ const page = await browser.newPage();

@@ -5,2 +5,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.report = exports.solveRecaptchaFromHtml = exports.decodeUrl = exports.decodeReCaptcha = exports.decode = exports.setApiKey = void 0;
var http = require('http');

@@ -7,0 +8,0 @@ var https = require('https');

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSolutions = exports.PROVIDER_ID = void 0;
exports.PROVIDER_ID = '2captcha';

@@ -14,0 +27,0 @@ const debug_1 = __importDefault(require("debug"));

{
"name": "puppeteer-extra-plugin-recaptcha",
"version": "3.1.17",
"version": "3.1.18",
"description": "A puppeteer-extra plugin to solve reCAPTCHAs automatically.",

@@ -73,3 +73,3 @@ "main": "dist/index.cjs.js",

},
"gitHead": "9b20ce9cb30524620000d697320034d1c6e91ac5"
"gitHead": "c544a900d405c0f95ebb6780cf00583e9ab31b72"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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