@types/grecaptcha
Advanced tools
Comparing version 2.0.36 to 3.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Google Recaptcha 2.0 | ||
// Type definitions for Google Recaptcha 3.0 | ||
// Project: https://www.google.com/recaptcha | ||
@@ -7,2 +7,3 @@ // Definitions by: Kristof Mattei <http://kristofmattei.be> | ||
// Rafael Tavares <https://github.com/rafaeltavares> | ||
// Florian Rohrer <https://github.com/RohrerF> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -39,2 +40,15 @@ | ||
execute(opt_widget_id?: number): void; | ||
/** | ||
* Programatically invoke the reCAPTCHA check. Used if the invisible reCAPTCHA is on a div instead of a button. | ||
* @param siteKey the key of your site | ||
* @param action the action | ||
* | ||
* @return a promise containing the token | ||
*/ | ||
execute(siteKey: string, action: Action): Promise<string>; | ||
/** | ||
* will run the given function as soon as the reCAPTCHA library has loaded | ||
* @param callback the function to coll | ||
*/ | ||
ready(callback: () => void): void; | ||
} | ||
@@ -47,2 +61,9 @@ | ||
interface Action { | ||
/** | ||
* the name of the action. Actions may only contain alphanumeric characters and slashes, and must not be user-specific. | ||
*/ | ||
action: string; | ||
} | ||
interface Parameters { | ||
@@ -49,0 +70,0 @@ /** |
{ | ||
"name": "@types/grecaptcha", | ||
"version": "2.0.36", | ||
"version": "3.0.0", | ||
"description": "TypeScript definitions for Google Recaptcha", | ||
@@ -24,2 +24,7 @@ "license": "MIT", | ||
"githubUsername": "rafaeltavares" | ||
}, | ||
{ | ||
"name": "Florian Rohrer", | ||
"url": "https://github.com/RohrerF", | ||
"githubUsername": "RohrerF" | ||
} | ||
@@ -31,8 +36,9 @@ ], | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/grecaptcha" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "b003c7cb4ca175b590142cfbe3e025fd35e1913fdd7be7aa7c93e95891639605", | ||
"typesPublisherContentHash": "5cd90cce997ae074472c1336f7077ed41b52e3536839b27a8a2def04e58b4c68", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 28 Nov 2018 15:28:54 GMT | ||
* Last updated: Wed, 09 Oct 2019 19:21:19 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: grecaptcha | ||
# Credits | ||
These definitions were written by Kristof Mattei <http://kristofmattei.be>, Martin Costello <https://martincostello.com/>, Ruslan Arkhipau <https://github.com/DethAriel>, Rafael Tavares <https://github.com/rafaeltavares>. | ||
These definitions were written by Kristof Mattei <http://kristofmattei.be>, Martin Costello <https://martincostello.com/>, Ruslan Arkhipau <https://github.com/DethAriel>, Rafael Tavares <https://github.com/rafaeltavares>, and Florian Rohrer <https://github.com/RohrerF>. |
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
8277
121