Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vechain/connex-wallet-buddy

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/connex-wallet-buddy - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

dist/bundle.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ConnexWalletBuddy=t():e.ConnexWalletBuddy=t()}(self,(function(){return(()=>{"use strict";var e={783:(e,t,o)=>{o.r(t),o.d(t,{create:()=>g});const n=class extends Promise{constructor(){if(arguments.length>0)return super(arguments[0]),this.resolve=()=>{throw new Error("Deferred.resolve is not callable")},void(this.reject=()=>{throw new Error("Deferred.reject is not callable")});let e,t;super(((o,n)=>{e=o,t=n})),this.resolve=e,this.reject=t}};var r=function(e,t,o){this.name=e,this.version=t,this.os=o,this.type="browser"},i=function(e,t,o,n){this.name=e,this.version=t,this.os=o,this.bot=n,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},a=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function l(e){var t=function(e){return""!==e&&d.reduce((function(t,o){var n=o[0],r=o[1];if(t)return t;var i=r.exec(e);return!!i&&[n,i]}),!1)}(e);if(!t)return null;var o=t[0],n=t[1];if("searchbot"===o)return new s;var l=n[1]&&n[1].split(/[._]/).slice(0,3);l?l.length<3&&(l=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n}(l,function(e){for(var t=[],o=0;o<e;o++)t.push("0");return t}(3-l.length))):l=[];var u=l.join("."),h=function(e){for(var t=0,o=c.length;t<o;t++){var n=c[t],r=n[0];if(n[1].exec(e))return r}return null}(e),f=a.exec(e);return f&&f[1]?new i(o,u,h,f[1]):new r(o,u,h)}const u="undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}:"undefined"!=typeof navigator?l(navigator.userAgent):"undefined"!=typeof process&&process.version?new function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}(process.version.slice(1)):null;const h=(()=>{let e=null;return()=>(e&&e.parentElement||(e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e)),e)})();var f=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function s(e){try{d(n.next(e))}catch(e){i(e)}}function a(e){try{d(n.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,a)}d((n=n.apply(e,t||[])).next())}))};const p="https://tos.vecha.in/";function m(e){return new Promise((t=>{setTimeout(t,e)}))}function w(e,t,o,n,r){return f(this,void 0,void 0,(function*(){let i=0;const s=Date.now()+o;for(;Date.now()<s;)try{const o=yield Promise.race([r,fetch(new URL(`${e}${t}?wait=1`,n).href)]),i=yield Promise.race([r,o.text()]);if(i)return i}catch(e){if(++i>2)throw new Error("failed fetch response");yield Promise.race([r,m(3e3)])}throw new Error("timeout")}))}let y=null;function b(e,t,o,r,i,s,a){return f(this,void 0,void 0,(function*(){y&&y.reject(new Error("aborted"));const d=y=new n,c=o.onAccepted,l={type:e,gid:r,payload:{message:t,options:Object.assign(Object.assign({},o),{onAccepted:void 0})},nonce:i()},p=JSON.stringify(l),b=s(p),g=function(e){try{h().contentWindow.location.href="connex:sign?src="+encodeURIComponent(e)}catch(e){}const t=function(){const e=document.createElement("iframe");return e.style.border="none",e.style.position="fixed",e.style.zIndex="9999",e.style.width="100vw",e.style.height="110px",e.style.left=e.style.bottom="0px",e.src=URL.createObjectURL(new Blob(['<html> <head> <meta charset="utf-8"> <style>body,html{margin:0;box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{font-family:Roboto,-apple-system,Helvetica Neue,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;font-size:16px;width:100vw;height:100vh}.lds-dual-ring{display:inline-block;width:1em;height:1em}.lds-dual-ring:after{content:"";display:block;width:1em;height:1em;border-radius:50%;border:.16em solid;border-color:currentColor transparent currentColor transparent;animation:lds-dual-ring .8s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.footer{background:rgba(0,0,0,.7);position:absolute;left:0;bottom:0;width:100%;color:#fff;padding:12px 16px 24px 16px;box-shadow:0 0 4px rgba(0,0,0,.3)}.button{border:0;background:#1e88e5;color:#fff;font-family:system-ui,sans-serif;font-size:1rem;line-height:1.2;white-space:nowrap;text-decoration:none;padding:.25rem 1rem;margin-left:.5rem;margin-right:.5rem;cursor:pointer;outline:0}.close{border:0;background:0 0;color:#fff;font-size:1rem;text-decoration:none;padding:.25rem .5rem;margin-left:.5rem;margin-right:.5rem;cursor:pointer;outline:0}</style> </head> <body> <div class="footer"> <div> <div class="lds-dual-ring" style="margin-right:.5em"></div> Launching Sync2 ... <button style="float:right" class="close" onclick=\'post("close")\'>&#x2715;</button> </div> <div style="text-align:center;margin-top:.5rem"> <a href="javascript:post(\'lite\')" style="margin-right:2rem;color:#f5f5f5;font-size:90%">Try out Sync2-lite</a> <a class="button" href="javascript:post(\'install\')">Install</a> </div> </div> <script>function post(e){parent.postMessage({src:"connex-helper",action:e},"*")}<\/script> </body> </html>'],{type:"text/html"})),e}(),o=n=>{if(n.data&&"connex-helper"===n.data.src&&n.data.action)switch(n.data.action){case"close":return void(t.parentNode&&(t.parentNode.removeChild(t),window.removeEventListener("message",o)));case"lite":return void function(e){const t=(()=>{switch(u&&u.os){case"iOS":case"android":return{};default:return{target:"sync|"+window.location.host,features:"width=360,height=640,resizable,scrollbars=yes,dependent,modal"}}})();window.open(new URL("#/sign?src="+encodeURIComponent(e),"https://lite.sync.vecha.in/").href,t.target,t.features)}(e);case"install":return void window.open("https://github.com/vechain/sync2/releases")}};return{show(){t.parentNode||(document.body.appendChild(t),window.addEventListener("message",o))},hide(){t.parentNode&&(t.parentNode.removeChild(t),window.removeEventListener("message",o))}}}(new URL(b,a).href);let v=!1;try{yield function(e,t,o,n){return f(this,void 0,void 0,(function*(){const r=new URL(e,o).href;for(let e=0;e<3;e++)try{return yield Promise.race([n,fetch(r,{method:"POST",body:t,headers:new Headers({"Content-Type":"application/json"})})])}catch(e){yield Promise.race([n,m(2e3)])}throw new Error("failed to submit request")}))}(b,p,a,d),(()=>{f(this,void 0,void 0,(function*(){try{yield Promise.race([d,m(1500)]),!v&&g.show()}catch(e){}}))})(),(()=>{f(this,void 0,void 0,(function*(){try{yield w(b,".accepted",6e4,a,d),v=!0,g.hide(),c&&c()}catch(e){}}))})();const e=yield w(b,".resp",6e5,a,d),t=JSON.parse(e);if(t.error)throw new Error(t.error);return t.payload}finally{d.reject(new Error("aborted")),g.hide()}}))}function g(e,t,o,n){return{signTx:(r,i)=>b("tx",r,i,e,t,o,n||p),signCert:(r,i)=>b("cert",r,i,e,t,o,n||p)}}const v=JSON.parse('{"u2":"@vechain/connex-wallet-buddy","i8":"0.1.4"}');console.log(`[${v.u2}] v${v.i8} loaded`)}},t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}return o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(783)})()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ConnexWalletBuddy=t():e.ConnexWalletBuddy=t()}(self,(function(){return(()=>{"use strict";var e={783:(e,t,o)=>{o.r(t),o.d(t,{create:()=>g});const n=class extends Promise{constructor(){if(arguments.length>0)return super(arguments[0]),this.resolve=()=>{throw new Error("Deferred.resolve is not callable")},void(this.reject=()=>{throw new Error("Deferred.reject is not callable")});let e,t;super(((o,n)=>{e=o,t=n})),this.resolve=e,this.reject=t}};var r=function(e,t,o){this.name=e,this.version=t,this.os=o,this.type="browser"},i=function(e,t,o,n){this.name=e,this.version=t,this.os=o,this.bot=n,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},a=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function l(e){var t=function(e){return""!==e&&d.reduce((function(t,o){var n=o[0],r=o[1];if(t)return t;var i=r.exec(e);return!!i&&[n,i]}),!1)}(e);if(!t)return null;var o=t[0],n=t[1];if("searchbot"===o)return new s;var l=n[1]&&n[1].split(/[._]/).slice(0,3);l?l.length<3&&(l=function(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<o;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,r++)n[r]=i[s];return n}(l,function(e){for(var t=[],o=0;o<e;o++)t.push("0");return t}(3-l.length))):l=[];var u=l.join("."),h=function(e){for(var t=0,o=c.length;t<o;t++){var n=c[t],r=n[0];if(n[1].exec(e))return r}return null}(e),f=a.exec(e);return f&&f[1]?new i(o,u,h,f[1]):new r(o,u,h)}const u="undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}:"undefined"!=typeof navigator?l(navigator.userAgent):"undefined"!=typeof process&&process.version?new function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform}(process.version.slice(1)):null;const h=(()=>{let e=null;return()=>(e&&e.parentElement||(e=document.createElement("iframe"),e.style.display="none",document.body.appendChild(e)),e)})();var f=function(e,t,o,n){return new(o||(o=Promise))((function(r,i){function s(e){try{d(n.next(e))}catch(e){i(e)}}function a(e){try{d(n.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,a)}d((n=n.apply(e,t||[])).next())}))};const p="https://tos.vecha.in/";function m(e){return new Promise((t=>{setTimeout(t,e)}))}function w(e,t,o,n,r){return f(this,void 0,void 0,(function*(){let i=0;const s=Date.now()+o;for(;Date.now()<s;)try{const o=yield Promise.race([r,fetch(new URL(`${e}${t}?wait=1`,n).href)]),i=yield Promise.race([r,o.text()]);if(i)return i}catch(e){if(++i>2)throw new Error("failed fetch response");yield Promise.race([r,m(3e3)])}throw new Error("timeout")}))}let y=null;function b(e,t,o,r,i,s,a){return f(this,void 0,void 0,(function*(){y&&y.reject(new Error("aborted"));const d=y=new n,c=o.onAccepted,l={type:e,gid:r,payload:{message:t,options:Object.assign(Object.assign({},o),{onAccepted:void 0})},nonce:i()},p=JSON.stringify(l),b=s(p),g=function(e){try{const t="connex:sign?src="+encodeURIComponent(e);u&&"android"===u.os?window.location.href=t:h().contentWindow.location.href=t}catch(e){}const t=function(){const e=document.createElement("iframe");return e.style.border="none",e.style.position="fixed",e.style.zIndex="9999",e.style.width="100vw",e.style.height="110px",e.style.left=e.style.bottom="0px",e.src=URL.createObjectURL(new Blob(['<html> <head> <meta charset="utf-8"> <style>body,html{margin:0;box-sizing:border-box}*,:after,:before{box-sizing:inherit}body{font-family:Roboto,-apple-system,Helvetica Neue,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;font-size:16px;width:100vw;height:100vh}.lds-dual-ring{display:inline-block;width:1em;height:1em}.lds-dual-ring:after{content:"";display:block;width:1em;height:1em;border-radius:50%;border:.16em solid;border-color:currentColor transparent currentColor transparent;animation:lds-dual-ring .8s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.footer{background:rgba(0,0,0,.7);position:absolute;left:0;bottom:0;width:100%;color:#fff;padding:12px 16px 24px 16px;box-shadow:0 0 4px rgba(0,0,0,.3)}.button{border:0;background:#1e88e5;color:#fff;font-family:system-ui,sans-serif;font-size:1rem;line-height:1.2;white-space:nowrap;text-decoration:none;padding:.25rem 1rem;margin-left:.5rem;margin-right:.5rem;cursor:pointer;outline:0}.close{border:0;background:0 0;color:#fff;font-size:1rem;text-decoration:none;padding:.25rem .5rem;margin-left:.5rem;margin-right:.5rem;cursor:pointer;outline:0}</style> </head> <body> <div class="footer"> <div> <div class="lds-dual-ring" style="margin-right:.5em"></div> Launching Sync2 ... <button style="float:right" class="close" onclick=\'post("close")\'>&#x2715;</button> </div> <div style="text-align:center;margin-top:.5rem"> <a href="javascript:post(\'lite\')" style="margin-right:2rem;color:#f5f5f5;font-size:90%">Try out Sync2-lite</a> <a class="button" href="javascript:post(\'install\')">Install</a> </div> </div> <script>function post(e){parent.postMessage({src:"connex-helper",action:e},"*")}<\/script> </body> </html>'],{type:"text/html"})),e}(),o=n=>{if(n.data&&"connex-helper"===n.data.src&&n.data.action)switch(n.data.action){case"close":return void(t.parentNode&&(t.parentNode.removeChild(t),window.removeEventListener("message",o)));case"lite":return void function(e){const t=(()=>{switch(u&&u.os){case"iOS":case"android":return{};default:return{target:"sync|"+window.location.host,features:"width=360,height=640,resizable,scrollbars=yes,dependent,modal"}}})();window.open(new URL("#/sign?src="+encodeURIComponent(e),"https://lite.sync.vecha.in/").href,t.target,t.features)}(e);case"install":return void window.open("https://github.com/vechain/sync2/releases")}};return{show(){t.parentNode||(document.body.appendChild(t),window.addEventListener("message",o))},hide(){t.parentNode&&(t.parentNode.removeChild(t),window.removeEventListener("message",o))}}}(new URL(b,a).href);let v=!1;try{yield function(e,t,o,n){return f(this,void 0,void 0,(function*(){const r=new URL(e,o).href;for(let e=0;e<3;e++)try{return yield Promise.race([n,fetch(r,{method:"POST",body:t,headers:new Headers({"Content-Type":"application/json"})})])}catch(e){yield Promise.race([n,m(2e3)])}throw new Error("failed to submit request")}))}(b,p,a,d),(()=>{f(this,void 0,void 0,(function*(){try{yield Promise.race([d,m(1500)]),!v&&g.show()}catch(e){}}))})(),(()=>{f(this,void 0,void 0,(function*(){try{yield w(b,".accepted",6e4,a,d),v=!0,g.hide(),c&&c()}catch(e){}}))})();const e=yield w(b,".resp",6e5,a,d),t=JSON.parse(e);if(t.error)throw new Error(t.error);return t.payload}finally{d.reject(new Error("aborted")),g.hide()}}))}function g(e,t,o,n){return{signTx:(r,i)=>b("tx",r,i,e,t,o,n||p),signCert:(r,i)=>b("cert",r,i,e,t,o,n||p)}}const v=JSON.parse('{"u2":"@vechain/connex-wallet-buddy","i8":"0.1.5"}');console.log(`[${v.u2}] v${v.i8} loaded`)}},t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}return o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(783)})()}));
//# sourceMappingURL=bundle.min.js.map

@@ -44,3 +44,9 @@ import html from '../helper.html';

try {
getHiddenIframe().contentWindow.location.href = `connex:sign?src=${encodeURIComponent(src)}`;
const href = `connex:sign?src=${encodeURIComponent(src)}`;
if (browser && browser.os === 'android') {
window.location.href = href;
}
else {
getHiddenIframe().contentWindow.location.href = href;
}
}

@@ -82,2 +88,2 @@ catch (_a) { }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2hlbHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLElBQUksTUFBTSx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BSSxXQUFXLENBQUMsVUFBVSxFQUFFO3dCQUN4QixXQUFXLENBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQyxXQUFXLENBQUMsQ0FBQTt3QkFDL0MsTUFBTSxDQUFDLG1CQUFtQixDQUFDLFNBQVMsRUFBRSxVQUFVLENBQUMsQ0FBQTtxQkFDcEQ7b0JBQ0QsT0FBTTtnQkFDVixLQUFLLE1BQU07b0JBQ1AsY0FBYyxDQUFDLEdBQUcsQ0FBQyxDQUFBO29CQUNuQixPQUFNO2dCQUNWLEtBQUssU0FBUztvQkFDVixNQUFNLENBQUMsSUFBSSxDQUFDLDJDQUEyQyxDQUFDLENBQUE7b0JBQ3hELE9BQU07YUFDYjtTQUNKO0lBQ0wsQ0FBQyxDQUFBO0lBRUQsT0FBTztRQUNILElBQUk7WUFDQSxJQUFJLENBQUMsV0FBVyxDQUFDLFVBQVUsRUFBRTtnQkFDekIsUUFBUSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsV0FBVyxDQUFDLENBQUE7Z0JBQ3RDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLENBQUE7YUFDakQ7UUFDTCxDQUFDO1FBQ0QsSUFBSTtZQUNBLElBQUksV0FBVyxDQUFDLFVBQVUsRUFBRTtnQkFDeEIsV0FBVyxDQUFDLFVBQVUsQ0FBQyxXQUFXLENBQUMsV0FBVyxDQUFDLENBQUE7Z0JBQy9DLE1BQU0sQ0FBQyxtQkFBbUIsQ0FBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLENBQUE7YUFDcEQ7UUFDTCxDQUFDO0tBQ0osQ0FBQTtBQUNMLENBQUMifQ==
{
"name": "@vechain/connex-wallet-buddy",
"version": "0.1.4",
"version": "0.1.5",
"description": "to bridge connex sign request to wallet",

@@ -5,0 +5,0 @@ "main": "dist/bundle.min.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc