You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@htmlbricks/hb-captcha-google-recaptcha-v2-invisible

Package Overview
Dependencies
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.13.12 to 0.13.15

6

package.json

@@ -5,3 +5,3 @@ {

"description": "Svelte-Bootstrap Checkbox Input WebComponent",
"version": "0.13.12",
"version": "0.13.15",
"main": "release/release.js",

@@ -34,3 +34,3 @@ "publishConfig": {

"devDependencies": {
"@htmlbricks/hb-jsutils": "^0.13.12",
"@htmlbricks/hb-jsutils": "^0.13.15",
"@htmlbricks/manifester": "^0.0.22",

@@ -80,3 +80,3 @@ "@rollup/plugin-alias": "^3.1.2",

"contributors": [],
"gitHead": "541b5dbdb2a632ee27efea783522e8c01fa832c3"
"gitHead": "d5559c0c4160e9cca2c7fca74c5cd9a68030d1bf"
}

@@ -162,3 +162,3 @@ {

"repoName": "@htmlbricks/hb-captcha-google-recaptcha-v2-invisible",
"version": "0.13.10"
"version": "0.13.15"
}

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

var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function c(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t){t.parentNode.removeChild(t)}function i(t){const e={};for(const n of t)e[n.name]=n.value;return e}let a;function l(t){a=t}function u(){if(!a)throw new Error("Function called outside component initialization");return a}function d(){const t=u();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const c=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,c)}))}}}const p=[],f=[],h=[],g=[],m=Promise.resolve();let $=!1;function y(t){h.push(t)}const b=new Set;let _=0;function k(){const t=a;do{for(;_<p.length;){const t=p[_];_++,l(t),v(t.$$)}for(l(null),p.length=0,_=0;f.length;)f.pop()();for(let t=0;t<h.length;t+=1){const e=h[t];b.has(e)||(b.add(e),e())}h.length=0}while(p.length);for(;g.length;)g.pop()();$=!1,b.clear(),l(t)}function v(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(y)}}const E=new Set;function x(t,e){-1===t.$$.dirty[0]&&(p.push(t),$||($=!0,m.then(k)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function w(r,i,u,d,p,f,h,g=[-1]){const m=a;l(r);const $=r.$$={fragment:null,ctx:null,props:f,update:t,not_equal:p,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(m?m.$$.context:[])),callbacks:n(),dirty:g,skip_bound:!1,root:i.target||m.$$.root};h&&h($.root);let b=!1;if($.ctx=u?u(r,i.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return $.ctx&&p($.ctx[t],$.ctx[t]=o)&&(!$.skip_bound&&$.bound[t]&&$.bound[t](o),b&&x(r,t)),e})):[],$.update(),b=!0,o($.before_update),$.fragment=!!d&&d($.ctx),i.target){if(i.hydrate){const t=(w=i.target,Array.from(w.childNodes));$.fragment&&$.fragment.l(t),t.forEach(s)}else $.fragment&&$.fragment.c();i.intro&&((_=r.$$.fragment)&&_.i&&(E.delete(_),_.i(v))),function(t,n,r,s){const{fragment:i,on_mount:a,on_destroy:l,after_update:u}=t.$$;i&&i.m(n,r),s||y((()=>{const n=a.map(e).filter(c);l?l.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(y)}(r,i.target,i.anchor,i.customElement),k()}var _,v,w;l(m)}let C;function R(e){return{c(){this.c=t},m:t,p:t,i:t,o:t,d:t}}"function"==typeof HTMLElement&&(C=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(c);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});function B(t,e,n){let{api_key:o}=e,{get:c}=e;const r="recaptchav2-sdk",s="recaptchav2-element";let i;const a=u(),l=d();function p(t,e){l(t,e),a.dispatchEvent&&a.dispatchEvent(new CustomEvent(t,{detail:e}))}let f=!1,h=!1,g=!1;function m(){return i?g?(console.info("resetting captcha"),i.reset(),void i.execute()):i.execute():console.error("no captcha util loaded")}let $=0;var y;return y=()=>{if(!document.getElementById(s)&&!i){const t=document.createElement("div");t.id=s,t.setAttribute("data-size","invisible"),document.body.appendChild(t)}if(!document.getElementById(r)&&!i){const t=document.createElement("script");t.id=r,t.async=!0,t.defer=!0,t.src="https://www.google.com/recaptcha/api.js?render=explicit",document.head.appendChild(t)}let t;return function e(c){i||(t=setTimeout((()=>{if(o)if(i=window.grecaptcha,i)try{console.info("using recaptcha api key:",o),function(){if(!i)return console.error("no captcha util loaded");i.render(s,{sitekey:o,callback:t=>{console.log("googleRecaptchaV2Response",t),g=!0,p("googleRecaptchaV2Response",{response:t})}}),p("googleRecaptchaRendered",{render:!0}),n(2,f=!0)}(),m()}catch(t){console.log("grecaptcha error",t)}else e(2e3),console.error("Captcha utils not loaded");else e(2e3),console.error("no api key")}),c))}(1e3),()=>{t&&clearTimeout(t),document.getElementById(r)&&document.getElementById(r).remove(),document.getElementById(s)&&document.getElementById(s).remove(),window.grecaptcha=void 0}},u().$$.on_mount.push(y),t.$$set=t=>{"api_key"in t&&n(0,o=t.api_key),"get"in t&&n(1,c=t.get)},t.$$.update=()=>{30&t.$$.dirty&&(console.log("render "+$,c),n(4,$++,$),f&&h&&null!==c?(console.info("executing recaptcha another time"),m()):f&&n(3,h=!0))},[o,c,f,h,$]}class I extends C{constructor(t){var e,n,o;super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif}</style>',w(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},B,R,r,{api_key:0,get:1},null),t&&(t.target&&(e=t.target,n=this,o=t.anchor,e.insertBefore(n,o||null)),t.props&&(this.$set(t.props),k()))}static get observedAttributes(){return["api_key","get"]}get api_key(){return this.$$.ctx[0]}set api_key(t){this.$$set({api_key:t}),k()}get get(){return this.$$.ctx[1]}set get(t){this.$$set({get:t}),k()}}return customElements.define("hb-captcha-google-recaptcha-v2-invisible",I),I}();
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function c(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t){t.parentNode.removeChild(t)}function a(t){const e={};for(const n of t)e[n.name]=n.value;return e}let i;function l(t){i=t}function u(){if(!i)throw new Error("Function called outside component initialization");return i}function d(){const t=u();return(e,n,{cancelable:o=!1}={})=>{const c=t.$$.callbacks[e];if(c){const r=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const c=document.createEvent("CustomEvent");return c.initCustomEvent(t,n,o,e),c}(e,n,{cancelable:o});return c.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const p=[],f=[],h=[],g=[],m=Promise.resolve();let $=!1;function y(t){h.push(t)}const b=new Set;let _=0;function v(){const t=i;do{for(;_<p.length;){const t=p[_];_++,l(t),k(t.$$)}for(l(null),p.length=0,_=0;f.length;)f.pop()();for(let t=0;t<h.length;t+=1){const e=h[t];b.has(e)||(b.add(e),e())}h.length=0}while(p.length);for(;g.length;)g.pop()();$=!1,b.clear(),l(t)}function k(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(y)}}const E=new Set;function x(t,e){-1===t.$$.dirty[0]&&(p.push(t),$||($=!0,m.then(v)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function w(r,a,u,d,p,f,h,g=[-1]){const m=i;l(r);const $=r.$$={fragment:null,ctx:null,props:f,update:t,not_equal:p,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:n(),dirty:g,skip_bound:!1,root:a.target||m.$$.root};h&&h($.root);let b=!1;if($.ctx=u?u(r,a.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return $.ctx&&p($.ctx[t],$.ctx[t]=o)&&(!$.skip_bound&&$.bound[t]&&$.bound[t](o),b&&x(r,t)),e})):[],$.update(),b=!0,o($.before_update),$.fragment=!!d&&d($.ctx),a.target){if(a.hydrate){const t=(w=a.target,Array.from(w.childNodes));$.fragment&&$.fragment.l(t),t.forEach(s)}else $.fragment&&$.fragment.c();a.intro&&((_=r.$$.fragment)&&_.i&&(E.delete(_),_.i(k))),function(t,n,r,s){const{fragment:a,on_mount:i,on_destroy:l,after_update:u}=t.$$;a&&a.m(n,r),s||y((()=>{const n=i.map(e).filter(c);l?l.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(y)}(r,a.target,a.anchor,a.customElement),v()}var _,k,w;l(m)}let C;function R(e){return{c(){this.c=t},m:t,p:t,i:t,o:t,d:t}}"function"==typeof HTMLElement&&(C=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(c);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});function B(t,e,n){let{api_key:o}=e,{get:c}=e;const r="recaptchav2-sdk",s="recaptchav2-element";let a;const i=u(),l=d();function p(t,e){l(t,e),i.dispatchEvent&&i.dispatchEvent(new CustomEvent(t,{detail:e}))}let f=!1,h=!1,g=!1;function m(){return a?g?(console.info("resetting captcha"),a.reset(),void a.execute()):a.execute():console.error("no captcha util loaded")}let $=0;var y;return y=()=>{if(!document.getElementById(s)&&!a){const t=document.createElement("div");t.id=s,t.setAttribute("data-size","invisible"),document.body.appendChild(t)}if(!document.getElementById(r)&&!a){const t=document.createElement("script");t.id=r,t.async=!0,t.defer=!0,t.src="https://www.google.com/recaptcha/api.js?render=explicit",document.head.appendChild(t)}let t;return function e(c){a||(t=setTimeout((()=>{if(o)if(a=window.grecaptcha,a)try{console.info("using recaptcha api key:",o),function(){if(!a)return console.error("no captcha util loaded");a.render(s,{sitekey:o,callback:t=>{console.log("googleRecaptchaV2Response",t),g=!0,p("googleRecaptchaV2Response",{response:t})}}),p("googleRecaptchaRendered",{render:!0}),n(2,f=!0)}(),m()}catch(t){console.log("grecaptcha error",t)}else e(2e3),console.error("Captcha utils not loaded");else e(2e3),console.error("no api key")}),c))}(1e3),()=>{t&&clearTimeout(t),document.getElementById(r)&&document.getElementById(r).remove(),document.getElementById(s)&&document.getElementById(s).remove(),window.grecaptcha=void 0}},u().$$.on_mount.push(y),t.$$set=t=>{"api_key"in t&&n(0,o=t.api_key),"get"in t&&n(1,c=t.get)},t.$$.update=()=>{30&t.$$.dirty&&(console.log("render "+$,c),n(4,$++,$),f&&h&&null!==c?(console.info("executing recaptcha another time"),m()):f&&n(3,h=!0))},[o,c,f,h,$]}class I extends C{constructor(t){var e,n,o;super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif}</style>',w(this,{target:this.shadowRoot,props:a(this.attributes),customElement:!0},B,R,r,{api_key:0,get:1},null),t&&(t.target&&(e=t.target,n=this,o=t.anchor,e.insertBefore(n,o||null)),t.props&&(this.$set(t.props),v()))}static get observedAttributes(){return["api_key","get"]}get api_key(){return this.$$.ctx[0]}set api_key(t){this.$$set({api_key:t}),v()}get get(){return this.$$.ctx[1]}set get(t){this.$$set({get:t}),v()}}return customElements.define("hb-captcha-google-recaptcha-v2-invisible",I),I}();
//# sourceMappingURL=release.js.map

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc