Socket
Socket
Sign inDemoInstall

react-google-recaptcha-enterprise

Package Overview
Dependencies
8
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

4

lib/esm/recaptcha.js

@@ -110,5 +110,5 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

_proto.explicitRender = function explicitRender() {
if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) {
if (this.props.grecaptcha && this.props.grecaptcha.enterprise && this.props.grecaptcha.enterprise.render && this._widgetId === undefined) {
var wrapper = document.createElement("div");
this._widgetId = this.props.grecaptcha.render(wrapper, {
this._widgetId = this.props.grecaptcha.enterprise.render(wrapper, {
sitekey: this.props.sitekey,

@@ -115,0 +115,0 @@ callback: this.handleChange,

@@ -122,5 +122,5 @@ "use strict";

_proto.explicitRender = function explicitRender() {
if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) {
if (this.props.grecaptcha && this.props.grecaptcha.enterprise && this.props.grecaptcha.enterprise.render && this._widgetId === undefined) {
var wrapper = document.createElement("div");
this._widgetId = this.props.grecaptcha.render(wrapper, {
this._widgetId = this.props.grecaptcha.enterprise.render(wrapper, {
sitekey: this.props.sitekey,

@@ -127,0 +127,0 @@ callback: this.handleChange,

{
"name": "react-google-recaptcha-enterprise",
"version": "1.0.1",
"version": "1.0.2",
"description": "React Component Wrapper for Google Enterprise reCAPTCHA",

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

@@ -88,5 +88,5 @@ import * as React from "react";

explicitRender() {
if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) {
if (this.props.grecaptcha && this.props.grecaptcha.enterprise && this.props.grecaptcha.enterprise.render && this._widgetId === undefined) {
const wrapper = document.createElement("div");
this._widgetId = this.props.grecaptcha.render(wrapper, {
this._widgetId = this.props.grecaptcha.enterprise.render(wrapper, {
sitekey: this.props.sitekey,

@@ -93,0 +93,0 @@ callback: this.handleChange,

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