Skip to content

Commit

Permalink
publish 2.2.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Aug 5, 2021
1 parent 17403fb commit 884d44d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
22 changes: 8 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ require('regenerator-runtime/runtime');

var name = "@myetherwallet/mewconnect-web-client";
var homepage = "https://github.com/myetherwallet/MEWconnect-web-client";
var version = "2.1.23-beta.9";
var version = "2.2.0-beta.1";
var main = "./dist/index.js";
var module$1 = "./src/index.js";
var scripts = {
Expand Down Expand Up @@ -4936,7 +4936,11 @@ class MewConnectInitiator extends MewConnectCommon {

this.mewCrypto = options.cryptoImpl || MewConnectCrypto.create();
this.webRtcCommunication = new WebRtcCommunication(this.mewCrypto);
this.popupCreator = options.popupCreator ? options.popupCreator : options.newPopupCreator ? new PopUpCreator() : undefined;
this.popupCreator = options.popupCreator
? options.popupCreator
: options.newPopupCreator
? new PopUpCreator()
: undefined;

debugConnectionState(
'Initial Connection State:',
Expand Down Expand Up @@ -4971,13 +4975,9 @@ class MewConnectInitiator extends MewConnectCommon {
return MewConnectInitiator.connectionState;
}

async createWalletOnly(network){
async createWalletOnly(network) {
this.popUpHandler = new PopUpHandler();
return createWallet(
{ network },
this.popupCreator,
this.popUpHandler
);
return createWallet({ network }, this.popupCreator, this.popUpHandler);
}

isAlive() {
Expand Down Expand Up @@ -6346,7 +6346,6 @@ class WSProvider {
});
};
this.wsProvider.request = payload => {
console.log('request wss', payload);
return new Promise((resolve, reject) => {
this.wsProvider.send(
{
Expand Down Expand Up @@ -6384,7 +6383,6 @@ class HttpRequestManager {
return new web3CoreRequestmanager.Manager(this);
}
send(payload, callback) {
console.log(payload, this.host);
this.request
.post(this.host, payload)
.then(result => {
Expand Down Expand Up @@ -6484,7 +6482,6 @@ class HttpProvider {
}
};
this.httpProvider.request = payload => {
console.log('request http', payload);
return new Promise((resolve, reject) => {
this.httpProvider.send(
{
Expand Down Expand Up @@ -7212,16 +7209,13 @@ class Integration extends EventEmitter {
.signTransaction(tx)
.then(_response => {
if (!_response) return;
console.log(_response, '87768687686--------');
if (!state.knownHashes.includes(_response.tx.hash)) {
console.log(_response, '87768687686--------', 1);
state.knownHashes.push(_response.tx.hash);
this.popUpHandler.showNoticePersistentExit();
resolve(_response);
}
})
.catch(err => {
console.log('87768687686--------', 2, err);
this.popUpHandler.showNoticePersistentExit();
if (err.reject) {
this.popUpHandler.noShow();
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@myetherwallet/mewconnect-web-client",
"homepage": "https://github.com/myetherwallet/MEWconnect-web-client",
"version": "2.1.23-beta.9",
"version": "2.2.0-beta.1",
"main": "./dist/index.js",
"module": "./src/index.js",
"scripts": {
Expand Down

0 comments on commit 884d44d

Please sign in to comment.