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

react-google-invisible-recaptcha

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-invisible-recaptcha - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

21

dist/index.js

@@ -71,3 +71,6 @@ 'use strict';

badge = _props.badge,
tabindex = _props.tabindex,
onResolved = _props.onResolved,
onError = _props.onError,
onExpired = _props.onExpired,
onLoaded = _props.onLoaded;

@@ -82,2 +85,5 @@

var wrapper = document.createElement('div');
// This wrapper must be appended to the DOM immediately before rendering
// reCaptcha. Otherwise multiple reCaptchas will act jointly somehow.
_this2.container.appendChild(wrapper);
var recaptchaId = window.grecaptcha.render(wrapper, {

@@ -87,5 +93,7 @@ sitekey: sitekey,

badge: badge,
callback: _this2.callbackName
tabindex: tabindex,
callback: _this2.callbackName,
'error-callback': onError,
'expired-callback': onExpired
});
_this2.container.appendChild(wrapper);
_this2.execute = function () {

@@ -144,3 +152,6 @@ return window.grecaptcha.execute(recaptchaId);

badge: _propTypes2.default.oneOf(['bottomright', 'bottomleft', 'inline']),
onResolved: _propTypes2.default.func.isRequired,
tabindex: _propTypes2.default.number,
onResolved: _propTypes2.default.func,
onError: _propTypes2.default.func,
onExpired: _propTypes2.default.func,
onLoaded: _propTypes2.default.func,

@@ -153,2 +164,6 @@ style: _propTypes2.default.object

badge: 'bottomright',
tabindex: 0,
onResolved: function onResolved() {},
onError: function onError() {},
onExpired: function onExpired() {},
onLoaded: function onLoaded() {}

@@ -155,0 +170,0 @@ };

2

package.json
{
"name": "react-google-invisible-recaptcha",
"author": "szchenghuang <szchenghuang@gmail.com>",
"version": "0.2.8",
"version": "0.2.9",
"description": "A React component which is simply interested in Google invisible reCaptcha.",

@@ -6,0 +6,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc