Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@matt-block/react-recaptcha-v2

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matt-block/react-recaptcha-v2 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

20

lib/index.esm.js
import React, { Component } from 'react';
import nanoid from 'nanoid';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {

@@ -22,2 +38,3 @@ extendStatics = Object.setPrototypeOf ||

_this.scriptSrc = "https://www.google.com/recaptcha/api.js";
_this.testSiteKey = "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI";
_this.observer = new MutationObserver(_this.mutationCallbackGenerator());

@@ -107,3 +124,4 @@ _this.hiddenDiv = document.createElement("div");

ReCaptcha.prototype.render = function () {
return (React.createElement("div", { id: this.id, className: "g-recaptcha", "data-sitekey": this.props.siteKey, "data-theme": this.props.theme, "data-size": this.props.size, "data-callback": this.successCallbackId, "data-expired-callback": this.expiredCallbackId, "data-error-callback": this.errorCallbackId }));
var _a = this.props, siteKey = _a.siteKey, theme = _a.theme, size = _a.size;
return (React.createElement("div", { id: this.id, className: "g-recaptcha", "data-sitekey": siteKey === "test" ? this.testSiteKey : siteKey, "data-theme": theme, "data-size": size, "data-callback": this.successCallbackId, "data-expired-callback": this.expiredCallbackId, "data-error-callback": this.errorCallbackId }));
};

@@ -110,0 +128,0 @@ return ReCaptcha;

4

package.json
{
"name": "@matt-block/react-recaptcha-v2",
"version": "1.0.2",
"version": "1.0.3",
"description": "Google reCAPTCHA v2 React component that does not pollute the DOM",

@@ -28,3 +28,3 @@ "main": "lib/index.esm.js",

"dependencies": {
"nanoid": "^1.2.6"
"nanoid": "^2.0.0"
},

@@ -31,0 +31,0 @@ "peerDependencies": {

@@ -12,2 +12,3 @@ import { Component } from "react";

private scriptSrc;
private testSiteKey;
private observer;

@@ -14,0 +15,0 @@ private hiddenDiv;

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