@0xsequence/provider
Advanced tools
Comparing version 0.10.6 to 0.10.7
# @0xsequence/provider | ||
## 0.10.7 | ||
### Patch Changes | ||
- allow provider transport to force disconnect | ||
- Updated dependencies [undefined] | ||
- @0xsequence/abi@0.10.7 | ||
- @0xsequence/auth@0.10.7 | ||
- @0xsequence/config@0.10.7 | ||
- @0xsequence/network@0.10.7 | ||
- @0xsequence/transactions@0.10.7 | ||
- @0xsequence/utils@0.10.7 | ||
- @0xsequence/wallet@0.10.7 | ||
## 0.10.6 | ||
@@ -4,0 +18,0 @@ |
{ | ||
"name": "@0xsequence/provider", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"description": "provider sub-package for Sequence", | ||
@@ -16,9 +16,9 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider", | ||
"dependencies": { | ||
"@0xsequence/abi": "^0.10.6", | ||
"@0xsequence/auth": "^0.10.6", | ||
"@0xsequence/config": "^0.10.6", | ||
"@0xsequence/network": "^0.10.6", | ||
"@0xsequence/transactions": "^0.10.6", | ||
"@0xsequence/utils": "^0.10.6", | ||
"@0xsequence/wallet": "^0.10.6", | ||
"@0xsequence/abi": "^0.10.7", | ||
"@0xsequence/auth": "^0.10.7", | ||
"@0xsequence/config": "^0.10.7", | ||
"@0xsequence/network": "^0.10.7", | ||
"@0xsequence/transactions": "^0.10.7", | ||
"@0xsequence/utils": "^0.10.7", | ||
"@0xsequence/wallet": "^0.10.7", | ||
"@ethersproject/abstract-signer": "5.0.14", | ||
@@ -25,0 +25,0 @@ "@ethersproject/hash": "^5.0.12", |
@@ -199,2 +199,8 @@ import EventEmitter from 'eventemitter3' | ||
// NOTIFY DISCONNECT -- when wallet instructs to disconnect | ||
if (message.type === ProviderMessageType.DISCONNECT) { | ||
if (this.isConnected()) { | ||
this.disconnect() | ||
} | ||
} | ||
} | ||
@@ -201,0 +207,0 @@ |
@@ -1,4 +0,3 @@ | ||
import { BaseProviderTransport, nextMessageIdx } from '../base-provider-transport' | ||
import { | ||
ProviderMessage, ProviderMessageResponseCallback, ProviderMessageType, ProviderTransport, | ||
ProviderMessage, ProviderMessageType, ProviderTransport, | ||
ProviderMessageEvent, ProviderMessageRequest, ProviderMessageResponse, WalletSession | ||
@@ -5,0 +4,0 @@ } from '../../types' |
@@ -24,2 +24,3 @@ import EventEmitter from 'eventemitter3' | ||
// handle messages which hit this port | ||
handleMessage = (message: ProviderMessage<any>): void => { | ||
@@ -29,2 +30,3 @@ throw new Error('ProxyMessageChannelPort is not registered') | ||
// send messages to the connected port | ||
sendMessage = (message: ProviderMessage<any>): void => { | ||
@@ -31,0 +33,0 @@ this.conn.handleMessage(message) |
@@ -1,7 +0,5 @@ | ||
import { BaseProviderTransport, nextMessageIdx } from '../base-provider-transport' | ||
import { BaseProviderTransport } from '../base-provider-transport' | ||
import { | ||
ProviderMessageResponse, | ||
ProviderMessage, ProviderMessageResponseCallback, ProviderMessageType, | ||
ProviderMessageRequest, ProviderMessageTransport, ConnectionState | ||
ProviderMessage, ConnectionState | ||
} from '../../types' | ||
@@ -8,0 +6,0 @@ |
@@ -78,2 +78,3 @@ import { ProviderMessage } from '../../types' | ||
// const popup = window.open(walletURL.href, 'sequence.app', windowFeatures) | ||
const popup = window.open(walletURL.href, 'sequenceWalletApp', windowFeatures) | ||
@@ -80,0 +81,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
373372
9074
Updated@0xsequence/abi@^0.10.7
Updated@0xsequence/auth@^0.10.7
Updated@0xsequence/config@^0.10.7
Updated@0xsequence/network@^0.10.7
Updated@0xsequence/utils@^0.10.7
Updated@0xsequence/wallet@^0.10.7