@solana-mobile/wallet-adapter-mobile 2.2.0 → 2.2.3
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 +2 -18
- package/lib/cjs/index.js +2 -18
- package/lib/cjs/index.native.js +2 -18
- package/lib/esm/index.browser.js +2 -18
- package/lib/esm/index.js +2 -18
- package/package.json +28 -16
package/lib/cjs/index.browser.js
CHANGED
|
@@ -450,15 +450,7 @@ class LocalSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
450
450
|
authorizationCache: {
|
|
451
451
|
set: config.authorizationResultCache.set,
|
|
452
452
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
453
|
-
|
|
454
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
455
|
-
return authorizationResult;
|
|
456
|
-
}
|
|
457
|
-
else if (authorizationResult) {
|
|
458
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
459
|
-
}
|
|
460
|
-
else
|
|
461
|
-
return undefined;
|
|
453
|
+
return yield config.authorizationResultCache.get();
|
|
462
454
|
}),
|
|
463
455
|
clear: config.authorizationResultCache.clear,
|
|
464
456
|
},
|
|
@@ -481,15 +473,7 @@ class RemoteSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
481
473
|
authorizationCache: {
|
|
482
474
|
set: config.authorizationResultCache.set,
|
|
483
475
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
484
|
-
|
|
485
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
486
|
-
return authorizationResult;
|
|
487
|
-
}
|
|
488
|
-
else if (authorizationResult) {
|
|
489
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
490
|
-
}
|
|
491
|
-
else
|
|
492
|
-
return undefined;
|
|
476
|
+
return yield config.authorizationResultCache.get();
|
|
493
477
|
}),
|
|
494
478
|
clear: config.authorizationResultCache.clear,
|
|
495
479
|
},
|
package/lib/cjs/index.js
CHANGED
|
@@ -450,15 +450,7 @@ class LocalSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
450
450
|
authorizationCache: {
|
|
451
451
|
set: config.authorizationResultCache.set,
|
|
452
452
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
453
|
-
|
|
454
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
455
|
-
return authorizationResult;
|
|
456
|
-
}
|
|
457
|
-
else if (authorizationResult) {
|
|
458
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
459
|
-
}
|
|
460
|
-
else
|
|
461
|
-
return undefined;
|
|
453
|
+
return yield config.authorizationResultCache.get();
|
|
462
454
|
}),
|
|
463
455
|
clear: config.authorizationResultCache.clear,
|
|
464
456
|
},
|
|
@@ -481,15 +473,7 @@ class RemoteSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
481
473
|
authorizationCache: {
|
|
482
474
|
set: config.authorizationResultCache.set,
|
|
483
475
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
484
|
-
|
|
485
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
486
|
-
return authorizationResult;
|
|
487
|
-
}
|
|
488
|
-
else if (authorizationResult) {
|
|
489
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
490
|
-
}
|
|
491
|
-
else
|
|
492
|
-
return undefined;
|
|
476
|
+
return yield config.authorizationResultCache.get();
|
|
493
477
|
}),
|
|
494
478
|
clear: config.authorizationResultCache.clear,
|
|
495
479
|
},
|
package/lib/cjs/index.native.js
CHANGED
|
@@ -450,15 +450,7 @@ class LocalSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
450
450
|
authorizationCache: {
|
|
451
451
|
set: config.authorizationResultCache.set,
|
|
452
452
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
453
|
-
|
|
454
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
455
|
-
return authorizationResult;
|
|
456
|
-
}
|
|
457
|
-
else if (authorizationResult) {
|
|
458
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
459
|
-
}
|
|
460
|
-
else
|
|
461
|
-
return undefined;
|
|
453
|
+
return yield config.authorizationResultCache.get();
|
|
462
454
|
}),
|
|
463
455
|
clear: config.authorizationResultCache.clear,
|
|
464
456
|
},
|
|
@@ -481,15 +473,7 @@ class RemoteSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
481
473
|
authorizationCache: {
|
|
482
474
|
set: config.authorizationResultCache.set,
|
|
483
475
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
484
|
-
|
|
485
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
486
|
-
return authorizationResult;
|
|
487
|
-
}
|
|
488
|
-
else if (authorizationResult) {
|
|
489
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
490
|
-
}
|
|
491
|
-
else
|
|
492
|
-
return undefined;
|
|
476
|
+
return yield config.authorizationResultCache.get();
|
|
493
477
|
}),
|
|
494
478
|
clear: config.authorizationResultCache.clear,
|
|
495
479
|
},
|
package/lib/esm/index.browser.js
CHANGED
|
@@ -446,15 +446,7 @@ class LocalSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
446
446
|
authorizationCache: {
|
|
447
447
|
set: config.authorizationResultCache.set,
|
|
448
448
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
449
|
-
|
|
450
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
451
|
-
return authorizationResult;
|
|
452
|
-
}
|
|
453
|
-
else if (authorizationResult) {
|
|
454
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
455
|
-
}
|
|
456
|
-
else
|
|
457
|
-
return undefined;
|
|
449
|
+
return yield config.authorizationResultCache.get();
|
|
458
450
|
}),
|
|
459
451
|
clear: config.authorizationResultCache.clear,
|
|
460
452
|
},
|
|
@@ -477,15 +469,7 @@ class RemoteSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
477
469
|
authorizationCache: {
|
|
478
470
|
set: config.authorizationResultCache.set,
|
|
479
471
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
480
|
-
|
|
481
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
482
|
-
return authorizationResult;
|
|
483
|
-
}
|
|
484
|
-
else if (authorizationResult) {
|
|
485
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
486
|
-
}
|
|
487
|
-
else
|
|
488
|
-
return undefined;
|
|
472
|
+
return yield config.authorizationResultCache.get();
|
|
489
473
|
}),
|
|
490
474
|
clear: config.authorizationResultCache.clear,
|
|
491
475
|
},
|
package/lib/esm/index.js
CHANGED
|
@@ -446,15 +446,7 @@ class LocalSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
446
446
|
authorizationCache: {
|
|
447
447
|
set: config.authorizationResultCache.set,
|
|
448
448
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
449
|
-
|
|
450
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
451
|
-
return authorizationResult;
|
|
452
|
-
}
|
|
453
|
-
else if (authorizationResult) {
|
|
454
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
455
|
-
}
|
|
456
|
-
else
|
|
457
|
-
return undefined;
|
|
449
|
+
return yield config.authorizationResultCache.get();
|
|
458
450
|
}),
|
|
459
451
|
clear: config.authorizationResultCache.clear,
|
|
460
452
|
},
|
|
@@ -477,15 +469,7 @@ class RemoteSolanaMobileWalletAdapter extends BaseSolanaMobileWalletAdapter {
|
|
|
477
469
|
authorizationCache: {
|
|
478
470
|
set: config.authorizationResultCache.set,
|
|
479
471
|
get: () => __awaiter(this, void 0, void 0, function* () {
|
|
480
|
-
|
|
481
|
-
if (authorizationResult && 'chain' in authorizationResult) {
|
|
482
|
-
return authorizationResult;
|
|
483
|
-
}
|
|
484
|
-
else if (authorizationResult) {
|
|
485
|
-
return Object.assign(Object.assign({}, authorizationResult), { chain: chain });
|
|
486
|
-
}
|
|
487
|
-
else
|
|
488
|
-
return undefined;
|
|
472
|
+
return yield config.authorizationResultCache.get();
|
|
489
473
|
}),
|
|
490
474
|
clear: config.authorizationResultCache.clear,
|
|
491
475
|
},
|
package/package.json
CHANGED
|
@@ -1,35 +1,47 @@
|
|
|
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": "2.2.
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"author": "Steven Luscher <steven.luscher@solanamobile.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/solana-mobile/mobile-wallet-adapter.git"
|
|
9
9
|
},
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
"exports": {
|
|
12
|
+
"edge-light": {
|
|
13
|
+
"import": "./lib/esm/index.js",
|
|
14
|
+
"require": "./lib/cjs/index.js"
|
|
15
|
+
},
|
|
16
|
+
"workerd": {
|
|
17
|
+
"import": "./lib/esm/index.js",
|
|
18
|
+
"require": "./lib/cjs/index.js"
|
|
19
|
+
},
|
|
20
|
+
"browser": {
|
|
21
|
+
"import": "./lib/cjs/index.browser.js",
|
|
22
|
+
"require": "./lib/esm/index.browser.js"
|
|
23
|
+
},
|
|
24
|
+
"node": {
|
|
25
|
+
"import": "./lib/esm/index.js",
|
|
26
|
+
"require": "./lib/cjs/index.js"
|
|
27
|
+
},
|
|
28
|
+
"react-native": "./lib/cjs/index.native.js",
|
|
29
|
+
"types": "./lib/types/index.d.ts"
|
|
30
|
+
},
|
|
17
31
|
"browser": {
|
|
18
32
|
"./lib/cjs/index.js": "./lib/cjs/index.browser.js",
|
|
19
33
|
"./lib/esm/index.js": "./lib/esm/index.browser.js"
|
|
20
34
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"types": "./lib/types/index.d.ts"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
35
|
+
"main": "lib/cjs/index.js",
|
|
36
|
+
"module": "lib/esm/index.js",
|
|
37
|
+
"react-native": "lib/cjs/index.native.js",
|
|
38
|
+
"types": "lib/types/index.d.ts",
|
|
39
|
+
"type": "module",
|
|
29
40
|
"files": [
|
|
30
41
|
"lib",
|
|
31
42
|
"LICENSE"
|
|
32
43
|
],
|
|
44
|
+
"sideEffects": false,
|
|
33
45
|
"publishConfig": {
|
|
34
46
|
"access": "public"
|
|
35
47
|
},
|
|
@@ -45,7 +57,7 @@
|
|
|
45
57
|
},
|
|
46
58
|
"dependencies": {
|
|
47
59
|
"@solana-mobile/mobile-wallet-adapter-protocol-web3js": "^2.2.0",
|
|
48
|
-
"@solana-mobile/wallet-standard-mobile": "^0.
|
|
60
|
+
"@solana-mobile/wallet-standard-mobile": "^0.4.0",
|
|
49
61
|
"@solana/wallet-adapter-base": "^0.9.23",
|
|
50
62
|
"@solana/wallet-standard-features": "^1.2.0",
|
|
51
63
|
"js-base64": "^3.7.5"
|