react-google-recaptcha
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -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 @@ -------------------------------------- |
@@ -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 = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23740
281