@solana-mobile/wallet-adapter-mobile 2.2.2 → 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.
@@ -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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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
  },
@@ -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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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
  },
@@ -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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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
- const authorizationResult = yield config.authorizationResultCache.get();
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,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": "2.2.2",
4
+ "version": "2.2.3",
5
5
  "author": "Steven Luscher <steven.luscher@solanamobile.com>",
6
6
  "repository": {
7
7
  "type": "git",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@solana-mobile/mobile-wallet-adapter-protocol-web3js": "^2.2.0",
60
- "@solana-mobile/wallet-standard-mobile": "^0.2.0",
60
+ "@solana-mobile/wallet-standard-mobile": "^0.4.0",
61
61
  "@solana/wallet-adapter-base": "^0.9.23",
62
62
  "@solana/wallet-standard-features": "^1.2.0",
63
63
  "js-base64": "^3.7.5"