react-google-invisible-recaptcha
Advanced tools
Comparing version 0.2.1 to 0.2.3
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _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; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -116,5 +118,6 @@ | ||
var style = _extends({ display: 'none' }, this.props.style); | ||
return _react2.default.createElement('div', { ref: function ref(_ref) { | ||
return _this3.container = _ref; | ||
}, style: { display: 'none' } }); | ||
}, style: style }); | ||
} | ||
@@ -129,3 +132,4 @@ }]); | ||
locale: _propTypes2.default.string, | ||
onResolved: _propTypes2.default.func.isRequired | ||
onResolved: _propTypes2.default.func.isRequired, | ||
style: _propTypes2.default.object | ||
}; | ||
@@ -132,0 +136,0 @@ |
{ | ||
"name": "react-google-invisible-recaptcha", | ||
"author": "szchenghuang <szchenghuang@gmail.com>", | ||
"version": "0.2.1", | ||
"version": "0.2.3", | ||
"description": "A React component which is simply interested in Google invisible reCaptcha.", | ||
@@ -44,2 +44,3 @@ "main": "index.js", | ||
"babel-register": "^6.26.0", | ||
"babel-runtime": "^6.26.0", | ||
"eslint": "^4.9.0", | ||
@@ -46,0 +47,0 @@ "eslint-config-airbnb": "^16.1.0", |
@@ -7,3 +7,2 @@ # react-google-invisible-recaptcha # | ||
* Vallina JS. | ||
* No dependency. | ||
@@ -14,3 +13,3 @@ ## [Demo][demo] ## | ||
When reCAPTCHA is resolved, the demo page shows the result token for demo purpose. In a real application, it should be used with a HTTP request targeting at `https://www.google.com/recaptcha/api/siteverify?secret=<secret>&response=<token>` on the server to validate the reCAPTCHA result before any sensitive operation is performed. Also, don't forget to check input values derived from clients as well on the server. | ||
When reCAPTCHA is resolved, the demo page shows the result token for demo purpose. In a real application, it should be used with a HTTP request targeting at `https://www.google.com/recaptcha/api/siteverify?secret=<secret>&response=<token>` on the server to validate the reCAPTCHA result before any sensitive operation is performed. Checking input values derived from clients on the server imporves security as well. | ||
@@ -77,3 +76,3 @@ ## Example ## | ||
Set two required props to get going. | ||
Set required props to get going. | ||
@@ -83,5 +82,6 @@ * sitekey: sitekey for your recaptcha. **Required.** | ||
Optional prop you can tweak. | ||
A few optional props you can tweak. | ||
* locale: in which language it speaks. **Default: en.** | ||
* style: custom CSS applied to the root node. **Default: undefined.** | ||
@@ -88,0 +88,0 @@ ## APIs ## |
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
11521
110
22