@web3-react/walletlink-connector
Advanced tools
Comparing version 6.1.6 to 6.1.9
@@ -45,5 +45,15 @@ 'use strict'; | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
var CHAIN_ID = 1; | ||
@@ -74,2 +84,4 @@ var WalletLinkConnector = /*#__PURE__*/function (_AbstractConnector) { | ||
try { | ||
var _this3 = this; | ||
var _temp3 = function _temp3() { | ||
@@ -87,4 +99,2 @@ return Promise.resolve(_this3.provider.send('eth_requestAccounts').then(function (accounts) { | ||
var _this3 = this; | ||
var _temp4 = function () { | ||
@@ -91,0 +101,0 @@ if (!_this3.walletLink) { |
@@ -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)}exports.WalletLinkConnector=function(e){var t,n;function o(r){var t,n=r.url,o=r.appName,i=r.appLogoUrl,c=r.darkMode;return(t=e.call(this,{supportedChainIds:[1]})||this).url=n,t.appName=o,t.appLogoUrl=i,t.darkMode=c||!1,t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=o.prototype;return i.activate=function(){try{var e=function(){return Promise.resolve(t.provider.send("eth_requestAccounts").then((function(e){return e[0]}))).then((function(e){return{provider:t.provider,chainId:1,account:e}}))},t=this,n=function(){if(!t.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){var r;return null!=(r=null==e?void 0:e.default)?r:e}))).then((function(e){t.walletLink=new e(r({appName:t.appName,darkMode:t.darkMode},t.appLogoUrl?{appLogoUrl:t.appLogoUrl}:{})),t.provider=t.walletLink.makeWeb3Provider(t.url,1)}))}();return Promise.resolve(n&&n.then?n.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(1)},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(){},i.close=function(){try{return this.provider.close(),this.emitDeactivate(),Promise.resolve()}catch(e){return Promise.reject(e)}},o}(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)}function t(e,r){return(t=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}exports.WalletLinkConnector=function(e){var n,o;function i(r){var t,n=r.url,o=r.appName,i=r.appLogoUrl,c=r.darkMode;return(t=e.call(this,{supportedChainIds:[1]})||this).url=n,t.appName=o,t.appLogoUrl=i,t.darkMode=c||!1,t}o=e,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,t(n,o);var c=i.prototype;return c.activate=function(){try{var e=this,t=function(){return Promise.resolve(e.provider.send("eth_requestAccounts").then((function(e){return e[0]}))).then((function(r){return{provider:e.provider,chainId:1,account:r}}))},n=function(){if(!e.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){var r;return null!=(r=null==e?void 0:e.default)?r:e}))).then((function(t){e.walletLink=new t(r({appName:e.appName,darkMode:e.darkMode},e.appLogoUrl?{appLogoUrl:e.appLogoUrl}:{})),e.provider=e.walletLink.makeWeb3Provider(e.url,1)}))}();return Promise.resolve(n&&n.then?n.then(t):t())}catch(e){return Promise.reject(e)}},c.getProvider=function(){try{return Promise.resolve(this.provider)}catch(e){return Promise.reject(e)}},c.getChainId=function(){return Promise.resolve(1)},c.getAccount=function(){try{return Promise.resolve(this.provider.send("eth_accounts").then((function(e){return e[0]})))}catch(e){return Promise.reject(e)}},c.deactivate=function(){},c.close=function(){try{return this.provider.close(),this.emitDeactivate(),Promise.resolve()}catch(e){return Promise.reject(e)}},i}(e.AbstractConnector); | ||
//# sourceMappingURL=walletlink-connector.cjs.production.min.js.map |
@@ -24,5 +24,15 @@ import { AbstractConnector } from '@web3-react/abstract-connector'; | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
var CHAIN_ID = 1; | ||
@@ -53,2 +63,4 @@ var WalletLinkConnector = /*#__PURE__*/function (_AbstractConnector) { | ||
try { | ||
var _this3 = this; | ||
var _temp3 = function _temp3() { | ||
@@ -66,4 +78,2 @@ return Promise.resolve(_this3.provider.send('eth_requestAccounts').then(function (accounts) { | ||
var _this3 = this; | ||
var _temp4 = function () { | ||
@@ -70,0 +80,0 @@ if (!_this3.walletLink) { |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.1.6", | ||
"version": "6.1.9", | ||
"description": "A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"license": "GPL-3.0-or-later", | ||
"gitHead": "76ea41240edb3af089ddbba14001060e811bad3f" | ||
"gitHead": "fe26e6706a08ec46cef3c1711e3838d1547f7663" | ||
} |
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
58122
293