@dynamic-labs/wallet-connector-core 0.18.1 → 0.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.18.4](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.2...v0.18.4) (2023-08-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* always init magic connectors when enabled ([#3018](https://github.com/dynamic-labs/DynamicAuth/issues/3018)) ([e6bb091](https://github.com/dynamic-labs/DynamicAuth/commit/e6bb091d2b5b58242ecd9268496a69e92f840773)), closes [#3014](https://github.com/dynamic-labs/DynamicAuth/issues/3014)
|
|
8
|
+
* guard against null or undefined provider value when logging in w… ([#3027](https://github.com/dynamic-labs/DynamicAuth/issues/3027)) ([7354d5f](https://github.com/dynamic-labs/DynamicAuth/commit/7354d5f1a68603143ddd10d0b2ddb5283ec29ff1)), closes [#3021](https://github.com/dynamic-labs/DynamicAuth/issues/3021)
|
|
9
|
+
* issue where walletconnectors are instantiated without walletbook ([#3020](https://github.com/dynamic-labs/DynamicAuth/issues/3020)) ([#3032](https://github.com/dynamic-labs/DynamicAuth/issues/3032)) ([4452165](https://github.com/dynamic-labs/DynamicAuth/commit/4452165962856ba3ef0dc7aa6b41101fb8c48ad7))
|
|
10
|
+
* only use the production api environment of magicLink ([#3023](https://github.com/dynamic-labs/DynamicAuth/issues/3023)) ([767a1a5](https://github.com/dynamic-labs/DynamicAuth/commit/767a1a59074e992c446632a399f1b45bb0b759a0))
|
|
11
|
+
* switching network in connected state should update wallets to connect list ([#3029](https://github.com/dynamic-labs/DynamicAuth/issues/3029)) ([f07c993](https://github.com/dynamic-labs/DynamicAuth/commit/f07c993792824ce1b1390e38c2bcdb27b5d6ab73))
|
|
12
|
+
|
|
13
|
+
### [0.18.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.1...v0.18.2) (2023-08-15)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* fix twitter linking ([#2918](https://github.com/dynamic-labs/DynamicAuth/issues/2918)) ([#3002](https://github.com/dynamic-labs/DynamicAuth/issues/3002)) ([e75a6bb](https://github.com/dynamic-labs/DynamicAuth/commit/e75a6bbe4a3751bf246ccffa0fe728c68d16441e))
|
|
19
|
+
* use ETH currency symbol for STARK chains ([#3005](https://github.com/dynamic-labs/DynamicAuth/issues/3005)) ([#3007](https://github.com/dynamic-labs/DynamicAuth/issues/3007)) ([1f4bca8](https://github.com/dynamic-labs/DynamicAuth/commit/1f4bca86ce68e37e33543d5b1cf11421d48c0aa6))
|
|
20
|
+
|
|
2
21
|
### [0.18.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0...v0.18.1) (2023-08-15)
|
|
3
22
|
|
|
4
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@dynamic-labs/logger": "0.18.
|
|
31
|
-
"@dynamic-labs/rpc-providers": "0.18.
|
|
32
|
-
"@dynamic-labs/utils": "0.18.
|
|
33
|
-
"@dynamic-labs/wallet-book": "0.18.
|
|
30
|
+
"@dynamic-labs/logger": "0.18.4",
|
|
31
|
+
"@dynamic-labs/rpc-providers": "0.18.4",
|
|
32
|
+
"@dynamic-labs/utils": "0.18.4",
|
|
33
|
+
"@dynamic-labs/wallet-book": "0.18.4",
|
|
34
34
|
"eventemitter3": "5.0.1"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -91,7 +91,10 @@ class WalletConnectorBase extends EventEmitter__default["default"] {
|
|
|
91
91
|
*/
|
|
92
92
|
this.isInitialized = true;
|
|
93
93
|
this.constructorProps = props;
|
|
94
|
-
this._walletBookInstance = WalletBookSingleton.WalletBookSingleton.getOrCreate(props
|
|
94
|
+
this._walletBookInstance = WalletBookSingleton.WalletBookSingleton.getOrCreate(props.walletBook);
|
|
95
|
+
if (this.walletBook === undefined) {
|
|
96
|
+
throw new Error('WalletConnectorBase was not called with super(props) and is missing wallet-book');
|
|
97
|
+
}
|
|
95
98
|
}
|
|
96
99
|
/**
|
|
97
100
|
* Add the event listeners for the wallet and connect
|
|
@@ -55,7 +55,9 @@ export declare abstract class WalletConnectorBase extends EventEmitter<WalletCon
|
|
|
55
55
|
* but will need the original constructor props.
|
|
56
56
|
* @param props - constructor props
|
|
57
57
|
*/
|
|
58
|
-
constructor(props
|
|
58
|
+
constructor(props: {
|
|
59
|
+
walletBook: WalletBookSchema;
|
|
60
|
+
});
|
|
59
61
|
didSetup: boolean;
|
|
60
62
|
/**
|
|
61
63
|
* Add the event listeners for the wallet and connect
|
|
@@ -83,7 +83,10 @@ class WalletConnectorBase extends EventEmitter {
|
|
|
83
83
|
*/
|
|
84
84
|
this.isInitialized = true;
|
|
85
85
|
this.constructorProps = props;
|
|
86
|
-
this._walletBookInstance = WalletBookSingleton.getOrCreate(props
|
|
86
|
+
this._walletBookInstance = WalletBookSingleton.getOrCreate(props.walletBook);
|
|
87
|
+
if (this.walletBook === undefined) {
|
|
88
|
+
throw new Error('WalletConnectorBase was not called with super(props) and is missing wallet-book');
|
|
89
|
+
}
|
|
87
90
|
}
|
|
88
91
|
/**
|
|
89
92
|
* Add the event listeners for the wallet and connect
|