@dynamic-labs/solana 1.4.0 → 1.4.2
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,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [1.4.2](https://github.com/dynamic-labs/DynamicAuth/compare/v1.4.1...v1.4.2) (2024-03-26)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* solflare wallet connection improvements ([af9c2ba](https://github.com/dynamic-labs/DynamicAuth/commit/af9c2ba6be9f0c4e888b79dbfbbf723faf0f4382))
|
|
8
|
+
|
|
9
|
+
### [1.4.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.4.0...v1.4.1) (2024-03-22)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* validate user session whenever user is connected/authenticated ([#5079](https://github.com/dynamic-labs/DynamicAuth/issues/5079)) ([d346cef](https://github.com/dynamic-labs/DynamicAuth/commit/d346cefb027305e43020b2a3b48a83bafeae4131))
|
|
15
|
+
|
|
2
16
|
## [1.4.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.3.1...v1.4.0) (2024-03-21)
|
|
3
17
|
|
|
4
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@dynamic-labs/sdk-api": "0.0.387",
|
|
31
31
|
"bs58": "^5.0.0",
|
|
32
32
|
"tweetnacl": "^1.0.3",
|
|
33
|
-
"@dynamic-labs/rpc-providers": "1.4.
|
|
34
|
-
"@dynamic-labs/turnkey": "1.4.
|
|
35
|
-
"@dynamic-labs/types": "1.4.
|
|
36
|
-
"@dynamic-labs/utils": "1.4.
|
|
37
|
-
"@dynamic-labs/wallet-book": "1.4.
|
|
38
|
-
"@dynamic-labs/wallet-connector-core": "1.4.
|
|
33
|
+
"@dynamic-labs/rpc-providers": "1.4.2",
|
|
34
|
+
"@dynamic-labs/turnkey": "1.4.2",
|
|
35
|
+
"@dynamic-labs/types": "1.4.2",
|
|
36
|
+
"@dynamic-labs/utils": "1.4.2",
|
|
37
|
+
"@dynamic-labs/wallet-book": "1.4.2",
|
|
38
|
+
"@dynamic-labs/wallet-connector-core": "1.4.2",
|
|
39
39
|
"eventemitter3": "5.0.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {}
|
package/src/Solflare.cjs
CHANGED
|
@@ -59,7 +59,7 @@ class Solflare extends InjectedWalletBase.InjectedWalletBase {
|
|
|
59
59
|
getConnectedAccounts() {
|
|
60
60
|
var _a;
|
|
61
61
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
const provider =
|
|
62
|
+
const provider = this.getProvider();
|
|
63
63
|
if (!provider)
|
|
64
64
|
return [];
|
|
65
65
|
const publicKey = (_a = provider.publicKey) === null || _a === void 0 ? void 0 : _a.toString();
|
package/src/Solflare.js
CHANGED
|
@@ -55,7 +55,7 @@ class Solflare extends InjectedWalletBase {
|
|
|
55
55
|
getConnectedAccounts() {
|
|
56
56
|
var _a;
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
const provider =
|
|
58
|
+
const provider = this.getProvider();
|
|
59
59
|
if (!provider)
|
|
60
60
|
return [];
|
|
61
61
|
const publicKey = (_a = provider.publicKey) === null || _a === void 0 ? void 0 : _a.toString();
|
|
@@ -18,6 +18,10 @@ class InjectedWalletBase extends solWalletConnector.SolWalletConnector {
|
|
|
18
18
|
}
|
|
19
19
|
return this.solProviderHelper;
|
|
20
20
|
}
|
|
21
|
+
getProvider() {
|
|
22
|
+
var _a;
|
|
23
|
+
return (_a = this.getSolProviderHelper()) === null || _a === void 0 ? void 0 : _a.getInstalledProvider();
|
|
24
|
+
}
|
|
21
25
|
setupEventListeners() {
|
|
22
26
|
var _a;
|
|
23
27
|
(_a = this.getSolProviderHelper()) === null || _a === void 0 ? void 0 : _a._setupEventListeners(this);
|
|
@@ -6,6 +6,7 @@ export declare abstract class InjectedWalletBase extends SolWalletConnector {
|
|
|
6
6
|
solProviderHelper: SolProviderHelper | undefined;
|
|
7
7
|
wallet: WalletSchema | undefined;
|
|
8
8
|
getSolProviderHelper(): SolProviderHelper | undefined;
|
|
9
|
+
getProvider(): ISolana | undefined;
|
|
9
10
|
setupEventListeners(): void;
|
|
10
11
|
teardownEventListeners(): void;
|
|
11
12
|
connect(): Promise<void>;
|
|
@@ -14,6 +14,10 @@ class InjectedWalletBase extends SolWalletConnector {
|
|
|
14
14
|
}
|
|
15
15
|
return this.solProviderHelper;
|
|
16
16
|
}
|
|
17
|
+
getProvider() {
|
|
18
|
+
var _a;
|
|
19
|
+
return (_a = this.getSolProviderHelper()) === null || _a === void 0 ? void 0 : _a.getInstalledProvider();
|
|
20
|
+
}
|
|
17
21
|
setupEventListeners() {
|
|
18
22
|
var _a;
|
|
19
23
|
(_a = this.getSolProviderHelper()) === null || _a === void 0 ? void 0 : _a._setupEventListeners(this);
|