@web3-react/walletlink-connector
Advanced tools
Comparing version 6.0.0-beta.19 to 6.0.0-beta.25
@@ -22,2 +22,2 @@ import { ConnectorUpdate } from '@web3-react/types'; | ||
} | ||
export {}; | ||
export default WalletLinkConnector; |
@@ -162,2 +162,3 @@ 'use strict'; | ||
exports.WalletLinkConnector = WalletLinkConnector; | ||
exports.default = WalletLinkConnector; | ||
//# sourceMappingURL=walletlink-connector.cjs.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var e=require("@web3-react/abstract-connector");function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var t=1;exports.WalletLinkConnector=function(e){var n,o;function c(r){var n,o=r.url,c=r.appName,i=r.appLogoUrl;return(n=e.call(this,{supportedChainIds:[t]})||this).url=o,n.appName=c,n.appLogoUrl=i,n.handleAccountsChanged=n.handleAccountsChanged.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}o=e,(n=c).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var i=c.prototype;return i.handleAccountsChanged=function(e){this.emitUpdate({account:e[0]})},i.activate=function(){try{var e=function(){return n.provider.on("accountsChanged",n.handleAccountsChanged),Promise.resolve(n.provider.send("eth_requestAccounts").then((function(e){return e[0]}))).then((function(e){return{provider:n.provider,chainId:t,account:e}}))},n=this,o=function(){if(!n.walletLink)return Promise.resolve(new Promise((function(e){e(function(e){if(e&&e.__esModule)return e;var r={};return e&&Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r.default=e,r}(require("walletlink")))}))).then((function(e){n.walletLink=new(0,e.default)(r({appName:n.appName},n.appLogoUrl?{appLogoUrl:n.appLogoUrl}:{})),n.provider=n.walletLink.makeWeb3Provider(n.url,t)}))}();return Promise.resolve(o&&o.then?o.then(e):e())}catch(e){return Promise.reject(e)}},i.getProvider=function(){try{return Promise.resolve(this.provider)}catch(e){return Promise.reject(e)}},i.getChainId=function(){return Promise.resolve(t)},i.getAccount=function(){try{return Promise.resolve(this.provider.send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},i.deactivate=function(){this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},c}(e.AbstractConnector); | ||
"use strict";var e=require("@web3-react/abstract-connector");function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var t=1,n=function(e){var n,o;function c(r){var n,o=r.url,c=r.appName,i=r.appLogoUrl;return(n=e.call(this,{supportedChainIds:[t]})||this).url=o,n.appName=c,n.appLogoUrl=i,n.handleAccountsChanged=n.handleAccountsChanged.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}o=e,(n=c).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var i=c.prototype;return i.handleAccountsChanged=function(e){this.emitUpdate({account:e[0]})},i.activate=function(){try{var e=function(){return n.provider.on("accountsChanged",n.handleAccountsChanged),Promise.resolve(n.provider.send("eth_requestAccounts").then((function(e){return e[0]}))).then((function(e){return{provider:n.provider,chainId:t,account:e}}))},n=this,o=function(){if(!n.walletLink)return Promise.resolve(new Promise((function(e){e(function(e){if(e&&e.__esModule)return e;var r={};return e&&Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r.default=e,r}(require("walletlink")))}))).then((function(e){n.walletLink=new(0,e.default)(r({appName:n.appName},n.appLogoUrl?{appLogoUrl:n.appLogoUrl}:{})),n.provider=n.walletLink.makeWeb3Provider(n.url,t)}))}();return Promise.resolve(o&&o.then?o.then(e):e())}catch(e){return Promise.reject(e)}},i.getProvider=function(){try{return Promise.resolve(this.provider)}catch(e){return Promise.reject(e)}},i.getChainId=function(){return Promise.resolve(t)},i.getAccount=function(){try{return Promise.resolve(this.provider.send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},i.deactivate=function(){this.provider.removeListener("accountsChanged",this.handleAccountsChanged)},c}(e.AbstractConnector);exports.WalletLinkConnector=n,exports.default=n; | ||
//# sourceMappingURL=walletlink-connector.cjs.production.min.js.map |
@@ -140,3 +140,4 @@ import { AbstractConnector } from '@web3-react/abstract-connector'; | ||
export default WalletLinkConnector; | ||
export { WalletLinkConnector }; | ||
//# sourceMappingURL=walletlink-connector.esm.js.map |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.0.0-beta.19", | ||
"version": "6.0.0-beta.25", | ||
"description": "A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@web3-react/abstract-connector": "^6.0.0-beta.19", | ||
"@web3-react/abstract-connector": "^6.0.0-beta.25", | ||
"@web3-react/types": "^6.0.0-beta.19", | ||
@@ -45,3 +45,3 @@ "walletlink": "^1.0.0" | ||
"license": "GPL-3.0-or-later", | ||
"gitHead": "7b8d625c3ea9b416a5de0a898af560c17a5be680" | ||
"gitHead": "d338f3db4ff9ca5ad24aa6bf687ad638072ce7b4" | ||
} |
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
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
58861
290