@solana-mobile/wallet-adapter-mobile 0.9.8 → 1.0.0
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/lib/cjs/index.browser.js +6 -0
- package/lib/cjs/index.js +6 -0
- package/lib/cjs/index.native.js +6 -0
- package/lib/esm/index.browser.js +6 -0
- package/lib/esm/index.js +6 -0
- package/lib/types/index.browser.d.ts +2 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.native.d.ts +2 -0
- package/package.json +3 -4
package/lib/cjs/index.browser.js
CHANGED
|
@@ -123,7 +123,13 @@ class SolanaMobileWalletAdapter extends walletAdapterBase.BaseMessageSignerWalle
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
126
127
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED() {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
return yield this.autoConnect();
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
autoConnect() {
|
|
127
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
134
|
if (this.connecting || this.connected) {
|
|
129
135
|
return;
|
package/lib/cjs/index.js
CHANGED
|
@@ -123,7 +123,13 @@ class SolanaMobileWalletAdapter extends walletAdapterBase.BaseMessageSignerWalle
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
126
127
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED() {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
return yield this.autoConnect();
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
autoConnect() {
|
|
127
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
134
|
if (this.connecting || this.connected) {
|
|
129
135
|
return;
|
package/lib/cjs/index.native.js
CHANGED
|
@@ -120,7 +120,13 @@ class SolanaMobileWalletAdapter extends walletAdapterBase.BaseMessageSignerWalle
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
123
124
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED() {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
return yield this.autoConnect();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
autoConnect() {
|
|
124
130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
125
131
|
if (this.connecting || this.connected) {
|
|
126
132
|
return;
|
package/lib/esm/index.browser.js
CHANGED
|
@@ -119,7 +119,13 @@ class SolanaMobileWalletAdapter extends BaseMessageSignerWalletAdapter {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
122
123
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED() {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
return yield this.autoConnect();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
autoConnect() {
|
|
123
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
130
|
if (this.connecting || this.connected) {
|
|
125
131
|
return;
|
package/lib/esm/index.js
CHANGED
|
@@ -119,7 +119,13 @@ class SolanaMobileWalletAdapter extends BaseMessageSignerWalletAdapter {
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
122
123
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED() {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
return yield this.autoConnect();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
autoConnect() {
|
|
123
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
124
130
|
if (this.connecting || this.connected) {
|
|
125
131
|
return;
|
|
@@ -45,7 +45,9 @@ declare class SolanaMobileWalletAdapter extends BaseMessageSignerWalletAdapter {
|
|
|
45
45
|
get readyState(): WalletReadyState;
|
|
46
46
|
private declareWalletAsInstalled;
|
|
47
47
|
private runWithGuard;
|
|
48
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
48
49
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(): Promise<void>;
|
|
50
|
+
autoConnect(): Promise<void>;
|
|
49
51
|
connect(): Promise<void>;
|
|
50
52
|
private handleAuthorizationResult;
|
|
51
53
|
private performReauthorization;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -45,7 +45,9 @@ declare class SolanaMobileWalletAdapter extends BaseMessageSignerWalletAdapter {
|
|
|
45
45
|
get readyState(): WalletReadyState;
|
|
46
46
|
private declareWalletAsInstalled;
|
|
47
47
|
private runWithGuard;
|
|
48
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
48
49
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(): Promise<void>;
|
|
50
|
+
autoConnect(): Promise<void>;
|
|
49
51
|
connect(): Promise<void>;
|
|
50
52
|
private handleAuthorizationResult;
|
|
51
53
|
private performReauthorization;
|
|
@@ -45,7 +45,9 @@ declare class SolanaMobileWalletAdapter extends BaseMessageSignerWalletAdapter {
|
|
|
45
45
|
get readyState(): WalletReadyState;
|
|
46
46
|
private declareWalletAsInstalled;
|
|
47
47
|
private runWithGuard;
|
|
48
|
+
/** @deprecated Use `autoConnect()` instead. */
|
|
48
49
|
autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(): Promise<void>;
|
|
50
|
+
autoConnect(): Promise<void>;
|
|
49
51
|
connect(): Promise<void>;
|
|
50
52
|
private handleAuthorizationResult;
|
|
51
53
|
private performReauthorization;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana-mobile/wallet-adapter-mobile",
|
|
3
3
|
"description": "An adapter for mobile wallet apps that conform to the Solana Mobile Wallet Adapter protocol",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"author": "Steven Luscher <steven.luscher@solanamobile.com>",
|
|
6
6
|
"repository": "https://github.com/solana-mobile/mobile-wallet-adapter",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@react-native-async-storage/async-storage": "^1.17.7",
|
|
44
|
-
"@solana-mobile/mobile-wallet-adapter-protocol-web3js": "^0.
|
|
44
|
+
"@solana-mobile/mobile-wallet-adapter-protocol-web3js": "^1.0.0",
|
|
45
45
|
"@solana/wallet-adapter-base": "^0.9.17",
|
|
46
46
|
"js-base64": "^3.7.2"
|
|
47
47
|
},
|
|
@@ -50,6 +50,5 @@
|
|
|
50
50
|
"agadoo": "^2.0.0",
|
|
51
51
|
"cross-env": "^7.0.3",
|
|
52
52
|
"shx": "^0.3.4"
|
|
53
|
-
}
|
|
54
|
-
"gitHead": "040622228152826e029bc613f7c6b4b14eefb138"
|
|
53
|
+
}
|
|
55
54
|
}
|