Socket
Socket
Sign inDemoInstall

invisible-grecaptcha

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.1.0

2

dist/index.js

@@ -1,2 +0,2 @@

var e="_grecaptchaonloadcallback";function t(e){return"string"==typeof e||e instanceof String}function n(e,t){return new TypeError("param "+e+" has an unexpected type, a "+t+" is expected.")}function r(e){var t=e.sitekey,n=e.position,r=e.resolve,i=e.reject,c=window.grecaptcha.render(function(){o();var e=document.createElement("div");return e.id="invisible-captcha",document.body.appendChild(e),e}(),{sitekey:t,size:"invisible",badge:n,callback:r,"error-callback":i});window.grecaptcha.execute(c)}function o(){var e=document.getElementById("invisible-captcha");e&&e.parentNode.removeChild(e)}var i=o;exports.execute=function(o,i){void 0===i&&(i={});var c=i.locale;void 0===c&&(c="en");var a=i.position;return void 0===a&&(a="bottomright"),new Promise(function(i,s){return function(e,t){if(null===e||void 0===e)throw new TypeError("param "+t+" is required")}(o,"sitekey"),t(o)||s(n("sitekey","string")),t(a)||s(n("position","string")),t(c)||s(n("locale","string")),new Promise(function(t,n){window.grecaptcha?r({sitekey:o,position:a,resolve:t,reject:n}):function(t){return new Promise(function(n,r){var o="https://www.google.com/recaptcha/api.js?onload="+encodeURIComponent(e)+(!1===t?"":"&hl="+encodeURIComponent(t));window[e]=n;var i=document.createElement("script");i.type="text/javascript",i.src=o,i.onerror=function(e){r(new URIError("The script "+e.target.src+" is not accessible."))},document.head.appendChild(i)})}(c).then(function(){r({sitekey:o,position:a,resolve:t,reject:n})}).catch(n)})})},exports.destroy=i;
var e="_grecaptchaonloadcallback",t=null;function n(e){return"string"==typeof e||e instanceof String}function r(e,t){return new TypeError("param "+e+" has an unexpected type, a "+t+" is expected.")}function o(e){var t=e.sitekey,n=e.position,r=e.resolve,o=e.reject,c=window.grecaptcha.render(function(){i();var e=document.createElement("div");return e.id="invisible-captcha",document.body.appendChild(e),e}(),{sitekey:t,size:"invisible",badge:n,callback:r,"error-callback":o});window.grecaptcha.execute(c)}function i(){var e=document.getElementById("invisible-captcha");e&&e.parentNode.removeChild(e)}var c=i;exports.execute=function(i,c){void 0===c&&(c={});var a=c.locale;void 0===a&&(a="en");var s=c.position;return void 0===s&&(s="bottomright"),new Promise(function(c,d){!function(e,t){if(null===e||void 0===e)throw new TypeError("param "+t+" is required")}(i,"sitekey"),n(i)||d(r("sitekey","string")),n(s)||d(r("position","string")),n(a)||d(r("locale","string")),function(n){return t=t||(window.grecaptcha?Promise.resolve():new Promise(function(t,r){var o="https://www.google.com/recaptcha/api.js?onload="+encodeURIComponent(e)+(n?"&hl="+encodeURIComponent(n):"");window[e]=t;var i=document.createElement("script");i.type="text/javascript",i.src=o,i.onerror=function(e){r(new URIError("The script "+e.target.src+" is not accessible."))},document.head.appendChild(i)}))}(a).then(function(){o({sitekey:i,position:s,resolve:c,reject:d})}).catch(d)})},exports.destroy=c;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

