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

react-google-recaptcha

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-recaptcha - npm Package Compare versions

Comparing version 0.9.6 to 0.9.7

7

CHANGELOG.md

@@ -0,1 +1,8 @@

v0.9.7 - Thu, 10 Aug 2017 00:04:43 GMT
--------------------------------------
v0.9.6 - Tue, 20 Jun 2017 16:20:26 GMT

@@ -2,0 +9,0 @@ --------------------------------------

2

lib/recaptcha-wrapper.js

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

globalName: globalName,
exposeFuncs: ["getValue", "reset", "execute"]
exposeFuncs: ["getValue", "getWidgetId", "reset", "execute"]
});

@@ -56,2 +56,9 @@ "use strict";

ReCAPTCHA.prototype.getWidgetId = function getWidgetId() {
if (this.props.grecaptcha && this.state.widgetId !== undefined) {
return this.state.widgetId;
}
return null;
};
ReCAPTCHA.prototype.execute = function execute() {

@@ -155,3 +162,3 @@ var grecaptcha = this.props.grecaptcha;

stoken: _propTypes2.default.string,
badge: _propTypes2.default.oneOf(["bottomright", "bottomleft ", "inline"])
badge: _propTypes2.default.oneOf(["bottomright", "bottomleft", "inline"])
};

@@ -158,0 +165,0 @@ ReCAPTCHA.defaultProps = {

{
"name": "react-google-recaptcha",
"version": "0.9.6",
"version": "0.9.7",
"description": "React Component Wrapper for Google reCAPTCHA",

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

@@ -14,3 +14,3 @@ import ReCAPTCHA from "./recaptcha";

globalName,
exposeFuncs: ["getValue", "reset", "execute"],
exposeFuncs: ["getValue", "getWidgetId", "reset", "execute"],
});

@@ -19,2 +19,9 @@ import React from "react";

getWidgetId() {
if (this.props.grecaptcha && this.state.widgetId !== undefined) {
return this.state.widgetId;
}
return null;
}
execute() {

@@ -102,3 +109,3 @@ const { grecaptcha } = this.props;

stoken: PropTypes.string,
badge: PropTypes.oneOf(["bottomright", "bottomleft ", "inline"]),
badge: PropTypes.oneOf(["bottomright", "bottomleft", "inline"]),
};

@@ -105,0 +112,0 @@ ReCAPTCHA.defaultProps = {

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