var e="_grecaptchaonloadcallback";function n(e){return"string"==typeof e||e instanceof String}function t(e,n){return new TypeError("param "+e+" has an unexpected type, a "+n+" is expected.")}function r(e){var n=e.sitekey,t=e.position,r=e.resolve,i=e.reject,c=window.grecaptcha.render(function(){o();var e=document.createElement("div");return e.id="invisible-captcha",document.body.appendChild(e),e}(),{sitekey:n,size:"invisible",badge:t,callback:r,"error-callback":i});window.grecaptcha.execute(c)}function o(){var e=document.getElementById("invisible-captcha");e&&e.parentNode.removeChild(e)}function i(o,i){void 0===i&&(i={});var c=i.locale;void 0===c&&(c="en");var a=i.position;return void 0===a&&(a="bottomright"),new Promise(function(i,s){return function(e,n){if(null===e||void 0===e)throw new TypeError("param "+n+" is required")}(o,"sitekey"),n(o)||s(t("sitekey","string")),n(a)||s(t("position","string")),n(c)||s(t("locale","string")),new Promise(function(n,t){window.grecaptcha?r({sitekey:o,position:a,resolve:n,reject:t}):function(n){return new Promise(function(t,r){var o="https://www.google.com/recaptcha/api.js?onload="+encodeURIComponent(e)+(!1===n?"":"&hl="+encodeURIComponent(n));window[e]=t;var i=document.createElement("script");i.type="text/javascript",i.src=o,i.onerror=function(e){r(new URIError("The script "+e.target.src+" is not accessible."))},document.head.appendChild(i)})}(c).then(function(){r({sitekey:o,position:a,resolve:n,reject:t})}).catch(t)})})}var c=o;export{i as execute,c as destroy};
var e="_grecaptchaonloadcallback",n=null;function t(e){return"string"==typeof e||e instanceof String}function r(e,n){return new TypeError("param "+e+" has an unexpected type, a "+n+" is expected.")}function o(e){var n=e.sitekey,t=e.position,r=e.resolve,o=e.reject,c=window.grecaptcha.render(function(){i();var e=document.createElement("div");return e.id="invisible-captcha",document.body.appendChild(e),e}(),{sitekey:n,size:"invisible",badge:t,callback:r,"error-callback":o});window.grecaptcha.execute(c)}function i(){var e=document.getElementById("invisible-captcha");e&&e.parentNode.removeChild(e)}function c(i,c){void 0===c&&(c={});var a=c.locale;void 0===a&&(a="en");var s=c.position;return void 0===s&&(s="bottomright"),new Promise(function(c,d){!function(e,n){if(null===e||void 0===e)throw new TypeError("param "+n+" is required")}(i,"sitekey"),t(i)||d(r("sitekey","string")),t(s)||d(r("position","string")),t(a)||d(r("locale","string")),function(t){return n=n||(window.grecaptcha?Promise.resolve():new Promise(function(n,r){var o="https://www.google.com/recaptcha/api.js?onload="+encodeURIComponent(e)+(t?"&hl="+encodeURIComponent(t):"");window[e]=n;var i=document.createElement("script");i.type="text/javascript",i.src=o,i.onerror=function(e){r(new URIError("The script "+e.target.src+" is not accessible."))},document.head.appendChild(i)}))}(a).then(function(){o({sitekey:i,position:s,resolve:c,reject:d})}).catch(d)})}var a=i;export{c as execute,a as destroy};
//# sourceMappingURL=index.m.js.map

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.invisibleGrecaptcha={})}(this,function(e){var n="_grecaptchaonloadcallback";function t(e){return"string"==typeof e||e instanceof String}function o(e,n){return new TypeError("param "+e+" has an unexpected type, a "+n+" is expected.")}function i(e){var n=e.sitekey,t=e.position,o=e.resolve,i=e.reject,c=window.grecaptcha.render(function(){r();var e=document.createElement("div");return e.id="invisible-captcha",document.body.appendChild(e),e}(),{sitekey:n,size:"invisible",badge:t,callback:o,"error-callback":i});window.grecaptcha.execute(c)}function r(){var e=document.getElementById("invisible-captcha");e&&e.parentNode.removeChild(e)}var c=r;e.execute=function(e,r){void 0===r&&(r={});var c=r.locale;void 0===c&&(c="en");var a=r.position;return void 0===a&&(a="bottomright"),new Promise(function(r,s){return function(e,n){if(null===e||void 0===e)throw new TypeError("param "+n+" is required")}(e,"sitekey"),t(e)||s(o("sitekey","string")),t(a)||s(o("position","string")),t(c)||s(o("locale","string")),new Promise(function(t,o){window.grecaptcha?i({sitekey:e,position:a,resolve:t,reject:o}):function(e){return new Promise(function(t,o){var i="https://www.google.com/recaptcha/api.js?onload="+encodeURIComponent(n)+(!1===e?"":"&hl="+encodeURIComponent(e));window[n]=t;var r=document.createElement("script");r.type="text/javascript",r.src=i,r.onerror=function(e){o(new URIError("The script "+e.target.src+" is not accessible."))},document.head.appendChild(r)})}(c).then(function(){i({sitekey:e,position:a,resolve:t,reject:o})}).catch(o)})})},e.destroy=c});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.invisibleGrecaptcha={})}(this,function(e){var n="_grecaptchaonloadcallback",t=null;function o(e){return"string"==typeof e||e instanceof String}function i(e,n){return new TypeError("param "+e+" has an unexpected type, a "+n+" is expected.")}function r(e){var n=e.sitekey,t=e.position,o=e.resolve,i=e.reject,r=window.grecaptcha.render(function(){c();var e=document.createElement("div");return e.id="invisible-captcha",document.body.appendChild(e),e}(),{sitekey:n,size:"invisible",badge:t,callback:o,"error-callback":i});window.grecaptcha.execute(r)}function c(){var e=document.getElementById("invisible-captcha");e&&e.parentNode.removeChild(e)}var a=c;e.execute=function(e,c){void 0===c&&(c={});var a=c.locale;void 0===a&&(a="en");var s=c.position;return void 0===s&&(s="bottomright"),new Promise(function(c,d){!function(e,n){if(null===e||void 0===e)throw new TypeError("param "+n+" is required")}(e,"sitekey"),o(e)||d(i("sitekey","string")),o(s)||d(i("position","string")),o(a)||d(i("locale","string")),function(e){return t=t||(window.grecaptcha?Promise.resolve():new Promise(function(t,o){var i="https://www.google.com/recaptcha/api.js?onload="+encodeURIComponent(n)+(e?"&hl="+encodeURIComponent(e):"");window[n]=t;var r=document.createElement("script");r.type="text/javascript",r.src=i,r.onerror=function(e){o(new URIError("The script "+e.target.src+" is not accessible."))},document.head.appendChild(r)}))}(a).then(function(){r({sitekey:e,position:s,resolve:c,reject:d})}).catch(d)})},e.destroy=a});
//# sourceMappingURL=index.umd.js.map
{
"name": "invisible-grecaptcha",
"version": "1.0.3",
"version": "1.1.0",
"description": "Invisible reCAPTCHA integration",

@@ -5,0 +5,0 @@ "source": "src/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc